Re: Wow, this is weird
| From: | David McGlone | Date: | Mon, 27 Aug 2012 23:32:01 +0000 |
| Subject: | Re: Wow, this is weird | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-48436@lists.php.net to get a copy of this message | ||
On Monday, August 27, 2012 10:11:32 PM lists-php wrote:
> ------------ Original Message ------------
>
> > Date: Monday, August 27, 2012 06:04:28 PM -0400
> > From: David McGlone <david@dmcentral.net>
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] Wow, this is weird
> >
> > Hi Everyone
> >
> > I have written some code that works almost 100% like I expect, but
> > for the life of me I cannot figure out why the image name is not
> > being inserted into the database. I've posted the code on
> > pastebin, can anyone spot something amis?
> >
> > http://pastebin.com/mGBFrxwP
> >
> > David M.
>
> Start by trying basic debugging -- echo your mysql insert statement
> and see what the values are.
I echoed all the values and Image come up blank on the results page and in the
database. Everything else works as intended.
$image = $_POST['image'];
echo $image;
echo "<br />";
$year = $_POST['year'];
echo $year;
echo "<br />";
$make = $_POST['make'];
echo $make;
echo "<br />";
$model = $_POST['model'];
echo $model;
echo "<br />";
$milage = $_POST['milage'];
echo $milage;
echo "<br />";
$price = $_POST['price'];
echo $price;