Re: $MySQLver[0]
| From: | John Taylor-Johnston | Date: | Wed, 01 Oct 2003 03:48:16 +0000 |
| Subject: | Re: $MySQLver[0] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164480@lists.php.net to get a copy of this message | ||
John,
Thanks! Actually, I just did a bit of reading.
http://www.phpbuilder.com/mail/php-general/2001071/1540.php
MySQLver was implemented in PHP 4.0.5. My fault.
Sorry. Thanks for the read.
John
"John W. Holmes" wrote:
> 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
--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not open-source, it's Murphy's Law."
' ' ' Collège de Sherbrooke:
ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/
- Université de Sherbrooke:
http://compcanlit.ca/
819-569-2064