Re: Strange MySQL Problem

From: Date: Mon, 14 Dec 2009 09:11:41 +0000
Subject: Re: Strange MySQL Problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-300468@lists.php.net to get a copy of this message
Salaaam $sql = "INSERT INTO BOOK(bookname, authorsname, ISBN) VALUES ('".$_POST[bookname]."'' , '".$_POST[authorsname]."',''".$_POST[ISBN]."')"; above line is correct, your code is wrong ,$_POST[ISBN]')"; and add $host = 'localhost'; $con = mysql_connect($host, $username, $password); you can also check this page: http://php.net/manual/en/function.mysql-connect.php Regards, Shahrzad

« previous php.general (#300468) next »