Hello,
I've tried this every way I can think of using all different variables in different places and different ways all over the script. I can't even find a workaround.
I need to display a message if the query comes back empty. I have worked a lot with...
if (!$sql_result) echo ("Message");
and
if (!isset($sql_result)) {
echo "this";
} else {
echo "that";
}
Changing the variables and exclamation mark etc. The message stays the same no matter if the query is empty or not.
Thank you.
Richard
I've tried this every way I can think of using all different variables in different places and different ways all over the script. I can't even find a workaround.
I need to display a message if the query comes back empty. I have worked a lot with...
if (!$sql_result) echo ("Message");
and
if (!isset($sql_result)) {
echo "this";
} else {
echo "that";
}
Changing the variables and exclamation mark etc. The message stays the same no matter if the query is empty or not.
Thank you.
Richard