June 12th, 2000, 03:22 AM
While i excuteing the below code which is
encoded between <?php ?>
i got an error :
" Call to unsupported or undefined function mysql_connect() in d:Inetpubwwwrootphptestphp.php3 on line 2"
$result=mysql_query("select * from clients",$con);
How to fix that bug.
Please give the solution as early as possible.
June 12th, 2000, 07:38 AM
the error is "undefined function"
this means, it cant find the function "mysql_connect"
try to compile php with MySQL support
and RTFM before starting this
June 12th, 2000, 09:59 AM
If u are using the Redhad distrib RPM's, then the PHP RPM doesnt support MySQL normally. Instead download the PHP source code and apache source and then recompile apache with PHP and MySQL support afresh.
Just follow the instructions in the help. Its that simple and u get PHP zipping away wtih MySQL data conncetion - propah !