Guestbook
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
Code: Select all
mysql_query"SELECT DISTINCT username FROM guestbook WHERE username <> 'Guest'");
Last edited by malcolmboston on Fri Apr 16, 2004 8:29 am, edited 1 time in total.
i've never seen "DISTINCT (username)" before, could you tell me what it does?malcolmboston wrote:Code: Select all
mysql_query("SELECT DISTINCT (username) FROM guestbook WHERE username <> 'Guest'");
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
.................................................tim wrote:u need to be more specific.
cant say build me a vechicle and hope someone makes you a truck instead of a go-kart.
What sources do you have? MySQL database? so forth
Thanx alot tim.
as said i wanted to make a guest book, i do use Mysql database, i want wen somebody click on the submit button, then all his info(entry) will be posted and stored in my database.........
Don't reinvent the wheel.
http://www.hotscripts.com/PHP/
I'm sure there are hundreds of them out there.
http://www.hotscripts.com/PHP/
I'm sure there are hundreds of them out there.
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
lol, i always try to prevent this, i dont really think you learn if your using other peopls scripts, how can you fully understand the in's and out's of it?phice wrote:Don't reinvent the wheel.
personally i always do everything myself i have a couple of hotscripts app's sitting on my drive at home, so i can take a gander at how exactly somehing is done (how i learnt file directories) but the reason i "know so much after so little time" is because i type my app's up from scratch therefore forcing me to undersand the terminology i am using
just my $0.02
Heh...malcolmboston wrote:lol, i always try to prevent this, i dont really think you learn if your using other peopls scripts, how can you fully understand the in's and out's of it?phice wrote:Don't reinvent the wheel.
Youre not supposed to take a pre-existing script, modify it and use that. You still of course should read up on the things you do not understand, so the "dont reinvent the wheel" comments is still legit.
I do think that looking at other peoples code (understanding it or not) is the best way to get a hang of something, just aslong as you research it before applying it.
