Hi Wade,
You do need empty() around each variable, as you can't use the boolean
operators inside that function.
However, I assume you want to return an error if any single value is empty,
as opposed to only if they are all empty. In that case you want to use ||
instead of &&:
if (empty($_POST['
Try placing mysql_error() in your die message. If you don't understand the
error we can help you with that.
Example:
die("The error was: " . mysql_error() );
--
katy
~~+++~~+
no matter where you go,
there you are
+
I would suggest a reorganization of your database tables. The best way I
know of to structure your items/subcategories/categories is to create 4
tables instead of 3.
Your tables for 'categories' and 'subcategories' tables could stay the
same. However you'd need to remove the CAT and SUB columns
It depends on how you like to work. For me, I needed syntax highlighting,
integrated debugging, code folding or a code explorer window, a powerful
search and replace, and side-by-side file comparison.
I chose PSPad. It has:
* excellent syntax highlighting
* an integrated debugger, though I wish
it is commented out though... with /* */:
/*
#headerimg { background:
url('http://xerraireart.com/blogx/wp-content/themes/default/images/personalheader.jpg')
no-repeat top;}
*/
delete the /* and */.
On 2/23/06, James Keeline <[EMAIL PROTECTED]> wrote:
>
> --- Pete <[EMA