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
Need Help with Retro Please :D
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="AaidenX" data-source="post: 257570" data-attributes="member: 18868"><p>say :update_settings or something say :commands to update it :]</p><p></p><p>For the first error, it suggests you not to use mysql_* functions as they are deprecated, and suggest you to translate your code to MySQLi or PDO. To start off, in mysqli,</p><p></p><p>$db = new mysqli("host", "username", "password", "database");</p><p></p><p>For PDO</p><p></p><p>$config = array (</p><p>'host' => 'host here',</p><p>'username' => 'username',</p><p>'password' => 'password here',</p><p>'dbname' => 'dbname here'</p><p>);</p><p></p><p>$db = new PDO("mysql:host=' . $config['host'] . ';dbname=' . $config['dbname'], $config['username'], $config['password']);</p><p></p><p>But they say to refrain from</p><p>mysql_connect(); as all mysql_* are deprecated and soon might not permanently work.</p><p></p><p>For the news comments problem, when you are using mysql_num_rows(); you must have one resource and one boolean, for example, mysql_num_rows($variable, $config);</p><p></p><p>here your variable would be your query and config would be your mysql_connect();</p></blockquote><p></p>
[QUOTE="AaidenX, post: 257570, member: 18868"] say :update_settings or something say :commands to update it :] For the first error, it suggests you not to use mysql_* functions as they are deprecated, and suggest you to translate your code to MySQLi or PDO. To start off, in mysqli, $db = new mysqli("host", "username", "password", "database"); For PDO $config = array ( 'host' => 'host here', 'username' => 'username', 'password' => 'password here', 'dbname' => 'dbname here' ); $db = new PDO("mysql:host=' . $config['host'] . ';dbname=' . $config['dbname'], $config['username'], $config['password']); But they say to refrain from mysql_connect(); as all mysql_* are deprecated and soon might not permanently work. For the news comments problem, when you are using mysql_num_rows(); you must have one resource and one boolean, for example, mysql_num_rows($variable, $config); here your variable would be your query and config would be your mysql_connect(); [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Need Help with Retro Please :D
Top