Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   MySQL Help? (https://www.cableforum.uk/board/showthread.php?t=33655288)

Keyz333 13-09-2009 03:28

MySQL Help?
 
Ok, I have recently set up a type of online messenger, and I would like to have a members list on one of my HTML pages.. I just need a line of code which will list the names in a certain part of the MySQL DB.

EG The table is called Users and inside I just need the 'username' to be shown, in a list, of all the members.

Thanks alot in advance.

Jon T 13-09-2009 09:14

Re: MySQL Help?
 
Try this: http://www.astahost.com/info.php/Dis...st_t19036.html

punky 13-09-2009 10:32

Re: MySQL Help?
 
Quote:

Originally Posted by Keyz333 (Post 34871725)
Ok, I have recently set up a type of online messenger, and I would like to have a members list on one of my HTML pages.. I just need a line of code which will list the names in a certain part of the MySQL DB.

EG The table is called Users and inside I just need the 'username' to be shown, in a list, of all the members.

Thanks alot in advance.


Code:

SELECT username FROM Users;
will do the job. If you want to sort then:

Code:

SELECT username FROM Users ORDER BY username ASC

Keyz333 13-09-2009 13:12

Re: MySQL Help?
 
Thank you!


All times are GMT +1. The time now is 10:24.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum