Re: $MySQLver[0]

From: Date: Wed, 01 Oct 2003 03:41:37 +0000
Subject: Re: $MySQLver[0]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164478@lists.php.net to get a copy of this message
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

« previous php.general (#164478) next »