[PHP-DB] Problem whith mysql_connect()

2002-06-23 Thread Fernando Gonzalez
When I try to connect to mysql on a linux server It gives me the following message: "Fatal error: Call to undefined function: mysql_connect() in /home/web/media/conection.inc on line 2" It seems there is a problem in the php configuration, however I am not an expert so need help to fix this.

Re: [PHP-DB] Problem whith mysql_connect()

2002-06-24 Thread Fernando Gonzalez
: Re: [PHP-DB] Problem whith mysql_connect() > On Monday 11 June 2001 23:46, Fernando Gonzalez wrote: > > When I try to connect to mysql on a linux server It gives me the following > > message: > > > > "Fatal error: Call to undefined function: mysql_connect() in >

[PHP-DB] Problem with my first script

2001-07-24 Thread Fernando Gonzalez
I'm trying to retrieve data from a MySql Database I have the following php script: "; $link = mysql_connect ("localhost:3306", "root", "") or die ("Could not connect"); print ("Connected successfully"); mysql_select_db ("seguros"); $sql="select * from mae_companias"; $result=mys

RE: [PHP-DB] Problem with my first script

2001-07-24 Thread Fernando Gonzalez
reDireccionTelefonoFax "; $num=mysql_num_rows($result); $cur=1; while($num>=$cur){ $myrow=mysql_fetch_array ($result); $nombre=$myrow("nombre"); $direccion=$myrow("direccion"); $telefono=$myrow("telefono"); $fax=$myrow("fax"); echo "$nombre$direcc

RE: [PHP-DB] Problem with my first script

2001-07-24 Thread Fernando Gonzalez
direccion$telefono$fax"; $cur++; } echo ""; ?> - Original Message - From: leo g. divinagracia iii <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 24, 2001 7:52 PM Subject: Re: [PHP-DB] Problem with my first script >