Re: I'm completely lost here

Gary Chambers <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <[email protected]>
David,

> Just did that like Richard had suggested also and I do get the expected 
> results. I suspect I need to put the same thing in my query correct? like 
> this:
> 
> mysql_query ("INSERT INTO inventory(image, year, make, model,
> milage, price)VALUES($_POST['image'], $_POST['year'], $_POST['make'],
> $_POST['model'], $_POST['milage'] , $_POST['price'])");

I might be stating the obvious here, but you should really validate your input.  If this is just an exercise or a simple test, that will work.  If it's an application that, especially, is accessible on the internet, you definitely need to validate and ensure that you're receiving sane input.

--
Gary
-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.