I have this PHP code:
$con = mysqli_connect("localhost","root","","dbjobsheetsf");
$sql1 = "SELECT colDate FROM tbljs ";
$queryR = mysql_query($sql1);
$p = 0;
echo "<select name=\"jsGetDate\">";
while($r = mysql_fetch_array($queryR)) {
echo "<option value=".$r["colDate"].">".$r["colDate"]."</option>";
}
echo "</select>";
mysqli_close($con);
I'm getting the error:
mysql_fetch_array() expects parameter 1 to be resource, boolean given
Is there anyway to solve this problem?
Problem Solved Thank you sir John Robertson you were a big help!