![]() |
Basic SQL query question
I realize this is really basic, I'm learning as I go.
I'm trying to make a simple page to add data to a database. The database is named 'php', and I have a table with: id (int, auto increment) and text fields named lastname, firstname, org, cdate and notes. My form input is a quick table, the inputs look like this: Code:
<td width="100">Lastname</td> I've defined these variables to grab the post data: Code:
$lastname = $_POST['lastname']; Code:
// Add the info |
Replace the query line with this to see the error being generated:
Code:
mysql_query($query) or die(mysql_error()); |
Aah, thanks. :D
Quote:
Edit: Woohoo! I got it! :D That error is because I'm going by the O'Reilly book and was flushing privelages after the submit. Honestly I don't even know what it does (hehehe) so I dumped it and it works now. :) Thank you very much! :) |
All times are GMT. The time now is 01:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|