Skip to Content Skip to Menu

Getting Database information

  • Strega
  • Strega
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
12 years 11 months ago #182548 by Strega
Getting Database information was created by Strega
Joomla 1.5
Search Engine Friendly URLs (YES)
Use Apache mod_rewrite (YES)
Add suffix to URLs (NO)

Can anyone point me in the right direction in terms of getting information out of the database while on a specific page?

Basically, on my site ( www.WhereAmIRiding.com ) when you click on your own profile page, it reads: whereamiriding.com/my-profile

Well, I'm using some PHP scripts for creating Google Maps and I don't have an accurate way of getting the username of the page that I'm on or any other details. If I was able to pull the username from the DB I could get any other information from the DB as well.

When the link is like this: www.whereamiriding.com/my-profile/userprofile/strega

I'm obviously able to pull the username from the URL but that's a shady hack.

Anyone have any suggestions here?

Based on the page I'm viewing, I'd like to be able to get that username out of the DB (then I can search other things)

How would I go about this using PHP to pull that info?

I tried looking at all the global data but it doesn't give any user information while on that specific page.


Thanks!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum