@NogDogApr 14.2010 — #I haven't used it, but it looks like all you'd need to do is: [code=php] mysql_query("set profiling=1"); mysql_query("whatever you actually want to do with the DB"); $result = mysql_query("show profile"); echo "<table>n"; while($row = mysql_fetch_assoc($result)) { echo "<tr>"; foreach($row as $key => $val) { echo "<td><b>$key:</b></td><td>$val</td>n"; } echo "</tr>n"; } [/code] You could do something similar with the [b]show profile for query 1[/b] syntax to get details for a given query.
@NogDogApr 14.2010 — #If the mysql_query() worked, then I don't know why the fetch_assoc would have failed unless you are using a really old version of PHP (< 4.0.3). You could try mysql_fetch_array() with the MYSQL_ASSOC constant for the 2nd parameter.