Pastes:104617  Views:2168472 

Languages:

   ASP
   C#
   C++
   HTML
   Java
   PHP
   VB.NET
   Visual Basic 6

more languages available...


Looking to freelance?


Warning: file_get_contents(http://www.getafreelancer.com/affiliates/itsdan/6f.txt) [function.file-get-contents]: failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in /home/nmp/public_html/support/googlereferrals.php on line 21
( bids)

Source: GetAFreelancer.com


VB 3D Engine

 

 

 

 

 

 

Here's the requested code from the pastebin:

Wrap Lines   Use Line Numbers
<html><head><title>Ebay Auctions</title>
<link rel="stylesheet" href="test.css" type="text/css" />
</head>
<script type="text/javascript" src="ajaxlib.js"></script>
<body>
<?php
$db_host = 'localhost';
$db_user = 'root';
$db_pwd = 'geheim';
 
$database = 'ebay';
$table = 'Auctions';
 
if (!mysql_connect($db_host, $db_user, $db_pwd))
    die("Can't connect to database");
 
if (!mysql_select_db($database))
    die("Can't select database");
 
// sending query
$result = mysql_query("SELECT ARTICLE_NO, USERNAME, ACCESSSTARTS, ARTICLE_NAME FROM {$table}");
if (!$result) {
    die("Query to show fields from table failed");
}
 
$fields_num = mysql_num_fields($result);
echo '<div id="Layer0">';
echo '<div id="Layer1">';
echo "  <li>Link 1</li>
     <li>Link 2</li>
    <li>Link 3</li> ";
echo '</div>' . "\n"; 
echo '<div id="Layer2">Content goes here</div>' . "\n"; 
echo '<div id="Layer3">' . "\n"; 
echo "<h1>Table: {$table}</h1>" . "\n"; 
echo "<table border='1'><tr>" . "\n"; 
// printing table headers
 
 
 
    echo "<td width='33%'>Seller ID</td>" . "\n"; 
echo "<td width='33%'>Start Date</td>" . "\n"; 
echo "<td width='33%'>Description</td>" . "\n"; 
 
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_assoc($result))
{
    $pk = $row['ARTICLE_NO'];
echo '<tr>' . "\n"; 
 
echo '<td><a href="#" onclick="GetAuctionData(\''.$pk.'\')">' . $row['USERNAME'] . '</a></td>' . "\n"; 
echo '<td><a href="#" onclick="GetAuctionData(\''.$pk.'\')">' . $row['ACCESSSTARTS'] . '</a></td>' . "\n"; 
echo '<td><a href="#" onclick="GetAuctionData(\''.$pk.'\')">' . $row['ARTICLE_NAME'] . '</a></td>' . "\n"; 
 
 
}
echo "</div>" . "\n"; 
echo "</div>" . "\n"; 
 
 
 
mysql_free_result($result);
?>
</body></html>
Syntax Highlighting:  



Copyright 2007 - NoMorePasting.com