php-windows Digest 14 Oct 2002 10:39:42 -0000 Issue 1387
Topics (messages 16354 through 16359):
Re: PHP_SELF
16354 by: Blue Presley
16355 by: John Meyer
16356 by: Cam Dunstan
16357 by: John Meyer
16358 by: M.B.
Acces DB and PHP connection ?
16359 by: Dennis Philpot
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 ---
your error is not with PHP_SELF, it's in your mysql query.. you don't put a
semicolon at the end of your statement..
$qu2 ="SELECT * FROM test_tabel ;"; should be
$qu2 = "select * from test_table";
anytime you receive the error you got, it's most likely due to a problem
with your Query.
blue
At 08:17 AM 10/13/2002 +0100, you wrote:
>hi rodrigo
>
>i tried this a few months bak but it didn work wirh
>forms i alwayz got silly errors which i KNEW ver rong
>
>anyway i used $PHP_SELF with links
>
>what u can do is u can make a submit LINK n make it
>look like a button (if u preffer buttons :S) and pass
>ur variables thru
>
>but then there cud be security risks :S
>
>well i hope dis helps
>
>luck
>
>toby ....
>
> --- Rodrigo San Martin <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > Have a problem. Need to pass a multiple array
> > through a form using a
> > PHP_SELF.
> > I pass it whith a hidden variabel but i get an error
> > warning.
> >
> > "Warning: Supplied argument is not a valid MySQL
> > result resource in..."
> >
> > The code is:
> >
> > ;
> > $result = mysql_query($qu2);
> > $num = mysql_num_rows($result);
> >
> > i take out some info from test_table (there are some
> > questions in the table
> > that the user need to answer), the user does some
> > operation, clicks submit
> > and is supposed to be presented whith the next
> > question in the table. I pass
> > the variable like this:
> >
> > <INPUT TYPE='hidden' VALUE='$result' NAME='result'>
> >
> > But no way josey. I get that warning.
> >
> > Anybody got i nice solution please.
> >
> >
> >
> >
> >
> > ------------------------------------------
> > Rodrigo San Martin
> > Institutt for datateknologi og informatikk
> >
> > http://www.idi.ntnu.no/~rodrigo
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>__________________________________________________
>Do You Yahoo!?
>Everything you'll ever need on one web page
>from News and Sport to Email and Music Charts
>http://uk.my.yahoo.com
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I usually use the semicolon and it works fine. In fact, if I recall, I get
an error anytime I don't include it.
-----Original Message-----
From: Blue Presley [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 13, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP_SELF
your error is not with PHP_SELF, it's in your mysql query.. you don't put a
semicolon at the end of your statement..
$qu2 ="SELECT * FROM test_tabel ;"; should be
$qu2 = "select * from test_table";
anytime you receive the error you got, it's most likely due to a problem
with your Query.
blue
--- End Message ---
--- Begin Message ---
John,
are you SURE you have been using the semi colon without errors John??
Check your old code, I think you`ll find a semi colon definitely isn`t
allowed in any reasonably current version of mysql / PHP. You may be
thinking of queries that you enter into such utilities as mysql-Front or
mysqlAdmin which do expect the semi colon (I think).
cheers.
----- Original Message -----
From: "John Meyer" <[EMAIL PROTECTED]>
To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 8:13 AM
Subject: RE: [PHP-WIN] PHP_SELF
>
> I usually use the semicolon and it works fine. In fact, if I recall, I
get
> an error anytime I don't include it.
>
> -----Original Message-----
> From: Blue Presley [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP_SELF
>
>
--- End Message ---
--- Begin Message ---
No, it's not providing me with any errors, although it could be just using
MyODBC.
-----Original Message-----
From: Cam Dunstan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 13, 2002 4:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP_SELF
John,
are you SURE you have been using the semi colon without errors John??
Check your old code, I think you`ll find a semi colon definitely isn`t
allowed in any reasonably current version of mysql / PHP. You may be
thinking of queries that you enter into such utilities as mysql-Front or
mysqlAdmin which do expect the semi colon (I think).
cheers.
----- Original Message -----
From: "John Meyer" <[EMAIL PROTECTED]>
To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 8:13 AM
Subject: RE: [PHP-WIN] PHP_SELF
>
> I usually use the semicolon and it works fine. In fact, if I recall, I
get
> an error anytime I don't include it.
>
> -----Original Message-----
> From: Blue Presley [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP_SELF
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Yeb, Jonh.
Because (at least if you use MYSQL or something like that) you have to do it
the way Cam Dunstan said it.
I tried doing it your way, but then you get those errors (at least if you
use MYSQL).
M.B.
"John Meyer" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> No, it's not providing me with any errors, although it could be just using
> MyODBC.
>
> -----Original Message-----
> From: Cam Dunstan [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP_SELF
>
>
> John,
> are you SURE you have been using the semi colon without errors John??
> Check your old code, I think you`ll find a semi colon definitely isn`t
> allowed in any reasonably current version of mysql / PHP. You may be
> thinking of queries that you enter into such utilities as mysql-Front or
> mysqlAdmin which do expect the semi colon (I think).
>
> cheers.
>
>
>
> ----- Original Message -----
> From: "John Meyer" <[EMAIL PROTECTED]>
> To: "Blue Presley" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, October 14, 2002 8:13 AM
> Subject: RE: [PHP-WIN] PHP_SELF
>
>
> >
> > I usually use the semicolon and it works fine. In fact, if I recall, I
> get
> > an error anytime I don't include it.
> >
> > -----Original Message-----
> > From: Blue Presley [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, October 13, 2002 3:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] PHP_SELF
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi NG,
can someone tell me how i make a database connection from php (under
windows) to an access datbase WITHOUT a DNS entry ?
i've searched alot and i only find a dns way !
thx !
--- End Message ---