[PHP] update entries in a table

2002-04-12 Thread Norman Zhang
Hi, How do I update entries in MySQL? Say for example, I checked some fields to a table, and decided to make update to a particular field. How do I do that in PHP? Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] update entries in a table

2002-04-12 Thread Norman Zhang
Thank you so much. Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session_is_registered

2002-04-12 Thread Norman Zhang
Hi, If I have register_globals=off, how do I pass session variables? I tried session_register(var1). session_is_registered(var1) appears successful, but if I tried to echo the $var1. Nothing shows. How do I pass session variables? Thanks, Norman -- PHP General Mailing List

Re: [PHP] session_is_registered

2002-04-12 Thread Norman Zhang
Sorry it still does not work. Can it be because I have HEADER(Location: ...) redirection after the session_registered('var1')? Regards, Norman Oliver Beddows [EMAIL PROTECTED] wrote in message

[PHP] upload file size

2002-07-05 Thread Norman Zhang
Hi, I can't seem to upload file bigger than 5M even if I set the upload_max_filesize to 20M in php.ini and MAX_FILE_SIZE to 20M in the script. What's am I missing here? Is the temporary upload directory won't handle file this size? Please give me some pointers here. TIA. Regards, Norman --

[PHP] Re: GD Lib

2002-07-08 Thread Norman Zhang
Check out http://rpmfind.net/linux/rpm2html/search.php?query=php-gdsubmit=Search+...; system=arch= Yang [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... can't find the php-gd.so on my computer. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] session_is_registered

2002-04-16 Thread Norman Zhang
Sorry. I'm still getting empty output. Are there some global variables that I must set in php.ini? phpinfo() tells me that I have register_globals off Session Support enabled session.auto_startoff session.cache_limiter nocache session.cookie_secure off Regards, Norman Oliver

[PHP] Re: session_is_registered

2002-04-17 Thread Norman Zhang
Thanks everyone. I solved the problem by upgrading 4.0.6 to 4.1.2. Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] difference between $foo and isset($foo)

2002-04-18 Thread Norman Zhang
Hi, I am looking at some codes. Some authors use $foo and isset($foo) interchangeably. Just to want to make sure that the statement, if ($foo) { ... } is different from if (isset($foo)) { ... } Right? if ($foo) means variable exists and can be null. Whereas, isset($foo) means that the value

[PHP] header redirection

2002-04-19 Thread Norman Zhang
Hi, I use header(location: ...) for redirection to another page. But I also want to include title, meta and link tags in the other page. Is there a way to this? Because php complains that the header already been sent. Regards, Norman -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] header redirection

2002-04-22 Thread Norman Zhang
=mysql_fetch_row($result); if (mysql_num_rows($result) 0) { ? // I want to include the default header in here again. But it does not work. ? } } ? Thanks, Norman Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Saturday 20 April 2002 05:07, Norman Zhang

[PHP] redirection

2002-04-28 Thread Norman Zhang
Hi, I want to set up a check that the page cannot be exacted by calling from another page. E.g., members.php can only be excited if it called by login.php. So I set if (eregi(members.php, $_SERVER['PHP_SELF'])) Header(Location, login.php); at the very top of members.php. But I am being

[PHP] date

2002-05-02 Thread Norman Zhang
Hi, I am doing a test with the date function, $mydate=2002-05-02 $tdate=date(d M Y, $mydate); echo $tdate I should expect 02 May 2002. But I get a strange result 31 Dec 1969. Why? How can I correct this? Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] stop resend data

2002-05-10 Thread Norman Zhang
How can I disable the resend data feature when going back to an expired page? If I return this page again by typing the URL, I won't be ask to resend data. However, if I hit the back button and go back to the expired page, I will be prompted to click on resend or not. I seem some sites disable

[PHP] authentication help

2001-10-24 Thread Norman Zhang
Hi, Would someone please give me a few pointers on how to generate a simple PHP to check for user's name and password before directing to a directory? e.g., I have a index.php with a form where I have action=login.php. How would I write login.php to check username and password if I have them

[PHP] directory access

2001-10-26 Thread Norman Zhang
Hi, I have a simple authentication script. if ($username == abc) { readfile(abc/index.php); } else readfile(index.php); What I would like to know if there is some way that I can have the user checked against the user in directory /abc/.htaccess? I would like to have the script to jump into