Submit Button variable passing
am 03.05.2008 20:00:19 von Ron PiggottIn the PHP script below I need to be able to pass on the value of
'reference' within the shopping_cart_product table when the "Delete
Category" and "Rename Category" buttons are clicked. How do I do this?
Ron
mysql_connect('localhost',$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "SELECT *
FROM shopping_cart_category c
LEFT OUTER JOIN shopping_cart_product p
ON c.reference = p.reference
ORDER BY c.category_name ASC";
$result = mysql_query($query);
if(!$result) die('error: ' . mysql_error());
mysql_close();
$table = "
" . stripslashes($row['category_name']) . " | \n";value=\"Delete Category\" onclick=\"deleteCategory();\"> | \n";value=\"Rename Category\" onclick=\"renameCategory();\"> | \n";
echo $table;
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php