Re: Wow, this is weird

David McGlone <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <1438500.mLiz2K1OuY@buddy>
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 <[email protected]>
> > To: [email protected]
> > 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.