Need help for simple PHP functionality

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

MrMrsic
New php-forum User
New php-forum User
Posts: 1
Joined: Sun Jul 14, 2013 2:56 pm

Need help for simple PHP functionality

Postby MrMrsic » Sun Jul 14, 2013 3:03 pm

Hello people,

I need help :help: with simple php but I'm new in this and I'm not sure how to do it.

So, story goes like this:
I need to make a web application in PHP which will depending on variable in URL, show users from MySQL database with first letter of surname matching letter in variable.
For example:
http://localhost/project/?letter=A
Shows users with first surname letter A (Armstrong, Anderson...).
If variable letter is not defined:
http://localhost/project/
Shows all users from database

MySQL database:
Table Users (name, surname, OIB, avatar_id)
Table Avatars (id, url)
Connect with relation users.avatar.id with avatars.id

Thank you and kind regards,
Sasa Mrsic

Return to “PHP coding => General”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest