#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    14
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <table border="0" cellpadding="3" cellspacing="0" bgcolor="#e5e5e5">
    <tr>
    <font face="verdana" size="1"><b><td align="left">Merchant</td>
    <td align="left">Product</td>
    <td align="left">Description</td>
    <td align="left">Price</td></b>
    </tr>

    <?php
    $result1 = mysql_query("SELECT Merchant,URL,Product, Description,Price FROM snowboards");
    while(($row = mysql_fetch_object($result1))) {
    $url = urlencode("echo(%s)");
    printf("<tr>
    <td align="left">%s</td>
    <td align="left"><A onClick="parent.topFrame.location.href='top.php3?url= ($url)'" HREF="/Outward/redirect.php3?url= print($url)">%s</a></td>
    <td align="left">%s</td>
    <td align="left">%s</td>
    </tr>n" ,
    $row->URL, $row->Merchant, $row->Product, $row->Description, $row->Price);
    }
    ?>
    [/code]

    With the above code I get the following error:
    Warning: printf(): too few arguments in /home/httpd/html/digitalbait.com/Winter/Snowboarding/Boards/index.php3 on line 63

    line 63 refers to the line with the $row->col_name syntax.

    It doesnt seem to me that there are too few arguments...

    </font>

    </table>
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Chicago, USA
    Posts
    73
    Rep Power
    14
    Please ignore this stupid post...I got it fixed

Similar Threads

  1. Codepupil
    By Adachic in forum C Programming
    Replies: 3
    Last Post: February 6th, 2004, 06:50 PM
  2. syntax error : identifer 'Hole'
    By bootrecker in forum C Programming
    Replies: 2
    Last Post: February 2nd, 2004, 08:08 AM
  3. Replies: 4
    Last Post: January 28th, 2004, 08:29 AM
  4. mysql: getting error description from error code
    By laker in forum PHP Development
    Replies: 1
    Last Post: January 21st, 2004, 06:03 AM
  5. I don't know what this error message means
    By lcham02 in forum Java Help
    Replies: 2
    Last Post: January 13th, 2004, 11:57 AM

IMN logo majestic logo threadwatch logo seochat tools logo