Re: [PHP] mysql and user-defined functions

2001-05-22 Thread Alexander Wagner
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, thi

RE: [PHP] mysql and user-defined functions

2001-05-22 Thread Lybarger, Denver J (LYBARDJ8)
t $row to equal $temp after the call but it is not allowing me to return $temp, any ideas? > -- > From: Alexander Wagner[SMTP:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 4:19 PM > To: Lybarger, Denver J (LYBARDJ8); '[EMAIL PROTECTED]' > Subje

Re: [PHP] mysql and user-defined functions

2001-05-21 Thread Alexander Wagner
Lybarger, Denver J (LYBARDJ8) wrote: > Is there a way to return the results of a mysql_query or the > array that is generated after mysql_fetch_array, via a function? > Note I have tried to do a straight return. What was the problem? This should work. Maybe you just got the mysql_fetch_ar

[PHP] mysql and user-defined functions

2001-05-21 Thread Lybarger, Denver J (LYBARDJ8)
Hi All, Is there a way to return the results of a mysql_query or the array that is generated after mysql_fetch_array, via a function? Note I have tried to do a straight return. Another issue is that all of the tables are a different size, therefore a static array size would be a big was