hmm. debugging info.

This commit is contained in:
Jeff Teunissen 2002-02-22 05:29:05 +00:00
parent 858008ab0f
commit f68c026b1a
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ CREATE TABLE members (
" WHERE u_username='$userName'" . " WHERE u_username='$userName'" .
" AND u_password=ENCRYPT('$password','$userName')"; " AND u_password=ENCRYPT('$password','$userName')";
$result = @mysql_fetch_array (@mysql_db_query (sqlDB, $query)); $result = @mysql_fetch_array (@mysql_db_query (sqlDB, $query));
if ($result[auth]) { if ($result[auth]) {
authCreateSecret ($userName, $result[u_password]); authCreateSecret ($userName, $result[u_password]);
} else { } else {

View file

@ -170,7 +170,7 @@
if ($conn) { if ($conn) {
$query = 'SELECT n_date, n_user, n_news FROM news_main' . $query = 'SELECT n_date, n_user, n_news FROM news_main' .
' ORDER BY n_date DESC'; ' ORDER BY n_date DESC';
$result = @mysql_db_query (sqlDB, $query, $conn); $result = mysql_db_query (sqlDB, $query, $conn);
if ($result) { if ($result) {
$numRows = @mysql_num_rows ($result); $numRows = @mysql_num_rows ($result);
if ($numRows) { if ($numRows) {
@ -209,7 +209,7 @@
$date = sprintf ("%04d-%02d", $year, $month); $date = sprintf ("%04d-%02d", $year, $month);
if (sqlAvail) { if (sqlAvail) {
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass); $conn = mysql_pconnect (sqlHost, sqlUser, sqlPass);
if ($conn) { if ($conn) {
$query = 'SELECT n_date, n_user, n_news FROM news_main' . $query = 'SELECT n_date, n_user, n_news FROM news_main' .
" WHERE n_date BETWEEN '$date-00 00:00:00'" . " WHERE n_date BETWEEN '$date-00 00:00:00'" .