2nd Pair of eyes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I warned the list that I may have questions! ;-)

...building a simple cookie-based log-in system, and have
narrowed an error to this below: (sorry for email line breaks, if any)

---Start---
if ($_post['f_action']=='login') {

  // connect to database (custom function)
  $r = dbconnect();

  // success?
  if ($r['a_success']) {
$query = "SELECT u_id FROM cms_users WHERE u_name = $_post['f_user'] AND u_pass = $_post['f_pass']";
		
    if ($r = @mysql_query($query))
    {
      // test
      print "<!-- userID: $r -->";
    }
		
    mysql_close();
  } else {

  // Not connected to db
  $t_mssg = mysql_error();
  }
	
}
---End---

No info is given in PHP error reporting because it
returns no source to the page. Can you see where this n00b went wrong?

Thanks!

Donovan


--
D Brooke

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux