Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php value='00-0123'

Status
Not open for further replies.

vehto

Technical User
Joined
Aug 19, 2003
Messages
7
Location
US
Help newbie
I have a PHP script with a dash in a value field



Problem: mysql is interpeting the dash (-) as a minus sign
can anyone help with this ??


 
Yes I ampassing the value to mysql

mysql_query ("insert into testdb (user_id, act_id) values ($user '$act')")

WOW its working !!


Thanks sleipnir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top