FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » obtaining MySQL version: mysql_row_arr error
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
obtaining MySQL version: mysql_row_arr error [message #11710] Mon, 14 July 2003 21:46 Go to previous message
morganw is currently offline  morganw   United States
Messages: 6
Registered: July 2003
Karma:
Junior Member
http://fud.prohost.org/doc/d/html/installation.html#install.verify.config

says that to get MySQL version, use

<?php
mysql_connect("127.0.0.1", "USER_NAME", "PASSWORD");
$result = mysql_query("SELECT VERSION()");
list($mysql_version) = mysql_row_arr($result);
echo "MySQL Version: ".$mysql_version."<br>\n";
mysql_free_result($result);
?>


I just got next-to-latest stable PHP (4.3.1 'cause 4.3.2 download links were broken) & built it from source. It doesn't have a mysql_row_arr() function. Instead, I used this to get the version:

<?php
mysql_connect("127.0.0.1", "USER_NAME", "PASSWORD");
$ver_result = @mysql_query("SELECT Version() AS version");
$ver_row = @mysql_fetch_array($ver_result);
$mySQLversion = $ver_row["version"];
echo "MySQL Version: ".$mySQLversion."<br>\n";
mysql_free_result($ver_result);
?>

Which gave me this as output:

this is the body
PHP Version: 4.3.1
MySQL Version: 3.23.47-log

(I used the built-in MySQL. Install FUDForum next....)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Restoring FUDforum Fails
Next Topic: Unlocking files cause Server Error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 23:21:05 GMT 2024

Total time taken to generate the page: 0.04082 seconds