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
need help with a simple fetch mysql_query
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="Shaz" data-source="post: 322961" data-attributes="member: 55688"><p>im trying to get the specific amount of furniture in the items database, ive done this code</p><p></p><p><?php</p><p>$query = mysql_query("SELECT COUNT(*) AS id FROM items") or die(mysql_error());</p><p>$data = mysql_fetch_assoc($query);</p><p></p><p>echo $data['id'];</p><p>?></p><p></p><p>but it tells you the amount of all the furniture but i want to to just select certain id numbers from the items id table </p><p>im trying to show how many eg ( Thrones ) are on the hotel for example</p><p></p><p><span style="color: #ff0000">There are currently (40) thrones on the hotel</span></p><p><span style="color: #000000">if anybody knows the php code to add correctly it would be helpful thanks.</span></p></blockquote><p></p>
[QUOTE="Shaz, post: 322961, member: 55688"] im trying to get the specific amount of furniture in the items database, ive done this code <?php $query = mysql_query("SELECT COUNT(*) AS id FROM items") or die(mysql_error()); $data = mysql_fetch_assoc($query); echo $data['id']; ?> but it tells you the amount of all the furniture but i want to to just select certain id numbers from the items id table im trying to show how many eg ( Thrones ) are on the hotel for example [COLOR=#ff0000]There are currently (40) thrones on the hotel[/COLOR] [COLOR=#000000]if anybody knows the php code to add correctly it would be helpful thanks.[/COLOR] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
need help with a simple fetch mysql_query
Top