Hi,
>if ($submit) {
> // here if no ID then adding else we're editing
> if ($id) {...
>
>where id is the first field of mydb. Using other pages I can see that the
>id is there in the mydb file. I also get the same error for "if ($submit..."
Ok, I may be wrong here as I'm no PHP expert, but from my limited
experience with MySQL I know you can't just reference fields in the
database like this. You have to first fetch them using mysql_fetch_array or
mysql_fetch_row (or something equivalent). And then you can use/call them
with the appropriate array index (e.g. Array[0] or Array["Key"] depending
on the type of array you choose)
Hope this helps,
Olivier
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]