Jump to content

11-1 Converting to 9


richie19rich77

Recommended Posts

Hi Eveyone,

 

Sorry I have looked now for the last hour or so, but am stuck on this very simple priblem.

 

I am pulling data via the $_POST command and inserting into a mysql table. The output of the post command is "11-1".  I wan to insert it into the table as "11-1" but it keeps converting it to "9".

 

I have tried "settype", "intval", "intstr" but nothing. 

 

Sorry very basic.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/161264-11-1-converting-to-9/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.