If you do not want to re-write all your code and your web server is Apache
and your host allows the use of .htaccess files you can turn
register_globals = on programmatically:
http://www.php.net/manual/en/configuration.directives.php#ini.register-globa
ls
(php_flag register_globals = ON;) i think
Using $_REQUEST[""] works because the vars are in the http request, but
$_POST[""] contains nothing as the other poster noted: mehtod="post"
>>-Original Message-
>>From: David Scott [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, December 10, 2002 1:20 PM
>>To: [EMAIL PROTECTED]
>>Subject: [P
t;>-Original Message-
>>From: Jason Wong [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, December 10, 2002 2:04 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP] Pls Help: Moving script from Win to Linux
>>
>>
>>On Wednesday 11 December 2002 02:38, Craig Thomas
>>previous page. Try putting the log in information and anything
>>else needed
>>in hidden fields in your form.
YIKES!...hidden form fields are viewable in the html source generated.
session_register() anyone?
I thought you were trying to re-use the db connection?
if so, use mysql_pconnect() i
>>The problem is I have to reset the SQL result array on each for
>>loop. How do
>>you do that?
$myNewArrayFullofSqlResultsThatICanLoopOverAsManyTimesAsIWant =
mysql_query($sql);
-Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= mysql_fetch_array($result)) {
>>//Some Code
>>echo $row['filed'];
>>}
>> //Reset result array
>> $result = mysql_query($sql);
>>}
>>
>>--
>>_________
>>Mark McCulligh, App
>> $mysql_result = mysql_query($query, $mysql_link);
I am not sure if this is your only problem or not, but mysql_result(); is a
function in php. Using a function name as a variable seems like it will
just lead to confusion to me. I'd try to avoid it.
>>--> line 36 while($row = mysql
--> line 36 while($row = mysql_fetch_row($mysql_result))
>>
>>Anyway, where do you define $row?
>>
>>HTH
>>
>>-Craig
DOH! it's been a long one...
-Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 matches
Mail list logo