Jump to content


Photo

WOW whats wrong with this bull****


  • Please log in to reply
2 replies to this topic

#1 Demonic

Demonic
  • Members
  • PipPipPip
  • Advanced Member
  • 562 posts

Posted 14 September 2006 - 09:05 PM

<?php
include "database.php";
$sds = <<<TOD
<style type='text/css'>
a:link{text-decoration: none;color:#FFFFFF;}
a:hover{text-decoration: underline;color:#AF0619;}
a:visited{text-decoration: none;color:#000000;}
.memberlinks{margin-bottom:10px;background-color:#ffffff;width:100%;height:40px;border:1px solid #000;background-image: url(http://img235.imageshack.us/img235/7727/maintitlekl9.gif)}
.category{text-align:center;background-color:#ffffff;width:100%;height:40px;border:1px solid #000;background-image: url(http://img235.imageshack.us/img235/7727/maintitlekl9.gif);background-color:#FFFFFF;}
.forumheader{font-size:8px;background-color:#7F2A34;width:100%;height:10px;border:1px solid #000;border-bottom:0px}
.forum{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;height:35px;}
.loginform{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;height:35px;}
.boardstatistics{height:100px;background-color:#ffffff;width:100%;border:1px solid #000;background-image: url(http://img101.imageshack.us/img101/9466/2ej2we7.gif);}
.onlineusers{width:100%;border:1px solid #000;background-color:#862A34;margin-bottom:10px;height:50px;}
.lastcatrow{font-size:8px;background-color:#ffffff;width:100%;height:10px;border:1px solid #000;margin-bottom:10px;background-image: url(http://img206.imageshack.us/img206/1609/underbarhe5.gif)}
.banner{text-align:center;width:100%;height:100px;border:1px solid #000;background-color:#FFFFFF;margin-bottom:10px;background-repeat:no-repeat;}
.memlisthead{width:100%;border:1px solid #000;border-bottom:0px;background-color:#862A34;height:30px;}
.profile{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;height:35px;}
.logout{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;height:35px;}
.vforumhead{font-size:12px;background-color:#7F2A34;width:100%;height:12px;border:1px solid #000;border-bottom:0px}
.firstpost{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;}
.secondpost{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;}
.usercp{background-color:#830613;width:100%;border:1px solid #000;border-bottom:0px;}
.copparules{height:200px;width:500px;}
.newttitle{width:400px;}
.ntopic{height:100px;width:400px;}
.banlink{border:0px}
img{border:0px;}
.regbutton{font-size:7px;height:18px;}
body,html{
height:100%;
background-color:#78010E;
font-family: arial;
font-size:11px
}
</style>
TOD;
mysql_query("INSERT INTO stylesheets(css) VALUE('$sds')") or die(mysql_error());
echo "Default CSS was Installed";
?>
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'text/css'> .memberlinks{margin-bottom:10px;background-color:#ffffff;width:100%;h' at line 1

i get that error and i have no clue whats wrong

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 14 September 2006 - 09:07 PM

How about mysql_real_escape_string($sds)?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 Demonic

Demonic
  • Members
  • PipPipPip
  • Advanced Member
  • 562 posts

Posted 14 September 2006 - 09:08 PM

k ill try that thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users