Jump to content

Question


PHP Newby

Recommended Posts

I'm a bit new to PHP and I have a question. It might be a little hard to answer but, here it is.



This is the snipet I'm having problems with:
[code]CODE
    $name  =  $_POST['name'];
    $price  =  $_POST['price'];
    $item  =  $_POST['item'];
    $date  =  $_POST['date'];
    $query = "INSERT INTO `secondlifetrans` ( `Name` , `Item` , `Price` , `Date` )
VALUES (
'$name', '$item', '$price', '$date'
);";[/code]
This, for some reason, outputs empty strings into the sql database, but I'm sure all the variables are completly defined. Any help, anyone?
Link to comment
https://forums.phpfreaks.com/topic/28041-question/
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.