Jump to content

182x

Members
  • Posts

    179
  • Joined

  • Last visited

    Never

Everything posted by 182x

  1. That was the problem, thank you very much for your help!  :)
  2. Hey guys, I have created a page which had the PHP as listed below and the page works fine however if the user clicks refresh the pages goes all white and blank. I was just wondering why it does this? Thanks [code] <?php session_start(); include ('db.php'); $link_id = db_connect(''); $g = "SELECT ff, nn e FROM cu WHERE Id = '". $HTTP_SESSION_VARS ["Id"]."'"; $rs = mysql_query($g, $link_id); if (mysql_num_rows($rs) > 0 ) { $r = mysql_fetch_assoc($rs); $HTTP_SESSION_VARS ["Id"] = $r["Id"]; } else { echo $HTTP_SESSION_VARS ["Id"]; exit(); } ?> [/code]
  3. OOps that was my bad sorry it was a fault with the connection, sorry about that and thanks for your help.
  4. Hey guys, I am just getting to grips with PHP and have come across an error with the login page I have created, any help would be great the following is the error messages: [b]Errors:[/b] [code] Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Program Files\Apache Group\Apache2\htdocs\New Folder\processLogin.php on line 13 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\New Folder\processLogin.php on line 16 Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\New Folder\processLogin.php:6) in C:\Program Files\Apache Group\Apache2\htdocs\New Folder\processLogin.php on line 30 [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.