I'm useing PHP 4.3.9 with MYSQL5
I use odbc to connect the database that is ok
but when I execte follow program ...that will disaply "Fatal error: Call to
undefined function: mysql_exec() in C:\Program Files\Apache
Group\Apache2\h tdocs\link.php on line 10"
Please .....Help me ~~~thx a lot ~~~
my program source code:
<html><body>
<?php
$link = mysql_connect(' localhost', '', '');
if (!$link)
{
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
$sql="SELECT * FROM item_info";
$rs=mysql_exec( $link,$sql);
if (!$rs)
{
exit("Error in SQL");
}
mysql_close($li nk);
?>
</body></html>
I use odbc to connect the database that is ok
but when I execte follow program ...that will disaply "Fatal error: Call to
undefined function: mysql_exec() in C:\Program Files\Apache
Group\Apache2\h tdocs\link.php on line 10"
Please .....Help me ~~~thx a lot ~~~
my program source code:
<html><body>
<?php
$link = mysql_connect(' localhost', '', '');
if (!$link)
{
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
$sql="SELECT * FROM item_info";
$rs=mysql_exec( $link,$sql);
if (!$rs)
{
exit("Error in SQL");
}
mysql_close($li nk);
?>
</body></html>
Comment