Advertisement
Guest User

Untitled

a guest
Oct 17th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Ok, first thing:
  2. I'm using drupal6
  3.  
  4. When a user logins I want to load a page that shows some user stats.
  5. The stats are taken from the users row.
  6.  
  7. Now in the php script will i still need to add:
  8. mysql_connect('ip-address','username','password');
  9. where username is the current user logged in?
  10.  
  11. Or can i just fetch the data, since the user has already logged in?
  12. If i cant do that, How do i get the php script to recognise the current logged in user?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement