Hey everyone, new guy here, having an issue with a section of code... decided one day to just stop working, nothing was changed.
the code is
$query = mysql_query("SELECT * FROM products");
while ($row = mysql_fetch_array($query)){
$productname = $row['name'];
$productinci = $row['inci'];
$productdescription = $row['description'];
$functions = $row['functions'];
$pid = $row['id'];
$id = "<A href=\"processdeleteproduct.php?id=$pid\">Delete product</A>";
$editid1 = "<A href=\"editindvproduct.php?id=$pid\">Edit product</A>";
the error is:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\---\allsuppliers.php on line 102 -(Line 102 is the start of the query)
Any help would be appreciated. Cheers.
Scaasiboi