Re: syntax, 3 or 4?

From: Date: Sat, 12 Jan 2002 05:15:00 +0000
Subject: Re: syntax, 3 or 4?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11402@lists.php.net to get a copy of this message
There is no difference between 3 and 4 as far as this script is concerned. On Sat, 5 Jan 2002, Paul Wallace wrote: > Hello, > Can anyone clarify if this code below is indeed PHP v4 or 3? It will > save significant rigmarole. > Where can I find online documentation for v3? I have this 'PHP 4 Bible' > by IDG Books, but it's for the version the name suggests. > > Many thanks > > Paul. > > > > What version of PHP do you have? It sounds like the functions for mysql > are > > loaded, but those functions have been built in since about 4.0 I believe. > > > > Include the information for both of the servers. > > > > > > > >Hello, > > > I have the code: > > > > > >#11 $db = mysql_connect("100.110.120.130", "root", > > >""); > > >#12 mysql_select_db("DBname",$db); > > >#13 $result = mysql_query("select * from gmember where gmember_id = > > >'$login' and gmember_password = '$password'",$db); > > >#14 $nrow=mysql_num_rows($result); > > >#15 if ($nrow != "0") { > > > my logic etc... > > > > > >to establish a connection from my site hosted in the USA, to a DB which > is > > >situated in Asia (the IP above is the IP of the DB host in Asia). When I > > >try > > >to read the DB I get the error: > > > > > >Fatal error: Call to unsupported or undefined function mysql_connect() in > > >/cgi/mydir/login/loginprocess.php on line 12 > > > > > >Line 12 being the mysql_select. Can anybody offer anything? I this syntax > > >PHP v4? If it is, that may answer it! The excerpt "undefined function > > >mysql_connect()" could suggest this. > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#11402) next »