hi friends...
Thanks for your suggestions..but i could not get the exact rank list
properly..
My code is as below..
$sql2=SELECT * FROM rank;
$result=mysql_query($sql2,$con);
$num=mysql_num_rows($result);
for($i=0;$i$num;$i++)
{
$f1=mysql_result($result,$i,regno);
Dear Bavithra,
I would suggest you the following solution
$sql = SELECT x FROM y;
$rs = mysql_query ($sql)
$num = mysql_numrows($rs);
while ($i $num){
z = mysql_result($rs, $i, 'x');
$i++;
}
I hope that above solution help you.
Luiz Alberto
On Sun, 2010-05-02 at 10:56
On 02/05/10 15:26, Bavithra R wrote:
hi friends
I am doing a simple student mark details project.
for calculating rank I need to compare the total marks one by one.
To do so i use *for loop.* so atlast while reaching the end of the table it
shows the following warning.
*
Warning*:
hi friends
I am doing a simple student mark details project.
for calculating rank I need to compare the total marks one by one.
To do so i use *for loop.* so atlast while reaching the end of the table it
shows the following warning.
*
Warning*: mysql_result()