php-windows Digest 12 Jan 2002 20:35:20 -0000 Issue 949
Topics (messages 11402 through 11404):
Re: syntax, 3 or 4?
11402 by: Rasmus Lerdorf
11403 by: Piotr Pluciennik
New PHP
11404 by: Burrito
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
I've never used PHP3, but think that problem is probably because mysql module is
built-in in PHP4 and in PHP3 - it's not and is not enabled by default. So you
should activate extension supporting mysql in PHP3 config. Maybe it will help.
Greetings
Piotr
PS: Let me know if it has helped you.
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
I'm thinking of making the conversion from Cold Fusion. I am NOT a
programmer and so Cold Fusion has been very easy for me to use. However due
to cost and a few other factors, I"m thinking PHP might be a good switch.
Some the deciding factors will be its ease of use and how good these forums
are. The Cold Fusion forums have proven to be a fantastic resource for
problems and so I would need these forums to be as good or better for me to
justify changing languages...this leads me to my first php question. I have
a database set up using MySQL on my windows 2000 server using an ODBC driver
for my connection. My datasource name is "test," my database name is
"testdatabase" and I have a table named "testtable". My username is
"usernametest" and my password is "passwordtest" How would I run a simple
query to insert a row in my testtable table that has two fields, one called
testfield1 the other called testfield2. Then, how would I run another query
to select that row and print it on my html page? I have scanned over the
manual (VERY BRIEFLY) and didn't see anything related to the database
integration.
My apologies for this totally mundane question, but as I said above, this
messages serves a two-fold purpose and the first is to see how good these
forums are :)
any help you can provide is greatly appreciated,
thx in advance for your time,
Burrito
--- End Message ---