OK, I'm brand new at this, and I expect this to be the first of many questions. I've checked in all the appropriate places and I still just don't get it, and I'm finally frustrated enoug to expose myself as the moron I am and just ask you folks for help. THis is kindergarten stuff.
I'm just tryin to test a user entered string against a string from my db.
I've distilled my script down to the bare bones (because it doesn't work) and have found that the problem, of course, is that the stuff coming OUT of my database, doesn't look like what I put IN.
For example, if I've done a query say... SELECT * FROM stuff WHERE x = $x, and then a fetch array.
($x is user entered on html form, and c in the database is "blah")
and then I test it... it keeps coming back false...
sure enough when I check the output...
x from the database is "Resource id#5", but I'm expecting it to be "blah"
What the heck is "Resource id#5"?
Where is it coming from?
How do I turn it into "blah"?
Am I too stupid to do this from, scratch?
Is there a better way/place to learn this stuff from scratch?
I'm just tryin to test a user entered string against a string from my db.
I've distilled my script down to the bare bones (because it doesn't work) and have found that the problem, of course, is that the stuff coming OUT of my database, doesn't look like what I put IN.
For example, if I've done a query say... SELECT * FROM stuff WHERE x = $x, and then a fetch array.
($x is user entered on html form, and c in the database is "blah")
and then I test it... it keeps coming back false...
sure enough when I check the output...
x from the database is "Resource id#5", but I'm expecting it to be "blah"
What the heck is "Resource id#5"?
Where is it coming from?
How do I turn it into "blah"?
Am I too stupid to do this from, scratch?
Is there a better way/place to learn this stuff from scratch?
