Topic awaiting preservation: mysql_fetch_array() problem? |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: London, UK |
posted 11-28-2002 03:06
Please can you help, i connect to my database, but then I cannot get the data from my table. (I am trying to send it to the browser) code: mysql_select_db("projectg");
|
Bipolar (III) Inmate From: London, UK |
posted 11-28-2002 03:28
Sorry, I fixed it. code: $query = "SELECT modCode, modTitle ";
|
Paranoid (IV) Inmate From: Milwaukee |
posted 11-29-2002 20:57
Unless you're dynamically building a query based on other conditions, there's no real reason not to just "SELECT field1, field2 FROM table WHERE stuff=things". And even if the query is dependent on conditions, you can "SELECT $value, $value FROM $table WHERE $value = $value" -- as long as your query is contained in double quotes, variables will be expanded. |