Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[Help] PHP Script Problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Cronus" data-source="post: 217021" data-attributes="member: 35689"><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333"><?php</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">function clean($str) {</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$str = @trim($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">if(get_magic_quotes_gpc()) {</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$str = stripslashes($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">}</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">return mysql_real_escape_string($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">}</span></span></p><p> </p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$username = filter($_REQUEST["user"]);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$userid = filter($_REQUEST["id"]);</span></span></p><p> </p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">// User Info \\</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$userinfo = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$_GET2 = mysql_fetch_assoc($userinfo);</span></span></p><p> </p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$motto = filter($_GET2['motto']);</span></span></p><p> </p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">?></span></span></p><p> </p><p>Put that ^^^^^^ at the top of the page</p><p> </p><p> </p><p>then put <span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $motto; ?> where you want it</span></span></p><p> </p><p> </p><p> </p><p> </p><p>EDIT: O wait is this for retro or real habbo</p></blockquote><p></p>
[QUOTE="Cronus, post: 217021, member: 35689"] [FONT=Comic Sans MS][COLOR=#333333]<?php[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]function clean($str) {[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$str = @trim($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]if(get_magic_quotes_gpc()) {[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$str = stripslashes($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]}[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]return mysql_real_escape_string($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]}[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$username = filter($_REQUEST["user"]);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$userid = filter($_REQUEST["id"]);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]// User Info \\[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$userinfo = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$_GET2 = mysql_fetch_assoc($userinfo);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$motto = filter($_GET2['motto']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]?>[/COLOR][/FONT] Put that ^^^^^^ at the top of the page then put [FONT=Verdana][COLOR=#222222]<?php echo $motto; ?> where you want it[/COLOR][/FONT] EDIT: O wait is this for retro or real habbo [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[Help] PHP Script Problem
Top