$determin .= "$harray[0]";
echo "$determin"; // this works good
if (isset($determin)) {
$query = "SELECT * FROM `JS` WHERE `wrdnprc` LIKE '$mkrs' LIMIT 1";
$good_query=mysql_query($query) or die(mysql_error());
if (mysql_num_rows($good_query) == 0) {
$query = "SELECT * FROM `JS` WHERE `wrdprc` LIKE 'm' LIMIT 0 , 1 ";
} else {
$query = "INSERT INTO `JS` ( `id` , `wrdprc` , `wrdnprc` , `pgld` ) VALUES ('', '$mkrs', '', '0') ";
$query=mysql_query($query) or die(mysql_error());
}
}
No errors
BUT it is not working
had to add isset for some reason ??
checked the 3 queries in phpmyadmin they perform the query and work
My webpage has no other queries besides this one ,
basically i need to do this
if $determin
check for entry in MySQL
if record already exist do nothing
if not add it to table JS in field wrdprc