Results 1 to 2 of 2

Thread: Get data from specific row in Database

  1. #1
    Member
    Join Date
    Aug 08
    Posts
    60

    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?

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 08
    Location
    Trivandrum, Kerala, India
    Posts
    7,559

    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()
    Code:
    print_r($row);

    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 Athlon X2 5200+, ASUS Motherboard, 2 GB RAM, 400 GB HDD, Nvidia 8600 GT 512MB, 19.5" TFT(Wide), Creative 5.1 Home Theater

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •