Hi there.. Im new here.. I need help with two things.. first I'm getting this error
Parse error: syntax error, unexpected T_STRING in /home/hummpinf/public_html/admaccount.inc.php on line 158
I tried using quotes and backslashes but i think i'm puting them in the wrong places..
Heres line 150 to 160
function last_value($t){
global $line;
if(!$t) return "<a href=\"mailto:$line[email]\">$line[email]</a>";
else return number_format($line[amt],2);
}
function choice_summary($i,$title){
global $t;
if(!$t) $t=0;
echo ('.'<input type=radio name=t value=$i ".make_checked($i,$t)." onclick=\"submit();\">$title)
?>
The second question i have is this error ( i've been getting this same error on different sites.. cant figure out whats wrong or how to fix it..
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/sweethon/public_html/batchgame/index.php on line 89
here is line 80 to 97 thanks
</tr>
<tr align="center" bgcolor="#666666">
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Batch</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">E-Gold</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Bet</font></td>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Win</font></td>
</tr>
<?
$res = mysql_query("select * from batch where gameid='$_id' order by id desc");
if (mysql_num_rows($res)>0) {
$ctr = 0;
while ($row=mysql_fetch_array($res)) {
$ctr = $ctr+1;
?>
<tr align="center" bgcolor="#999999">
<td><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">
<?= $row["batch"] ?>
</font></td>
Thank you for your help in advance..