John Taylor-Johnston wrote:

$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];

$MySQLver is not a variable that PHP creates, so it must be created somewhere in your script. Find that part and troubleshoot it.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to