SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist achintya's Avatar
    Join Date
    Apr 2005
    Location
    Chandannagar(India)
    Posts
    459
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    not fetching from MySQL

    Hi all,
    I want to know the usage of the following function:
    <php>mysql_fetch_array</php>

  2. #2
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    919
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can find that here:
    http://be.php.net/manual/en/function...etch-array.php

    with examples and all...

  3. #3
    SitePoint Wizard HarryR's Avatar
    Join Date
    Dec 2004
    Location
    London, UK
    Posts
    1,376
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you considered looking on the PHP website in the PHP manual for the usage of that function.

    http://uk2.php.net/manual/en/functio...etch-array.php

    The PHP manual is your friend, and even better, an editor with argument hinting (such as PHPed, ZDE etc.)

  4. #4
    SitePoint Guru ujjwal's Avatar
    Join Date
    Oct 2004
    Location
    kolkata
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by achintya
    Hi all,
    I want to know the usage of the following function:
    <php>mysql_fetch_array</php>
    Atfirst Nice to see here.
    How r your programming is going on in new Company?
    Mysql_fetch_array is fetching records from the data base and store in an array.
    PHP Code:
    $ch="select * from rb_template";
    $result=mysql_query($ch) or
    die(__LINE__.mysql_error());
    ?>
    <form method="post" name="chooseform">
    <?
    while($qd=mysql_fetch_array($result)) {
    ?>
    <p><input name="template" type="radio" value="<? echo $qd['temp_loca']; ?>"><? echo $qd["temp_name"]; ?></p>
    <?
    }
    ?>
    <input type="submit" name="submit" value="Choose">
    </form>
    In this case every data is printing in the pages and that data is coming from database and field is printing.
    -::Ujjwal::-
    Visit My Site


Bookmarks

Posting Permissions

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