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
Server Development
Habbo Retros
Habbo Releases
MercuryEmu Command.
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="Brad" data-source="post: 326552" data-attributes="member: 17995"><p>I'll do it now.</p><p>[DOUBLEPOST=1425046216,1425045860][/DOUBLEPOST]</p><p>[PHP]</p><p>case "fansites": </p><p> {</p><p> </p><p></p><p> StringBuilder builder = new StringBuilder();</p><p> builder.Append("Hey, " + Session.GetHabbo().Username + " Here is a list of Our Official Fansites, it will be Very Apreciated if you check then out :D.\n");</p><p> builder.Append("\n");</p><p> using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor())</p><p> {</p><p> </p><p> dbClient.setQuery("SELECT `name`,`username`,`link` FROM `fansites`");</p><p> DataTable GetFansites = dbClient.getTable();</p><p></p><p> if (GetFansites != null)</p><p> {</p><p> foreach (DataRow Row in GetFansites.Rows)</p><p> {</p><p> builder.Append("Fansite:\n");</p><p> builder.Append("Fansite Name: " + Row["name"] + " Fansite Link = " + Row["link"] + "\n");</p><p> builder.Append("in-game Username: " + Row["username"] + "\n");</p><p> builder.Append("\n");</p><p> }</p><p> }</p><p> else</p><p> {</p><p> builder.Append("There are currently no Fansites.\n");</p><p> }</p><p>}</p><p></p><p>builder.Append("Want yours to show here? Message (your username) in-game to sort this out! :D\n");</p><p>Session.SendNotifWithScroll(builder.ToString());</p><p></p><p> </p><p> }</p><p> </p><p> }</p><p> return true;</p><p>[/PHP]</p><p></p><p>heres the MySQL Code</p><p>[CODE]CREATE TABLE `fansites` (</p><p> `name` int(11) unsigned NOT NULL AUTO_INCREMENT,</p><p> `username` varchar(550) DEFAULT NULL,</p><p> `link` varchar(255) DEFAULT NULL,</p><p> PRIMARY KEY (`username`)</p><p>) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;</p><p>[/CODE]</p><p></p><p>updated the</p></blockquote><p></p>
[QUOTE="Brad, post: 326552, member: 17995"] I'll do it now. [DOUBLEPOST=1425046216,1425045860][/DOUBLEPOST] [PHP] case "fansites": { StringBuilder builder = new StringBuilder(); builder.Append("Hey, " + Session.GetHabbo().Username + " Here is a list of Our Official Fansites, it will be Very Apreciated if you check then out :D.\n"); builder.Append("\n"); using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.setQuery("SELECT `name`,`username`,`link` FROM `fansites`"); DataTable GetFansites = dbClient.getTable(); if (GetFansites != null) { foreach (DataRow Row in GetFansites.Rows) { builder.Append("Fansite:\n"); builder.Append("Fansite Name: " + Row["name"] + " Fansite Link = " + Row["link"] + "\n"); builder.Append("in-game Username: " + Row["username"] + "\n"); builder.Append("\n"); } } else { builder.Append("There are currently no Fansites.\n"); } } builder.Append("Want yours to show here? Message (your username) in-game to sort this out! :D\n"); Session.SendNotifWithScroll(builder.ToString()); } } return true; [/PHP] heres the MySQL Code [CODE]CREATE TABLE `fansites` ( `name` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(550) DEFAULT NULL, `link` varchar(255) DEFAULT NULL, PRIMARY KEY (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; [/CODE] updated the [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
MercuryEmu Command.
Top