MySQL Forums
Forum List  »  Newbie

Re: convert string to number
Posted by: Timmo Henseler
Date: April 28, 2010 12:55PM

I am using php:

$import="INSERT into book(date,amount,description) values(STR_TO_DATE('$data[1]','%e-%c-%y'),'$data[2]')";
mysql_query($import) or die(mysql_error());

Options: ReplyQuote


Subject
Written By
Posted
April 28, 2010 11:37AM
Re: convert string to number
April 28, 2010 12:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.