Jump to content

kyle04

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by kyle04

  1. $amt1 = $var1+$var2; $amt1 = sprintf ("%01.1f", $amt1);
  2. for($i=0;$i <= $row;$i++) { $get_id[$i] = mysql_result($result2, $i, 'Item'); if(mysql_result($result2,$i,'Total') == 1) { $query3 = mysql_query("Update item_category SET category_id='1' where item_id = '$get_id[$i]'"); }// if }// for
  3. You need to ues : if(!is_numeric($_POST['item_stock']) || !empty($_POST['item_stock'])) ie if not a number OR is empty = no stock However, the value 0 returns a positive result so : if(!is_numeric($_POST['item_stock']) || !empty($_POST['item_stock']) || $_POST['item_stock']==0) { echo "no stock"; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.