So I wan to turn off the warning error I may get when doing this code.
for ($i=0; $i < count($project_array); $i++) {
$projecthours[$i] = project_hours($project_array[$i]);
$project_name = $project_array[$i];
$impact_query = "SELECT * FROM impact_data WHERE project_name ='$project_name'";
$impact_search = mysql_query($impact_query);
$impact_num = mysql_num_rows($impact_search);
if ($impact_num > 0 ) {
// Do something
} //IMPACT_NUM IF
else {
Do Something Else
} // ELSE statement
Even though I've put the @ sign infront of both functions I still get the following error. I don't want to turn of all errors for the page because I think it is a bad idea, and I am still working on the website. Here is the warning I still get.
Warning: mysql_num_rows() expects parameter 1 to be resource