I'm trying to retrieve data from a MySql Database

I have the following php script:

echo "Resultados de tabla Empresas";
    $link = mysql_connect ("localhost:3306", "root", "")
        or die ("Could not connect");
    print ("Connected successfully");

mysql_select_db ("seguros");
$sql="select * from mae_companias";
echo "<table

$myrow=mysql_fetch_array ($result);

echo "</table>";

When I call this page I get the following error:

Fatal error: Call to undefined function: array() in
/home/fergonza/mod_php4/index.php on line 18

Line 18 is refwrring to the line where I have "$myrow=mysql_fetch_array

Anyone can help??????

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to