Reference / Php / Sql Query Results
Examples of ways to get query results from a sql query. Multiple Rows $sql_select = mysql_query("select * from table where id = '1'); while($row = mysql_fetch_array($sql_select)){ $val1 = $row["column1"]; } Single Row $sql_select = mysql_query("select * from table where id = '1'); $row = mysql_fetch_array($sql_select); $val1 = $row["column1"];
Please note that a disclaimer applies to any code on this page.
|