Re: Wow, this is weird

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
> > To: php-db@xxxxxxxxxxxxx
> > Subject:  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;

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux