RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
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

RE: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Craig Thomas
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

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
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

RE: [PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread 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

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
>>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

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
= mysql_fetch_array($result)) { >>//Some Code >>echo $row['filed']; >>} >> //Reset result array >> $result = mysql_query($sql); >>} >> >>-- >>_________ >>Mark McCulligh, App

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
>> $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

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
--> 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