Search found 24 matches

by mademokid
Wed Jul 11, 2007 10:36 am
Forum: Databases
Topic: Using db query in print
Replies: 3
Views: 679

Using db query in print

I have executed the following: $id = mysql_query('SELECT id FROM ibf_members'); print "http://forum.example.com/index.php?showuser=$id" How can I associate the id with the name of the user that is logged in. The logged in user has a cookie with their username as ['ID_my_site'] The username...
by mademokid
Tue Jul 10, 2007 2:53 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

Would it help if I posted the code for my login and members areas?
by mademokid
Tue Jul 10, 2007 2:48 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

I am using a IPB member table

It has id,name,......

I want a code that will associate the logged in user with the correct id from the table and then use the id as a variable in a link
by mademokid
Tue Jul 10, 2007 2:43 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

I can get the code to work fine. I want to be able to use a variable in a link. The variable comes from a mySQL database and is on the same row as the username of the member. It is the member id and I want to use it to show a members profile page by the member clicking on it. I want only the member ...
by mademokid
Tue Jul 10, 2007 2:38 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

by mademokid
Tue Jul 10, 2007 2:35 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

I only know if I am logged in atm
by mademokid
Tue Jul 10, 2007 2:32 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

Okay, so that solves the fist problem. What about the second?
by mademokid
Tue Jul 10, 2007 2:11 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

Erm....
Not really

I'm pretty novice and use tutorials and such, but I would like to increase my knowlege.

If you could give me an example of how I could use echo to do this I would be greatful.
by mademokid
Tue Jul 10, 2007 12:10 pm
Forum: PHP - Code
Topic: PHP link
Replies: 19
Views: 1465

PHP link

I have two problems. 1. I want to put a variable into a link. Eg. http://www.forum.example.com/index.php?showuser=[b]$id[/b] 2. I know this needs to be in the database forum, but it's related to my 1st issue. I want to query my mySQL database to get the id of the user who is logged in. EG. I am logg...