Re: [PHP] Assigning data to fields
Thanks John! That was it! "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 01c26698$1abbc290$7c02a8c0@coconut">news:01c26698$1abbc290$7c02a8c0@coconut... > > I used the examples you have lead me to and I get this error? I am > > stumped? > > > > mysql_fetch_array(): supplied argument is not a valid MySQL result > > resource > > in /home/pay.php on line 51 > > You're query probably failed. Look at mysql_error(). > > www.php.net/mysql_error > > ---John Holmes... > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Assigning data to fields
> I used the examples you have lead me to and I get this error? I am > stumped? > > mysql_fetch_array(): supplied argument is not a valid MySQL result > resource > in /home/pay.php on line 51 You're query probably failed. Look at mysql_error(). www.php.net/mysql_error ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Assigning data to fields
I used the examples you have lead me to and I get this error? I am stumped? mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/pay.php on line 51 Have any idea what this means? Thanks! "Brad Bonkoski" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think this should be a good reference for you: > http://www.php.net/manual/en/function.mysql-fetch-array.php > > HTH > -Brad > > Ken wrote: > > > I am kind of new to PHP. I know how to use a select statement and a query to > > get data out of a table in MySQL, but how do I assign those fields to > > variables? I know this must be easy! Thanks in advance!! > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Assigning data to fields
I think this should be a good reference for you: http://www.php.net/manual/en/function.mysql-fetch-array.php HTH -Brad Ken wrote: > I am kind of new to PHP. I know how to use a select statement and a query to > get data out of a table in MySQL, but how do I assign those fields to > variables? I know this must be easy! Thanks in advance!! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Assigning data to fields
I am kind of new to PHP. I know how to use a select statement and a query to get data out of a table in MySQL, but how do I assign those fields to variables? I know this must be easy! Thanks in advance!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php