skip to Main Content

URL variable/value doesn't get picked up by php

I have this code to create a new OrdID if no value for this variable exists: If ($OrdID=="") { $con = mysql_connect("localhost","xxx","xxx"); mysql_select_db("xxx_Order", $con); $query=mysql_query("Select Max(OrdID) FROM `Order`"); while($row=mysql_fetch_array($query)) { $OrdID= $row[0] + 1; } $sql = "INSERT INTO `xxx_Order`.`Order`…

VIEW QUESTION
Back To Top
Search