Re: PHP to insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if your trying to say is to insert a record to a database using PHP... you can do the following..


$field1 = "1";
$field2="Juan";
$field3 = "dela Cruz";
$sql = "insert into tblName values ('$field1','field2','field3')";
mysql_query($sql);

or 

$sql = "insert into tblName (fieldName1, fieldName2, fieldName3) values ('$field1','field2','field3')";
 mysql_query($sql);



"Sergio de A.Gonzalez" <sergioag@xxxxxxxxxxxxx> wrote:                                  How to make an insert in a mysql database in string type the '#' character?
 Thanks
 sergio
 
     
                       

       
---------------------------------
Got a little couch potato? 
Check out fun summer activities for kids.

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux