- Original Message -
From: CDitty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 01, 2003 11:26 AM
Subject: [PHP] MySQL/PHP Associative Array Insert
A co-worker is teaching me to move to the next level in php. I have
started using associative arrays for my scripts,
Yes Chris,
When you add the item to the database, make sure to leave out the single
quotes inside the brackets of the associative array. For example:
Instead Of:
$item['itemID']
Do This:
$item[itemID]
Example Query:
$query = SELECT * FROM items WHERE '$item[itemID]';
Hope that helps.
To: [EMAIL PROTECTED]
Subject: RE: [PHP] MySQL/PHP Associative Array Insert
Yes Chris,
When you add the item to the database, make sure to leave out the single
quotes inside the brackets of the associative array. For example:
Instead Of:
$item['itemID']
Do This:
$item[itemID
3 matches
Mail list logo