Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 78481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:59:39+00:00 2026-05-10T20:59:39+00:00

I have this code <?php session_start(); if (isset($_GET[cmd])) $cmd = $_GET[cmd]; else die(You should

  • 0

I have this code

<?php session_start(); if (isset($_GET['cmd']))   $cmd = $_GET['cmd']; else   die('You should have a 'cmd' parameter in your URL');  $pk = $_GET['pk']; $con = mysql_connect('localhost','root','geheim'); if(!$con) { die('Connection failed because of' .mysql_error()); } mysql_select_db('ebay',$con); if($cmd=='GetAuctionData') { echo '<table border='1' width='100%'> <tr> <th>Username</th> <th>Start Date</th> <th>Description</th> </tr>'; $sql='SELECT * FROM Auctions WHERE ARTICLE_NO ='$pk''; $result = mysql_query($sql); while ($row = mysql_fetch_array($result)) { echo '<tr> <td>'.$row['USERNAME'].'</td> <td>'.$row['ARTICLE_NO'].'</td> <td>'.$row['ARTICLE_NAME'].'</td> <td>'.$row['SUBTITLE'].'</td> <td>'.$row['CURRENT_BID'].'</td> <td>'.$row['START_PRICE'].'</td> <td>'.$row['BID_COUNT'].'</td> <td>'.$row['QUANT_TOTAL'].'</td> <td>'.$row['QUANT_SOLD'].'</td> <td>'.$row['ACCESSSTARTS'].'</td> <td>'.$row['ACCESSENDS'].'</td> <td>'.$row['ACCESSORIGIN_END'].'</td> <td>'.$row['USERNAME'].'</td> <td>'.$row['BEST_BIDDER_ID'].'</td> <td>'.$row['FINISHED'].'</td> <td>'.$row['WATCH'].'</td> <td>'.$row['BUYITNOW_PRICE'].'</td> <td>'.$row['PIC_URL'].'</td> <td>'.$row['PRIVATE_AUCTION'].'</td> <td>'.$row['AUCTION_TYPE'].'</td> <td>'.$row['ACCESSINSERT_DATE'].'</td> <td>'.$row['ACCESSUPDATE_DATE'].'</td> <td>'.$row['CAT_1_ID'].'</td> <td>'.$row['CAT_2_ID'].'</td> <td>'.$row['ARTICLE_DESC'].'</td> <td>'.$row['COUNTRYCODE'].'</td> <td>'.$row['LOCATION'].'</td> <td>'.$row['CONDITIONS'].'</td> <td>'.$row['REVISED'].'</td> <td>'.$row['PAYPAL_ACCEPT'].'</td> <td>'.$row['PRE_TERMINATED'].'</td> <td>'.$row['SHIPPING_TO'].'</td> <td>'.$row['FEE_INSERTION'].'</td> <td>'.$row['FEE_FINAL'].'</td> <td>'.$row['FEE_LISTING'].'</td> <td>'.$row['PIC_XXL'].'</td> <td>'.$row['PIC_DIASHOW'].'</td> <td>'.$row['PIC_COUNT'].'</td> <td>'.$row['ITEM_SITE_ID'].'</td> <td>'.$row['STARTS'].'</td> <td>'.$row['ENDS'].'</td> <td>'.$row['ORIGIN_END'].'</td> </tr> <tr><td></td></tr>';  } echo '</table>'; echo '<img src='.$row['PIC_URL'].'>'; } mysql_close($con); ?> 

Here is the generated html:

<table border='1' width='100%'> <tr> <th>Username</th> <th>Start Date</th> <th>Description</th> </tr><tr> <td>fashionticker1</td> <td>220288560247</td> <td>Ed Hardy Herren Shirt Rock & Roll Weiss XXL Neu & OVP</td> <td></td> <td>0.00</td> <td>49.00</td> <td>0</td> <td>1</td> <td>0</td> <td>1.10.2008 16:22:09</td> <td>6.10.2008 16:22:09</td> <td>6.10.2008 16:22:09</td> <td>fashionticker1</td> <td>0</td> <td>1</td> <td>0</td> <td>59.00</td> <td>http://storage.supremeauction.com/flash/ebay2/10/49/76/10497654/13895964e.jpg</td> <td>0</td> <td>1</td> <td>6.10.2008 16:21:47</td> <td>6.10.2008 16:28:31</td> <td>32315</td> <td>0</td> <td><!-- +++++++++++++++++++++++++ Bitte ändern Sie im eigenen Interesse nichts an diesem Code! ++++++++++++++++++++++++ --> <!-- +++++++++++++++++++++++++ Das kann massive Fehldarstellungen ihrer Auktion zur Folge haben! +++++++++++++++++++ --> <!-- +++++++++++++++++++++++++ ++++++++++++++++++++++++++ Ihr Supreme Team +++++++++++++++++++++++++++++++++++++++++ --> </td> <td> <br> <br> <style ty</td> <td>float: right; </td> <td>margin: 0px; </td> <td>0</td> <td>0</td> <td>0</td> <td>padding:5px;  </td> <td>0.00</td> <td>0.00</td> <td>0.00</td> <td>0</td> <td>0</td> <td>font-size: 12px; </td> <td>color: #333333; } #h</td> <td>0000-00-00 00:00:00</td> <td>0000-00-00 00:00:00</td> <td>0000-00-00 00:00:00</td> </tr> <tr><td></td></tr></table><img src=> 

Whatever I do, I can not get an image to display, and when PIC_URL is empty, it only displays a placeholder image above the table, and I want it below.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:59:39+00:00Added an answer on May 10, 2026 at 8:59 pm

    It should be:

    echo '<img src=\''.$row['PIC_URL'].'\'>'; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 91k
  • Answers 91k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You do realize you can write the exact same code… May 11, 2026 at 6:21 pm
  • Editorial Team
    Editorial Team added an answer You could hide a column using the td/th index: $('#tableId… May 11, 2026 at 6:21 pm
  • Editorial Team
    Editorial Team added an answer Ctrl+R, Ctrl+W or Edit –> Advanced –> View White Space May 11, 2026 at 6:21 pm

Related Questions

I have this php code, with which I am trying to generate a popup
For some reason the login to my site has to be done two times
I'm trying to do a simple test php script for sessions. Basically it increments
I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.