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 " <tableclass='MYTABLE'><divclass='positiontable'><trCLASS='MYTABLE'><thCLASS='MYTABLE'height=40width=80>User</th><thCLASS='MYTABLE'height=40width=80>Time</th><thCLASS='MYTABLE'height=40width=80>IP</th><thCLASS='MYTABLE'height=40width=180>Reason</th><thCLASS='MYTABLE'height=40width=80>Admin</th></tr></div></table> ";
echo " <trCLASS='MYTABLE'><tdCLASS='MYTABLE'height=40width=80>$name</td><tdCLASS='MYTABLE'height=40width=80>$time</td><tdCLASS='MYTABLE'height=40width=80>$ip</td><tdCLASS='MYTABLE'height=40width=180>$reason</td><tdCLASS='MYTABLE'height=40width=80>$admin</td></tr>";
}
}
}
Post a Comment for "Echo The Table And Html Code"