Lybarger, Denver J (LYBARDJ8) wrote:
> function findEntryId($tableName,$keyName){
> connects to DB
> $db ="SELECT * FROM '$tableName' WHERE '$keyName' = $selectOption";
Where does $selectOption come from?
Looks like you simply produced a MySQL-parse-error.
Try var_dump()-ing $db and $temp, this will help you debug your scripts.
> $mysql_result = mysql_query($db);
> $temp = mysql_fetch_array($mysql_result);
> return $temp;
> }
regards
Wagner
--
"Some guy hit my fender, and I told him, 'Be fruitful and multiply,'
but not in those words."
- Woody Allen
--
PHP General 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]