Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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