Re: PHP_SELF
| From: | Cam Dunstan | Date: | Tue, 15 Oct 2002 15:48:08 +0000 |
| Subject: | Re: PHP_SELF | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16387@lists.php.net to get a copy of this message | ||
Sven,
Noticed the semi colon in your query string - I don`t think you should be
including that. db says he uses it with no problems - but if you look up
mysql_query in the manual - it says "The query string should not end with a
semicolon."
Either that, or maybe you lose the database connection (and result set) that
the $result variable originally pointed to when you recurse back into the
script - how big is the script? - too big to include in a mail?
CD
----- Original Message -----
From: "Sven Schnitzke" <Sven.Schnitzke@t-online.de>
To: <php-windows@lists.php.net>
Sent: Tuesday, October 15, 2002 6:57 PM
Subject: WG: [PHP-WIN] PHP_SELF
> Hi,
> is the real name of your table test_tabel as in the
> code sample or test_table as in the text ?
>
> Sven Schnitzke
>
>
> -----Ursprüngliche Nachricht-----
> Von: Rodrigo San Martin [SMTP:rodrigo@stud.ntnu.no]
> Gesendet am: Sonntag, 13. Oktober 2002 09:33
> An: php-windows@lists.php.net
> Betreff: [PHP-WIN] PHP_SELF
>
> 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:
>
> $qu2 ="SELECT * FROM test_tabel ;";
> $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
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>