mysql - php not selecting after truncating the some part of the database -
after truncate table in database cannot select specific column in table not affected truncate code. think database has been corrupted. final defense 2 days , completed system after running code system went crazy! because select function functioning here code think literally destroy database, use reset evaluation system of particular university.
mysql_query("truncate table records"); mysql_query("truncate table chairassign"); mysql_query("truncate table studentstotal"); mysql_query("truncate table tempfiles"); mysql_query("truncate table tempfiles2"); mysql_query("update evaluationstatus set allowviewing ='no'"); mysql_query("update faculty set evaluateid1 = 'null', evaluateid2 = 'null', evaluateid3 = 'null' , evaluatedbyself = 'no' ,canevaluate = 'no'"); mysql_query("update users set deanevaluator = 'no' ,evaluatedbyself = 'no' ,evaluatedbydean = 'no'");
when try select
$faculty = mysql_query("select * faculty departmentid = '$mydepartment'");
it shows none though pretty sure data in table faculty
after taking sometime decided drop contents of faculty table , upload new csv seems work charm think columns mismatch when update columns in faculty table above (feeling relieved) i'l careful next time help
Comments
Post a Comment