MySQL Version?<

admin

Administrator
Staff member
How do you get the MySQL version number in PHP?Originally posted by DA Master
How do you get the MySQL version number in PHP?



$query = mysql_query("SELECT VERSION( ) AS version");
$row = mysql_fetch_array($query);

echo $row["version"];Cheers, thanks for that.if you have mysql 4.++ please let me know how the version numbers come out.

I know on v.3 it looks like 3.23.23, does ver. 4 look like that?Originally posted by scoutt
if you have mysql 4.++ please let me know how the version numbers come out.

No! :D

No problem scoutt, check out the attachment.:D thanks DA.No problem scoutt, makes a change that I'm helping you and not the other way around, seems sureal :D
 
Back
Top