Demonic Posted September 14, 2006 Share Posted September 14, 2006 [code]<?phpinclude "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";?>[/code]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 1i get that error and i have no clue whats wrong Quote Link to comment Share on other sites More sharing options...
effigy Posted September 14, 2006 Share Posted September 14, 2006 How about[tt] mysql_real_escape_string($sds)[/tt]? Quote Link to comment Share on other sites More sharing options...
Demonic Posted September 14, 2006 Author Share Posted September 14, 2006 k ill try that thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.