Home

Jan 17, 2011

This MySQL query tests for the existance of a record


This MySQL query tests for the existance of a record
Category: MySQL
Posted by: Admin

if(mysql_num_rows(mysql_query("SELECT field FROM `table` WHERE field = $row[CLIENT_ID]") ))
{
if the record exists in the MYSQL table ------ code goes here
}