login problem fixed!!

From: Date: Thu, 25 Mar 2004 09:32:12 +0000
Subject: login problem fixed!!
Groups: php.general 
Request: Send a blank email to php-general+get-181463@lists.php.net to get a copy of this message
hi!! tnx for the help with that huge problem... got it running and this is how... the query ...username='...' and pwd=md5(...) was in "" and i guess when you have something like that putting '' in an index name is illegal?? can somebody explain why? and on the line: if(.....) {... num_of_rows() doesnt work because when $result == false it doesnt know how to deall with NULL for the num of rows returned... the final line then is: if($result==false) {//test the query itself..if false then print whatever } else {//if it did work then do this...} but of course it could always be turned around to: if($result==true) {...} but dont know what way is better or if it is a personal choice...

« previous php.general (#181463) next »