dcr33
05-27-2012, 09:57 AM
Hi
I am trying to subtract a id from a roll number from a database. But the subtraction is not occurring !!
This is my code :
echo"
<TR>
<TD>$c</TD>
<TD>$row[name]</TD>
<TD>$row[roll]-$row[id]</TD>
<TD><A HREF='1.php?page=$_GET[page]&upd=$row[id]'>UPDATE<A></TD>
</TR>";
I am trying various ways like -
"$row[roll]"-"$row[id]"
OR
like this :
"$row[roll]\"-\"$row[id]\"
etc etc. but none is working.
Please can anyone tell me how to do the subtraction between row[roll] and row[id]??
I am trying to subtract a id from a roll number from a database. But the subtraction is not occurring !!
This is my code :
echo"
<TR>
<TD>$c</TD>
<TD>$row[name]</TD>
<TD>$row[roll]-$row[id]</TD>
<TD><A HREF='1.php?page=$_GET[page]&upd=$row[id]'>UPDATE<A></TD>
</TR>";
I am trying various ways like -
"$row[roll]"-"$row[id]"
OR
like this :
"$row[roll]\"-\"$row[id]\"
etc etc. but none is working.
Please can anyone tell me how to do the subtraction between row[roll] and row[id]??