Jump to content

wawenka

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wawenka's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i don get it could you expound abit?? on what i should do with line 19
  2. i get this message all the tym. Parse error: syntax error, unexpected T_VARIABLE in /var/www/inventory files/process1.php on line 19  my code is:<html> <body> // Set Mysql Variables <?php $host = 'localhost'; $user = 'root'; $pass = ''; $db = 'KenetInventory'; $table = 'Equipment'; // Set global variables to easier names $ItemNo = $_POST['ItemNo']; $Manufacturer = $_POST['Manufacturer']; $Model = $_POST['Model']; $SerialNO = $_POST['SerialNo']; $Description = $_POST['Description']; mysql_connect($host,$user,$pass) or die(mysql_error()); mysql_select_db(KenetInventory) or die(mysql_error()); $add_all = 'INSERT INTO Equipment values('$ItemNo','$Manufacturer','$Model','$SerialNo','$Description','')'; mysql_query($add_all) or die(mysql_error()); } ?> </body> </html>
  3. <html> <body> // Set Mysql Variables <?php $host = 'localhost'; $user = 'root'; $pass = ''; $db = 'KenetInventory'; $table = 'Equipment'; // Set global variables to easier names $ItemNo = $_POST['ItemNo']; $Manufacturer = $_POST['Manufacturer']; $Model = $_POST['Model']; $SerialNO = $_POST['SerialNo']; $Description = $_POST['Description']; mysql_connect($host,$user,$pass) or die(mysql_error()); mysql_select_db(KenetInventory) or die(mysql_error()); $add_all = 'INSERT INTO Equipment values('$ItemNo','$Manufacturer','$Model','$SerialNo','$Description','''); mysql_query($add_all) or die(mysql_error()); } ?> </body> </html>
×
×
  • 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.