$MySQLver[0]
| From: | John Taylor-Johnston | Date: | Wed, 01 Oct 2003 03:33:56 +0000 |
| Subject: | $MySQLver[0] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164477@lists.php.net to get a copy of this message | ||
$MySQLver[0] doesn't seem to echo anything. Code used to work, on another server.
Problem with php version?
PHP Version 4.1.2
Just updated to MySQL version MySQL 4.0.15-standard
Can't find "MySQLver" in phpinfo.
if($MySQLver[0] >= 4){
$sql = 'SELECT * FROM '.$table.' WHERE MATCH (KW,AUS,GEO) AGAINST
(\''.stripslashes($searchenquiry).'\' IN BOOLEAN MODE) ORDER BY id asc;';
}else{
$sql = 'SELECT * FROM '.$table.' WHERE MATCH (KW,AUS,GEO) AGAINST
(\''.stripslashes($searchenquiry).'\') ORDER BY id asc;';
}
echo $sql."<br>".$MySQLver[0];
Ideas?
John