Search found 24 matches
- 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...
- Tue Jul 10, 2007 2:53 pm
- Forum: PHP - Code
- Topic: PHP link
- Replies: 19
- Views: 1465
- Tue Jul 10, 2007 2:48 pm
- Forum: PHP - Code
- Topic: PHP link
- Replies: 19
- Views: 1465
- 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 ...
- Tue Jul 10, 2007 2:38 pm
- Forum: PHP - Code
- Topic: PHP link
- Replies: 19
- Views: 1465
I am not sure. I used this code: http://php.about.com/od/finishedphp1/ss ... n_code.htm
- Tue Jul 10, 2007 2:35 pm
- Forum: PHP - Code
- Topic: PHP link
- Replies: 19
- Views: 1465
- Tue Jul 10, 2007 2:32 pm
- Forum: PHP - Code
- Topic: PHP link
- Replies: 19
- Views: 1465
- Tue Jul 10, 2007 2:11 pm
- Forum: PHP - Code
- Topic: PHP link
- Replies: 19
- Views: 1465
- 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...