Preserved Topic: MySQL SELECT * from.... question (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Canada |
posted 02-25-2004 23:58
ok I want to do the following |
Maniac (V) Inmate From: Cell 666 |
posted 02-26-2004 00:14 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 02-26-2004 00:18
Nope you don't need anything |
Bipolar (III) Inmate From: Canada |
posted 02-26-2004 01:25
Ok, code: $result=mysql_query("SELECT * from tutorials WHERE cat_id='$category' ORDER BY tname ASC)or die("Could not execute $q.".mysql_error());
|
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 02-26-2004 01:52
Bit, I can see some performance reasons for not using the wildcard, but I am wondering if there are more reasons that you have hidden under your cloak of knowledge to make it prohibitive for using it in a production enviornment? |
Bipolar (III) Inmate From: Canada |
posted 02-26-2004 03:09
Ok, I'm assuming the LIMIT 0, 5 is the Error |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 02-26-2004 08:38
well, reading the error output, I'm seening that there's no space between ASC and LIMIT. There should be one. Even if I have no idea where you're pulling that limit from. Certainly not from the query you posted. |