Results 1 to 4 of 4

Thread: [RESOLVED] PHP Query string

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Location
    Karachi
    Posts
    551

    Resolved [RESOLVED] PHP Query string


    i have while loop for populating the data from datbase in html table as follwoing code

    PHP Code:

     while($Rs = mysql_fetch_array($result, MYSQL_ASSOC))
        {
    ?>
    <tr bgcolor="biege">
    <td><?php echo $Rs['id'];  ?></td>
    <td><?php echo $Rs['name']; ?></td>
    <td><a href="insert.php?id=" <?php  $Rs['id'] ; ?>  >Delete</a></td>
    <tr>
     <?php    
        
    }
    every thing is fine but the problem reside in the query string line that i m not getting id in <a> in each row at status bar of the browser it just show me http://localhost/insert.php?id=

    i do not know what type of mistake i m doing here !!

    could any one please correct it !!

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP Query string

    You've forgotten the echo.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007
    Location
    Karachi
    Posts
    551

    Re: PHP Query string



    Very thanks a lot !
    my problem has been resolved

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP Query string

    If your problem is resolved you can help us out by going to the Thread Tools menu above the first post and selecting Mark Thread Resolved.

    Cheers.

Posting Permissions

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



Click Here to Expand Forum to Full Width