Steve-vfp9user
Programmer
I'm fairly new to this guys but getting there.
The below code inserts some data into a table part of which is a date which when viewed looks like: 06/06/2013--
If I reduce the amount of characters in phpmyadmin I get 06/06/20--
What I would like to do is remove the -- before the information is inserted into the table.
My code looks like this:
I have found the command RTRIM at [link ][/url] but I'm not sure of the concept of this coding.
Can someone please advise where I would add this code to mine so the -- are removed?
Many thanks
Steve
The below code inserts some data into a table part of which is a date which when viewed looks like: 06/06/2013--
If I reduce the amount of characters in phpmyadmin I get 06/06/20--
What I would like to do is remove the -- before the information is inserted into the table.
My code looks like this:
Code:
$sql = "INSERT INTO ".$TABLES["MYREVIEWS"]."
SET mydate_id='".$isLogged."',
[b]date_review='".$_REQUEST["date_review"]."',
[/b]reviewer='".$_REQUEST["reviewer"]."',
prod_itemitem='".$_REQUEST["prod_item"]."',
descrip='".$_REQUEST["descrip"]."'";
I have found the command RTRIM at [link ][/url] but I'm not sure of the concept of this coding.
Can someone please advise where I would add this code to mine so the -- are removed?
Many thanks
Steve