wawenka Posted October 26, 2006 Share Posted October 26, 2006 <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> Link to comment https://forums.phpfreaks.com/topic/25163-i-don-know-what-is-wrong-with-this-code-pliz-some1-help/ Share on other sites More sharing options...
jvrothjr Posted October 26, 2006 Share Posted October 26, 2006 [code=php:0]$add_all = 'INSERT INTO Equipment values('$ItemNo','$Manufacturer','$Model','$SerialNo','$Description','')';[/code] Link to comment https://forums.phpfreaks.com/topic/25163-i-don-know-what-is-wrong-with-this-code-pliz-some1-help/#findComment-114698 Share on other sites More sharing options...
wawenka Posted October 27, 2006 Author Share Posted October 27, 2006 i don get it could you expound abit?? on what i should do with line 19 Link to comment https://forums.phpfreaks.com/topic/25163-i-don-know-what-is-wrong-with-this-code-pliz-some1-help/#findComment-115276 Share on other sites More sharing options...
jvrothjr Posted October 27, 2006 Share Posted October 27, 2006 [code=php:0]'$Description','')';[/code]look at your structure at the end of the line Link to comment https://forums.phpfreaks.com/topic/25163-i-don-know-what-is-wrong-with-this-code-pliz-some1-help/#findComment-115395 Share on other sites More sharing options...
wawenka Posted October 30, 2006 Author Share Posted October 30, 2006 thanx i got it this tym. Link to comment https://forums.phpfreaks.com/topic/25163-i-don-know-what-is-wrong-with-this-code-pliz-some1-help/#findComment-116609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.