Echo The Table And Html Code
Soo im trying to get the data of mysql base in tables, but its giving me errors function content_temp() { if(isset($_GET['action'])) { if($_GET['action'] == 'bans')
Solution 1:
Your <div class="positiontable">
text in function content_temp()
contains quotes which must be escaped or replaced (as you're using quotes to specify the echo).
For example <div class=\"positiontable\">
or <div class='positiontable'>
.
Solution 2:
you are using double quotes in div class which is creating problem ...so you need to use your class like this...
<div class="positiontable"> or <div class='positiontable'>.
Try This..
function content_temp()
{
if(isset($_GET['action']))
{
if($_GET['action'] == 'bans')
{
echo " <table class='MYTABLE'>
<div class='positiontable'>
<tr CLASS='MYTABLE'>
<th CLASS='MYTABLE' height=40 width=80>User</th>
<th CLASS='MYTABLE' height=40 width=80>Time</th>
<th CLASS='MYTABLE' height=40 width=80>IP</th>
<th CLASS='MYTABLE' height=40 width=180>Reason</th>
<th CLASS='MYTABLE' height=40 width=80>Admin</th>
</tr>
</div>
</table> ";
echo " <tr CLASS='MYTABLE'>
<td CLASS='MYTABLE' height=40 width=80>$name</td>
<td CLASS='MYTABLE' height=40 width=80>$time</td>
<td CLASS='MYTABLE' height=40 width=80>$ip</td>
<td CLASS='MYTABLE' height=40 width=180>$reason</td>
<td CLASS='MYTABLE' height=40 width=80>$admin</td>
</tr>";
}
}
}
Post a Comment for "Echo The Table And Html Code"