Pastes:104471  Views:2146474 

Languages:

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

more languages available...


Looking to freelance?

( bids)

( bids)

( bids)

( bids)

( bids)

Hire Freelancers & Find Freelance Jobs Online - Freelancer.com

Ready to launch?

Hire Work

The #1 Resource for Small Business & Entrepreneurs

Hire freelancers for a fraction of the cost!

  • Post your project within seconds

  • Compare prices & select bidders

  • Pay only once satisfied

Looking for work?

Become a freelancer and earn money!

  • Browse jobs matching your skills

  • Apply for work

  • Get hired and earn money

or
Sign up with your email address
Looking to hire?

1. Describe your project

2. Set budget

  1. Budget type
  2. Hours of work required
  3. hours per Week
  4. previous step

3. Log in/Sign up

  1. I am a
  2. previous step
( bids)

Source: GetAFreelancer.com


C++ 3D Engine

 

 

 

 

 

 

Here's the requested code from the pastebin:

Wrap Lines   Use Line Numbers
<?php
 
session_start();
 
if (isset($_GET["cmd"]))
 
  $cmd = $_GET["cmd"];
 
else
 
  die("You should have a 'cmd' parameter in your URL");
 
 $query = $_GET["query"];
 
$con = mysql_connect("localhost","root","geheim");
 
if(!$con)
 
{
 
die('Connection failed because of' .mysql_error());
 
}
 
mysql_select_db("ebay",$con);
 
if($cmd=="GetRecordSet")
 
{
 
$table = 'Auctions';
 
$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 "<h1>Table: {$table}</h1>" . "\n"; 
 
echo "<table border='1' width='100%'><tr>" . "\n"; 
 
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 '</tr>' . "\n"; 
 
 
 
 
 
}
 
 
 
}
 
mysql_free_result($result);
 
mysql_close($con);
 
?>
Syntax Highlighting:  



Copyright 2007 - NoMorePasting.com