Jump to content

PHP/MYSQL


akrytus

Recommended Posts

I dont understand why, but everytime I do this querry with php it seems to find the record, although it doesnt exist.  If I do this querry through mysql at the dbase the record does not exist.  After I did the querry and it did not find the record, I had it produce the code and inserted it into my php and it doesnt looks as if it found it.  What am I doing wrong? Perhaps my if($result) is incorrect?

 

$sql='SELECT * FROM `Attendance` WHERE `Date` = \''.$HTTP_POST_VARS['Date'].'\' AND `First` LIKE CONVERT(_utf8 \''.$value[1].'\'USING latin1) COLLATE latin1_swedish_ci AND `Last` LIKE CONVERT(_utf8 \''.$value[2].'\' USING latin1) COLLATE latin1_swedish_ci';

$result = mysql_query($sql);      				
if($result){echo "$fullname on day ".$HTTP_POST_VARS['Date']." was Found<br>";}    
if(!$result){echo "$fullname was Not Found<br>"; /*

 

 

Link to comment
https://forums.phpfreaks.com/topic/95721-phpmysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.