Im using this code to delete match tweeps in 2 table , now my issue is when i execute php its only delete 1 raw it should delete 5 raw case insensitive , i try to excute the same sql statement in PMA and its working fine and delete all matchs raw , any clue why this happened when i execute php page
<?php
include "dbconnect.php";
mysql_select_db("sdntweep_tweeps", $con);
mysql_query (" DELETE FROM tweeps WHERE screenname IN (SELECT LOWER (screenname) FROM non_sudanese ");
echo " done"
?>
There’s an error in your SQL syntax:
should be
note the extra ).