[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 =

[PHP] Re: REsource Identifier( PHP_MYSQL)

2004-03-26 Thread Gimic
. Gimic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

[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. ?php function Compare($UserInput) { $db=mysql_connect($ServerAddress,$LoginName,$LoginPassword)); mysql_select_db($userDB,$db); $result =

[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] It's a simple algorythem, use a loop