I’d like to display other text in else statement but it seems like the value or html in IF statement in my num_rows are displaying in the else statement as well.
<?php //row['research_uid'] . "' AND tbl_users.user_uid = '" .
row['research_uid'] . "'"
conn,
sqlChecker) { if (
sqlChecker) > 0) { while (
sqlChecker)) {
loopValue['totalrating'] /
loopValue['user_ratings'] ?></b> people who gave feedback to this research, averaging. <b><?php echo
row['research_uid'] is just the research_uid.
If the research does not existing yet in the tbl_userfeedback this is what it says.
Warning: Division by zero in (directory)helper_getResearchFeedback.php on line 12"Please do correct me if I am wrong I do not know if I am wrong in conditional statement or in my SQL Query.
Anonymous Asked question May 14, 2021
Recent Comments