i want to know some of details in php
Code: Select all
$sql="select * from texttable"
$result=mysql_query($sql);
while(list($key,$rows)=each($result))
{
$output=mysql_result($result,0,'column name');
}
this manner there is any other sysntax for fetch the output from the table in the database..
like whiile($row=mysql_fetch_array($result)){
echo $row['user_name'];
}
this sort any other examples if you..plz share with me..
thanks in advance