Posted by ZeldorBlat on 03/21/06 01:39
Iván Sánchez Ortega wrote:
>
> > response.write("<table>")
> > do until rs.EOF
> > for each x in rs.Fields
> > response.write("<tr><td><b>" & x.name & "</b></td>")
> > response.write("<td> & x.value & "</td></tr>")
> > next
> > rs.MoveNext
> > loop
> >
> > response.write("</table>")
>
> $rs = mysql_query($sql,MYSQL_ASSOC);
>
> echo '<table>';
> while ($row = mysql_fetch_array($rs))
> {
> foreach($row as $column_name=>$value)
> echo "<tr><td><b>$column_name</b></td><td>$value</td></tr>";
> }
It looks sooooo much nicer in PHP :)
[Back to original message]
|