[PHP] Re: Can anybody tell what is wrong with this file?
MessageTry this 1 1 Raghu Modem 8L_LT W_SW150_1 NULL NULL Pending SELECT Approved Rejected "Balaji Ankem" <[EMAIL PROTECTED]> wrote in message 001a01c1c9a6$0dd19e40$[EMAIL PROTECTED]">news:001a01c1c9a6$0dd19e40$[EMAIL PROTECTED]... H i friend, I am using the browser Netscape 4.7. It z not displaying the select box..blindly displaying in text format.. (If u want to see open example.jpg) Example.html = 1 1 Raghu Modem 8L_LT W_SW150_1 NULL NULL Pending SELECT Approved Rejected = Thanks in advance Balaji
[PHP] newbie: using sessions
Hi i can't get the session variables working. When I get something like $_SESSION['Login']=$HTTP_POST_VARS['login']; on the first page, and i go with a link to an other php page. When then try to get $_SESSION['Login'] again it is empty. How comes? Maarten Weyn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mysql problems
Hi on this code: $link = mysql_connect("localhost", "login", "passwd"); mysql_select_db("table"); $result = mysql_query("select * from table"); while ($row = mysql_fetch_object($result)) { echo $row->ID; echo $row->Drank; } mysql_free_result($result); mysql_close($link); It resulst in Warning: Supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\index.php on line 13 Warning: Supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\index.php on line 17 line 13 = while ($row = mysql_fetch_object($result)) { line 17 = mysql_free_result($result); I'm running an Apache/1.3.23 on a win 2000 with PHP Version 4.1.2 and mysql 3.23.39. Does it not recoginze this mysql_... statements? Maarten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sessions
Hi, All my session_start() calls were working fine. But since yesterday the vars i use does not keep there value i use $_SESSION['varname'] Nothing has been changed to the server normally, but on all my sites it does work anymore i think the problem is that when i use session_start() and then for example $_SESSION[username] = 'test'; on at an other page: session_start() then echo $_SESSION[username] gives blanco. How can this be? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP] sessions
it works back after a reboot but does anybody know how it could have happened? "Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Jeroen, > > Sunday, May 23, 2004, 4:00:46 PM, you wrote: > > >> Should username have quote around it? Wouldn't it try to make it a constant otherwise? > >> echo $_SESSION['username'] > > JS> Unfortunately, imho, php doesn't seem to care that much in such cases ;-) > JS> $_SESSION[username] will have the same result as $_SESSION['username'] > > It cares enough to raise a script Warning ;) > > Best regards, > > Richard Davey > -- > http://www.launchcode.co.uk - PHP Development Services > "I am not young enough to know everything." - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: sessions
it works back after a reboot but does anybody know how it could have happened? "Maarten Weyn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > All my session_start() calls were working fine. > But since yesterday the vars i use does not keep there value > i use $_SESSION['varname'] > > Nothing has been changed to the server normally, but on all my sites it does > work anymore > > i think the problem is that when i use session_start() and then for example > $_SESSION[username] = 'test'; > > on at an other page: > > session_start() > then echo $_SESSION[username] gives blanco. > > How can this be? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[4]: [PHP] sessions
no i cleaned the /tmp dir, now the problem occurs again "Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Maarten, > > Sunday, May 23, 2004, 4:13:27 PM, you wrote: > > MW> it works back after a reboot > MW> but does anybody know how it could have happened? > > Maybe your temp directory got full? > > Best regards, > > Richard Davey > -- > http://www.launchcode.co.uk - PHP Development Services > "I am not young enough to know everything." - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: sessions
It worked for 5 minutes after a reboot, but now i get the same problem what happens is that on every session_start(); a new sessid is created how comes it doesn't use the old one "Maarten Weyn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > All my session_start() calls were working fine. > But since yesterday the vars i use does not keep there value > i use $_SESSION['varname'] > > Nothing has been changed to the server normally, but on all my sites it does > work anymore > > i think the problem is that when i use session_start() and then for example > $_SESSION[username] = 'test'; > > on at an other page: > > session_start() > then echo $_SESSION[username] gives blanco. > > How can this be? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php