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 Q&A
Boolean given help
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="Sab" data-source="post: 168590" data-attributes="member: 3878"><p>I get this error in my housekeeping:</p><p> </p><p><strong><span style="color: #000000"><span style="font-family: 'Open Sans'"><span style="font-size: 16px">Warning</span></span></span></strong><span style="font-size: 16px"><span style="font-family: 'Open Sans'"><span style="color: #000000">: mysql_fetch_array() expects parameter 1 to be resource, boolean given in </span></span></span><strong><span style="color: #000000"><span style="font-family: 'Open Sans'"><span style="font-size: 16px">C:\xampp\htdocs\app\tpl\skins\Custom-Habbo\hk\jobs.html</span></span></span></strong><span style="font-size: 16px"><span style="font-family: 'Open Sans'"><span style="color: #000000"> on line </span></span></span><strong><span style="color: #000000"><span style="font-family: 'Open Sans'"><span style="font-size: 16px">43</span></span></span></strong></p><p> </p><p>This is the link 43 in HK:</p><p> </p><p> </p><p>[CODE] $getMySQL = mysql_query("SELECT * FROM `jobs` "); $alternate = 1; while ($data = mysql_fetch_array($getMySQL)) { if($alternate == 0) { $alternate = 1; echo "<tr style=\"background-color: #4FD9EF;\">"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['username'] . "</td>"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['job'] . "</td>"; echo "<td style=\"width: 37.5%;background-color: #4FD9EF;\">" . $data['why'] . "</td>"; echo "<td style=\"width: 20%;background-color: #4FD9EF;\">" . $data['experience'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['age'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['other'] . "</td>"; echo "</tr>"; } else if($alternate == 1) { $alternate = 0; echo "<tr style=\"background-color: #2DB8CD;\">"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['username'] . "</td>"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['job'] . "</td>"; echo "<td style=\"width: 37.5%;background-color: #4FD9EF;\">" . $data['why'] . "</td>"; echo "<td style=\"width: 20%;background-color: #4FD9EF;\">" . $data['experience'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['age'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['other'] . "</td>"; echo "</tr>"; } } ?> </table> </p></div> </div></p><p>[/CODE]</p><p> </p><p> </p><p>It's all 1 line, just looks like that on here. (I'm not so good at coding)</p></blockquote><p></p>
[QUOTE="Sab, post: 168590, member: 3878"] I get this error in my housekeeping: [B][COLOR=#000000][FONT=Open Sans][SIZE=16px]Warning[/SIZE][/FONT][/COLOR][/B][SIZE=16px][FONT=Open Sans][COLOR=#000000]: mysql_fetch_array() expects parameter 1 to be resource, boolean given in [/COLOR][/FONT][/SIZE][B][COLOR=#000000][FONT=Open Sans][SIZE=16px]C:\xampp\htdocs\app\tpl\skins\Custom-Habbo\hk\jobs.html[/SIZE][/FONT][/COLOR][/B][SIZE=16px][FONT=Open Sans][COLOR=#000000] on line [/COLOR][/FONT][/SIZE][B][COLOR=#000000][FONT=Open Sans][SIZE=16px]43[/SIZE][/FONT][/COLOR][/B] This is the link 43 in HK: [CODE] $getMySQL = mysql_query("SELECT * FROM `jobs` "); $alternate = 1; while ($data = mysql_fetch_array($getMySQL)) { if($alternate == 0) { $alternate = 1; echo "<tr style=\"background-color: #4FD9EF;\">"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['username'] . "</td>"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['job'] . "</td>"; echo "<td style=\"width: 37.5%;background-color: #4FD9EF;\">" . $data['why'] . "</td>"; echo "<td style=\"width: 20%;background-color: #4FD9EF;\">" . $data['experience'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['age'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['other'] . "</td>"; echo "</tr>"; } else if($alternate == 1) { $alternate = 0; echo "<tr style=\"background-color: #2DB8CD;\">"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['username'] . "</td>"; echo "<td style=\"width: 12.5%;background-color: #4FD9EF;\">" . $data['job'] . "</td>"; echo "<td style=\"width: 37.5%;background-color: #4FD9EF;\">" . $data['why'] . "</td>"; echo "<td style=\"width: 20%;background-color: #4FD9EF;\">" . $data['experience'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['age'] . "</td>"; echo "<td style=\"width: 30%;background-color: #4FD9EF;\">" . $data['other'] . "</td>"; echo "</tr>"; } } ?> </table> </p></div> </div> [/CODE] It's all 1 line, just looks like that on here. (I'm not so good at coding) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Boolean given help
Top