Results 1 to 4 of 4

Thread: PHP Syntax Error

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2002
    Location
    New York
    Posts
    74

    Angry PHP Syntax Error

    From the following code I am trying to grab the URL in my mysql database. Whats wrong with my code? It grabs the "logo" but how do I turn that into an iamge so it appears on my page?

    PHP Code:
    <?php
    $sql 
    mysql_query("SELECT * FROM `ALEast` ORDER BY `id` ASC");

    while( 
    $row mysql_fetch_assoc($sql) ) { 
         echo 
    '<tr class="A"> 
        <td>' 
    $row['logo'] . '</td>
        <td>' 
    $row['W'] . '</td>
        <td>' 
    $row['L'] . '</td> 
        <td>' 
    $row['PCT'] . '</td> 
        <td>' 
    $row['GB'] . '</td> 
      </tr>'

    }
    ?>
    Last edited by rgyankees23; Aug 14th, 2008 at 05:50 PM.

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