I have a MySQL query that does a selection. I then have a $numrows variable which I have set to $numrows = mysql_num_rows($query);. If the value of $numrows == 0, I want the array variable I have to be set to empty. I tried setting the array variable to null and ""; but those don’t work. Any suggestions? Thanks.
I have a MySQL query that does a selection. I then have a $numrows
Share
Empty an array
Delete it altogether