[PHP] Re: question about M. Lemos's HTML forms generation and validation

2004-03-29 Thread Gimic
I just looked over the code I recently submitted.. the last if statement needs a semi-colon at the end of the echo("The name don't exist") part... sory if you copy/pasted and got an error.. ;) "Gimic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] &g

[PHP] Re: question about M. Lemos's HTML forms generation and validation

2004-03-29 Thread Gimic
It's a simple algorythem, use a loop to enter the names from the database into an array, and compare each to the value in the array. or some hybred thereof. regardless of what performance freaks say.. this won't make a big dif in performance unless you are like yahoo with several hundred millio

[PHP] Re: REsource Identifier( PHP_MYSQL)

2004-03-26 Thread Gimic
The entire script looks like this: Where the name of the table is stored in the $_POST varible. The string isn't empty, yet it is empty. It may be a bug... Or do any of you see any problem with my varible scope? because I don't. "Gimic" <[EMAIL PROTECTED]> wrote in mes

[PHP] REsource Identifier( PHP_MYSQL)

2004-03-26 Thread Gimic
Hey y'all, I'm having problems trying to get the MySql_Query() function to return the resource ID when using a $string as the argument to pass to it. It returns when I hard code the argument but not the string. Any ideas? here is what the function looks like: function GetVals() { $db = mysql_con