10 days Learn PHP Day 5
-
<? -
$exec = "select * from user" ; -
$result =mysql_query( $exec ); -
while ( $rs =mysql_fetch_object( $result )) -
{ -
echo "username:" . $rs ->username. "<br>" ; -
} -
?>
-
<% -
exec = "select * from user" -
set rs=server.createobject( "adodb.recordset" ) -
rs.open exec ,conn,1,1 -
do while not rs.eof -
response.write "username:" &rs( "username" ) "<br>" -
rs.movenext -
loop -
%>
Related articles
The Method of Zblog to Realize Automatic Pagination of Long Articles Zblog removes the word "last edit" from the comment CSS makes the background transparent text opaque: original by toyean Jquery gets the browser height, width, and scroll bar height JQuery anchor link smooth scrolling effect Css code of forced line breaking and non line breaking in chinese and english