I believe that the proper syntax is ---> mysql_connect( host, username,password)
Also I generrally when passing variables use $_POST['name'] ---> $_POST['version']
Good luck,
Nestor :-)
Seena Blace wrote:
Hi, Does any one develop any web pages with PHP,Apache,Win2k,Mysql ? If so,can please help me. When I 'm inserting data thru html FORM ,getting error Notice: Undefined variable: like this.Can some one please send some tips pl? Html code:
<form action="insert.php" method="post"> Software id: <input type="text" name="softwareid"> Manufacturer: <input type="text" name="manufacturer"> Name: <input type="text" name="name"> Version: <input type="text" name="version"> <input type="Submit"> </form> <?
PHP code <? $database="testdatabase"; mysql_connect("localhost"); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO software1 VALUES ('','$softwareid','$manufacturer','$name','$version')"; mysql_query($query); mysql_close(); ?>
Let me know what is wrong pl.
thx -seena
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]