Topic awaiting preservation: MySQL/PHP - pass variable to a MySQL select statement? |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: under the bed |
posted 08-08-2002 01:59
Been playing around with a few things and can't figure out if I'm doing something wrong or if I simply can't do it (this is all very new to me). |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-08-2002 02:03 |
Maniac (V) Inmate From: under the bed |
posted 08-08-2002 02:30
Well, yes. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-08-2002 03:38
When you are using strings you usually need to surround the passed info with single quotes (the exception is for numbers but it's best just to always use them) |
Maniac (V) Inmate From: under the bed |
posted 08-08-2002 03:55
Ok, well I had been playing around with and without quotes, and with quotes I get no warning, but get no results either. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-08-2002 04:16
Well, I don't have time to look at the tutorial right now, but I use mysql_fetch_array more than mysql_fetch_row. It's a little easier to work with IMHO. |
Maniac (V) Inmate From: under the bed |
posted 08-08-2002 04:30
Yeah? I've been looking at both of them, but haven't gotten as far as trying out mysql_fetch_array yet. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-08-2002 06:04 |
Maniac (V) Inmate From: under the bed |
posted 08-08-2002 14:39 |