The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Display field names
PostPosted: Mon May 07, 2012 5:19 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 05, 2012 8:40 pm
Posts: 12
Hi,
I have a requirement where the user passes a query and I have to show the field names and their corresponding data. I can achieve the same in php, but I am unable to find the equivalent in Joomla.

Could any of you please show the code snippet that can achieve the functionality. Example is given below.

query is : select * from jos_users
output will be :
id
name
username
email... etc.

Also a note is that it will not be a simple table but a query but a join of few tables.

Hope I am clear on this.

Abbas


Top
 Profile  
 
 Post subject: Re: Display field names
PostPosted: Mon May 07, 2012 1:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 05, 2012 8:40 pm
Posts: 12
Gurus,
Any help please....

Abbas


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group