|
-
Oct 19th, 2012, 01:11 PM
#1
Thread Starter
Lively Member
Get data from specific row in Database
Hey gang,
I'm new to the world of PHP, but learning a lot as I go.
I'm trying to get data from a specific row in a database.
i tried something like this:
PHP Code:
echo $row[20]['busname'];
...but that obviously doesn't work. Any thoughts on how I can do this?
-
Oct 20th, 2012, 08:51 AM
#2
Re: Get data from specific row in Database
Please post the code for fetching part. What are you using, PDO, Mysqli or mysql_ functions ?
If you are having doubt on the keys of the array, try using the print_r()
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|