Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Million Dollar Script
Old 10-24-2005, 09:15 AM Million Dollar Script
Junior Talker

Posts: 4
Trades: 0
hello everyone iom new here Well i need a little help if anyone know about this script

Look at my site: http://milliondollarfortune.com if you buy pixels they will automaticly calculate the cost.. As right now its configured as 1 block for $100 i would like to know how can i change it to 1 block $1 .... according to the seller i need to change it at the buy.php file but up till now he never reply which line is it gonna be i dont know where the heck are they now...
here the script ..

PHP Code:
<?php include  "header.php"?> 
<?php
$x
=substr( [PHP ]%4$s[/PHP POST['x'],0,-1);
$y=substr( [PHP ]%4$s[/PHP POST['y'],0,-1);
if(
$x==""$x=0;
if(
$y==""$y=0;
?> 
<style>
.smallfnt { 
font-family: Verdana;
font-size: 11px;
color: #444444;
}
 .whitefnt 
{
 
font-family: Verdana;
 
font-size: 11px;
 
font-weight: bold;
 
color: #FFFFFF;
 
}
 
input
 
{
 
height: 20;
 
font-family: Verdana;
 
font-size: 11px;
 
color: #333333;
 
}
 
</style>
 
<SCRIPT LANGUAGE="JavaScript">
 
 
 
<!-- The JavaScript Source!!  -->
 
 
<!-- Begin
 
function emailCheck (emailStr) {
 
 
 
/* The following variable tells the rest of the function whether or not
 
to verify that the address ends in a two-letter country or well-known
 
TLD.  1 means check it, 0 means don't. */
 
 
 
var checkTLD=1;
 
 
 
/* The following is the list of known TLDs that an e-mail address must end with. */
 
 
 
var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
 
 
 
/* The following pattern is used to check if the entered e-mail address
 
fits the user@domain format.  It also is used to separate the username
 
from the domain. */
 
 
 
var emailPat=/^(.+)@(.+)$/;
 
 
 
/* The following string represents the pattern for matching all special
 
characters.  We don't want to allow special characters in the address. 
 
These characters include ( ) < > @ , ; : \ " . [ ] */
 
 
 
var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
 
 
 
/* The following string represents the range of characters allowed in a 
 
username or domainname.  It really states which chars aren't allowed.*/
 
 
 
var validChars="\[^\\s" + specialChars + "\]";
 
 
 
/* The following pattern applies if the "user" is a quoted string (in
 
which case, there are no rules about which characters are allowed
 
and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
 
is a legal e-mail address. */
 
 
 
var quotedUser="(\"[^\"]*\")";
 
 
 
/* The following pattern applies for domains that are IP addresses,
 
rather than symbolic names.  E.g. joe@[123.124.233.4] is a legal
 
e-mail address. NOTE: The square brackets are required. */
 
 
 
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
 
 
 
/* The following string represents an atom (basically a series of non-special characters.) */
 
 
 
var atom=validChars + '+';
 
 
 
/* The following string represents one word in the typical username.
 
For example, in [email]john.doe@somewhere.com[/email], john and doe are words.
 
Basically, a word is either an atom or quoted string. */
 
 
 
var word="(" + atom + "|" + quotedUser + ")";
 
 
 
// The following pattern describes the structure of the user
 
 
 
var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
 
 
 
/* The following pattern describes the structure of a normal symbolic
 
domain, as opposed to ipDomainPat, shown above. */
 
 
 
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
 
 
 
/* Finally, let's start trying to figure out if the supplied address is valid. */
 
 
 
/* Begin with the coarse pattern to simply break up user@domain into
 
different pieces that are easy to analyze. */
 
 
 
var matchArray=emailStr.match(emailPat);
 
 
 
if (matchArray==null) {
 
 
 
/* Too many/few @'s or something; basically, this address doesn't
 
even fit the general mould of a valid e-mail address. */
 
 
 
alert("Email address seems incorrect (check @ and .'s)");
 
return false;
 
}
 
var user=matchArray[1];
 
var domain=matchArray[2];
 
 
 
// Start by checking that only basic ASCII characters are in the strings (0-127).
 
 
 
for (i=0; i<user.length; i++) {
 
if (user.charCodeAt(i)>127) {
 
alert("Ths username contains invalid characters.");
 
return false;
 
   }
 
}
 
for (i=0; i<domain.length; i++) {
 
if (domain.charCodeAt(i)>127) {
 
alert("Ths domain name contains invalid characters.");
 
return false;
 
   }
 
}
 
 
 
// See if "user" is valid 
 
 
 
if (user.match(userPat)==null) {
 
 
 
// user is not valid
 
 
 
alert("The username doesn't seem to be valid.");
 
return false;
 
}
 
 
 
/* if the e-mail address is at an IP address (as opposed to a symbolic
 
host name) make sure the IP address is valid. */
 
 
 
var IPArray=domain.match(ipDomainPat);
 
if (IPArray!=null) {
 
 
 
// this is an IP address
 
 
 
for (var i=1;i<=4;i++) {
 
if (IPArray[i]>255) {
 
alert("Destination IP address is invalid!");
 
return false;
 
   }
 
}
 
return true;
 
}
 
 
 
// Domain is symbolic name.  Check if it's valid.
 
 
 
var atomPat=new RegExp("^" + atom + "$");
 
var domArr=domain.split(".");
 
var len=domArr.length;
 
for (i=0;i<len;i++) {
 
if (domArr[i].search(atomPat)==-1) {
 
alert("The domain name does not seem to be valid.");
 
return false;
 
   }
 
}
 
 
 
/* domain name seems valid, but now make sure that it ends in a
 
known top-level domain (like com, edu, gov) or a two-letter word,
 
representing country (uk, nl), and that there's a hostname preceding 
 
the domain or country. */
 
 
 
if (checkTLD && domArr[domArr.length-1].length!=2 && 
 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
 
alert("The address must end in a well-known domain or two letter " + "country.");
 
return false;
 
}
 
 
 
// Make sure there's a host name preceding the domain.
 
 
 
if (len<2) {
 
alert("This address is missing a hostname!");
 
return false;
 
}
 
 
 
// If we've gotten this far, everything's valid!
 
return true;
 
}
 
 
 
//  End -->
 
function chk_url(obj)
 
{
 
url=obj.value;
 
if(url.substr(0,7)=='http://' || url.substr(0,7)=='HTTP://' || url.substr(0,8)=='https://' || url.substr(0,8)=='HTTPS://') 
 
 {
 
 obj.style.background="#FFFFFF";
 
        return true;
 
 }
 
else
 
 {
 
 obj.style.background="#FFEEEE";
 
        alert("The given URL is invalid. (HTTP / HTTPS must be included)");
 
        return false;
 
 }
 
 
 
}
</script>
 
 
 
<script>
 
function chk_frm()
 
{
 
 
 
width=document.new_img_frm.width.value;
 
height=document.new_img_frm.height.value;
 
 
 
x2=parseInt(document.new_img_frm.x1.value)+parseInt(width);
 
y2=parseInt(document.new_img_frm.y1.value)+parseInt(height);
 
 
 
if(emailCheck(document.new_img_frm.email.value)==0) return false;
 
if(document.new_img_frm.name.value=="") return false;
 
if(document.new_img_frm.x1.value=="" || isNaN(document.new_img_frm.x1.value)) return false;
 
if(document.new_img_frm.y1.value=="" || isNaN(document.new_img_frm.y1.value)) return false;
 
if(document.new_img_frm.width.value=="" || isNaN(document.new_img_frm.width.value)) return false;
 
if(document.new_img_frm.height.value=="" || isNaN(document.new_img_frm.height.value)) return false;
 
if(document.new_img_frm.url.value=="") return false;
 
if(document.new_img_frm.title.value=="") return false;
 
if(document.new_img_frm.userfile.value=="") return false;
 
if(chk_url(document.new_img_frm.url)==false) return false;
 
 
 
document.getElementById('price').innerHTML="<b>$"+(width*10)*(height*10)+"</b>";
 
document.new_img_frm.amount.value=(width*10)*(height*10);
 
 
 
return true;
 
 
 
}
 
function check_val(obj)
 
{
 
if(obj.value!="" && isNaN(obj.value))
 
{
 
obj.style.background="#FFEEEE";
 
}
 
else
 
{
 
obj.style.background="#FFFFFF";
 
}
 
}
 
function email_validation(obj)
 
{
 
if(emailCheck(document.new_img_frm.email.value)==0) obj.style.background="#FFEEEE"; else obj.style.background="#FFFFFF"; 
 
}
 
 
 
function calc_price()
 
{
 
width=document.new_img_frm.width.value;
 
height=document.new_img_frm.height.value;
 
 
 
x2=parseInt(document.new_img_frm.x1.value)+parseInt(width);
 
y2=parseInt(document.new_img_frm.y1.value)+parseInt(height);
 
 
 
 
 
document.new_img_frm.x2.value=x2;
 
document.new_img_frm.y2.value=y2;
 
 
 
if(width!="" && isNaN(width))
 
{
 
width=0;
 
document.new_img_frm.width.style.background="#FFEEEE";
 
}
 
else
 
{
 
document.new_img_frm.width.style.background="#FFFFFF";
 
}
 
if(height!="" && isNaN(height))
 
{
 
height=0;
 
document.new_img_frm.height.style.background="#FFEEEE";
 
}
 
else
 
{
 
document.new_img_frm.height.style.background="#FFFFFF";
 
}
 
 
 
if(width!=0 && height!=0) 
 
{
 
document.getElementById('price').innerHTML="<b>$"+(width*10)*(height*10)+"</b>";
 
document.new_img_frm.amount.value=(width*10)*(height*10);
 
}
 
else
 
{
 
document.getElementById('price').innerHTML="Not yet calculated";
 
}
 
}
 
</script>
<head><LINK href="images/style.css" type=text/css rel=stylesheet>
<style>
body {
 background:   url(images/pagebgnew.jpg) repeat;
}
 
.white
{
font-family: Verdana;
font-size: 11px;
font-weight: bold;
color: #FFFFFF;
}
 
 
.white_every
{
font-family: Verdana;
font-size: 11px;
color: #FFFFFF;
}
 
a
{
text-decoration: none;
}
 
.black
{
font-family: Verdana;
font-size: 11px;
font-weight: bold;
color: #000000;
}
 
.black_no_bold
{
font-family: Verdana;
font-size: 11px;
color: #000000;
}
 
#grid {
 position: relative; 
 top: 0;
 left: 0;
 width: 1000;
 height: 1000;
 border: 0;
 margin-left: auto; 
 margin-right: auto;
 text-align: center;
 background-image:   url(images/grid.gif);
 background-repeat: repeat;
 }
.g {
 position: absolute;
 border: 0;
 z-index: 3;
 align: center;
}
</style>
<style>
a:hover{color:red}
</style>
</head>
 
 
 
<table width="1000" border=0 align="center" cellpadding=0 cellspacing=0>
  <tr> 
    <td width=100 background="images/grid1.gif" style="border-left: 1px solid #423837;">&nbsp;</td>
    <td width=500 bgcolor=#EFEFEF> <form name="new_img_frm" method="post" action="paypal_confirm.php" enctype="multipart/form-data" onSubmit="if(chk_frm()==0) { alert('Please fill all the fields correctly !'); return false; } else return true;">
        <p> 
          <input type=hidden name=x2>
          <input type=hidden name=y2>
        </p>
        <p>&nbsp;</p>
        <table border=1 cellspacing=0 cellpadding=4 align=center>
          <tr> 
            <td bgcolor=#000077 class=whitefnt align=center>Add new image</td>
          </tr>
          <tr> 
            <td background="images/bg.gif"> <table class=smallfnt cellspacing=6>
                <tr> 
                  <td width=150>Contact Name</td>
                  <td width=200><input type=text name=name></td>
                </tr>
                <tr> 
                  <td>Valid Email address</td>
                  <td><input type=text name=email onChange="email_validation(this)"></td>
                </tr>
                <tr> 
                  <td>x1 Position</td>
                  <td><?php echo $x?> <input type=hidden name=x1 value="<?php echo $x?>"></td>
                </tr>
                <tr> 
                  <td>y1 Position</td>
                  <td><?php echo $y?> <input type=hidden name=y1 value="<?php echo $y?>"></td>
                </tr>
                <tr> 
                  <td>Width</td>
                  <td><input type=text name=width onChange="calc_price()">
                    block(s)</td>
                </tr>
                <tr> 
                  <td>Height</td>
                  <td><input type=text name=height onChange="calc_price()">
                    block(s)</td>
                </tr>
                <tr> 
                  <td>Link to website</td>
                  <td><input type=text name=url onChange="chk_url(this)"></td>
                </tr>
                <tr> 
                  <td>50 Characters for Message Box</td>
                  <td><input type=title name=title></td>
                </tr>
                <tr> 
                  <td>Pixel(s) Image</td>
                  <td><input name="userfile" type="file" id="userfile"></td>
                </tr>
                <tr> 
                  <td height=30>Total Price :</td>
                  <td><input type="hidden" name="amount"> <div id=price></div></td>
                </tr>
                <tr> 
                  <td></td>
                  <td><input type=submit value="Paypal"> <input type=reset value="Reset"></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </form>
      <br> <br> <br> <br> <br> <br> <br> </H2> </td>
    <td width="100" background="images/grid1.gif" style="border-right: 1px solid #423837;">&nbsp;</td>
  </tr>
</table>
<?php include "footer.php"?>

Last edited by 0beron; 10-24-2005 at 06:33 PM..
tytus is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-24-2005, 02:45 PM
Extreme Talker

Posts: 169
Trades: 0
Quote:
if(width!=0 && height!=0)

{

document.getElementById('price').innerHTML="<b>$"+ (width*10)*(height*10)+"</b>";
document.new_img_frm.amount.value=(width*10)*(heig ht*10);
}
Replace 10 with 1 in the above piece of code. So that the price per block will change from $100 to $1.
__________________

Please login or register to view this content. Registration is FREE

TOP 10 WEB HOSTS COMPARED

BEST RESELLER HOSTING
john551 is offline
Reply With Quote
View Public Profile
 
Old 10-24-2005, 03:56 PM
Junior Talker

Posts: 4
Trades: 0
Thank you for your help john well i tried its working when i select 1 block Width and 1 block height it calculate as $1 But when i click the paypal buttons it calculate as $100 ... Any solution ?

Try it @ milliondollarfortune.com
Thanks again

Last edited by tytus; 10-24-2005 at 04:09 PM..
tytus is offline
Reply With Quote
View Public Profile
 
Old 10-24-2005, 03:59 PM
Junior Talker

Posts: 4
Trades: 0
here are the paypal confirm.php which is directed after clicking paypal
PHP Code:
<?php
function check_intersection($x1,$y1,$x2,$y2,$x3,$y3,$x4,$y4)
{
if(
$y1!=$y2)
{
$m=$x3;
$n=$y3;
$o=$x4;
$p=$y4;
$x3=$x1;
$y3=$y1;
$x4=$x2;
$y4=$y2;
$x1=$m;
$y1=$n;
$x2=$o;
$y2=$p;
}

if(
$x1<=$x3 && $x2<=$x3) return (1);
if(
$x1>=$x3 && $x2>=$x3) return (1);
if((
$x1<$x3 && $x2>$x3) && ($y1>=$y3 && $y1>=$y4)) return (1);
if((
$x1<$x3 && $x2>$x3) && ($y1<=$y3 && $y1<=$y4)) return (1);
return (
0);
}
//checking for the free postion
include "common.php";
$sql "select x1,y1,x2,y2,id from area where cnf_check=0 or cnf_check=1";
$link mysql_query($sql,$cn);
$num=mysql_num_rows($link);
$check=1;
if(
$num>0)
{
while(
$data=mysql_fetch_row($link))
{
$x1=$data[0];
$y1=$data[1];
$x2=$data[2];
$y2=$data[3];
$px1=$_POST['x1'];
$py1=$_POST['y1'];
$px2=$_POST['x2'];
$py2=$_POST['y2'];
$amount_to_be_paid=$_POST['amount'];
if(
$x1>=$px1 && $x2<=$px2 && $y1>=$py1 && $y2<=$py2) { $check=-1; break; }
if(
$x1<=$px1 && $x2>=$px2 && $y1<=$py1 && $y2>=$py2) { $check=-2; break; }

//if(!check_intersection($x1,$y1,$x2,$y2,$px1,$py1,$px2,$py2)) { $check=-3; break; }
if(!check_intersection($x1,$y1,$x2,$y2,$px2,$py1,$px2,$py2)) { $check=-4; break; }
if(!
check_intersection($x1,$y1,$x2,$y2,$px1,$py2,$px2,$py2)) { $check=-5; break; }
if(!
check_intersection($x1,$y1,$x2,$y2,$px1,$py1,$px1,$py2)) { $check=-6; break; }

//if(!check_intersection($x2,$y1,$x2,$y2,$px2,$py1,$px2,$py2)) { $check=-7; break; }
if(!check_intersection($x2,$y1,$x2,$y2,$px1,$py2,$px2,$py2)) { $check=-8; break; }
if(!
check_intersection($x2,$y1,$x2,$y2,$px1,$py1,$px1,$py2)) { $check=-9; break; }
//if(!check_intersection($x1,$y2,$x2,$y2,$px1,$py2,$px2,$py1)) { $check=-10; break; }
if(!check_intersection($x1,$y2,$x2,$y2,$px1,$py1,$px1,$py2)) { $check=-11; break; }
//if(!check_intersection($x1,$y1,$x1,$y2,$px1,$py1,$px1,$py2)) { $check=-12; break; }
}
}
?>
<?php
// If Free Position found 
if($check>0)
{
$fileName $_FILES['userfile']['name'];
$tmpName  $_FILES['userfile']['tmp_name'];
$fileSize $_FILES['userfile']['size'];
$fileType $_FILES['userfile']['type'];
$fp fopen($tmpName'r');
$content fread($fpfilesize($tmpName));
$content addslashes($content);
fclose($fp);
if(!
get_magic_quotes_gpc())
{
$fileName addslashes($fileName);
}
$x1=$_POST['x1'];
$y1=$_POST['y1'];
$x2=$_POST['x2'];
$y2=$_POST['y2'];
$url=$_POST['url'];
$title=$_POST['title'];
$name=$_POST['name'];
$email=$_POST['email'];
$amount=$_POST['amount'];

function 
microtime_float()
{
   list(
$usec$sec) = explode(" "microtime());
   return ((int)
$usec + (int)$sec);
}
$time_start microtime_float();
$id $time_start;


$query "INSERT INTO area(id,x1,y1,x2,y2,url,title,name,email,amount,img_name,img_filesize, img_type, img_content,cnf_check) ".
"VALUES ('$id',$x1,$y1,$x2,$y2,'$url','$title', '$name','$email','$amount','$fileName','$fileSize','$fileType','$content',2)";

if(
$link=mysql_query($query,$cn))
{
$msg1 "Inserted!";
setcookie("id","$id");
}
else
{
echo 
"MySql Error";
echo 
mysql_error();
}
}
?><?php include  "header.php"?><head><LINK href="images/style.css" type=text/css rel=stylesheet>

<style>

body {

    background:   url(images/pagebgnew.jpg) repeat;

}



.white

{

font-family: Verdana;

font-size: 11px;

font-weight: bold;

color: #FFFFFF;

}





.white_every

{

font-family: Verdana;

font-size: 11px;

color: #FFFFFF;

}



a

{

text-decoration: none;

}



.black

{

font-family: Verdana;

font-size: 11px;

font-weight: bold;

color: #000000;

}



.black_no_bold

{

font-family: Verdana;

font-size: 11px;

color: #000000;

}



#grid {

    position: relative;    

    top: 0;

    left: 0;

    width: 1000;

    height: 1000;

    border: 0;

    margin-left: auto; 

    margin-right: auto;

    text-align: center;

    background-image:   url(images/grid.gif);

    background-repeat: repeat;

    }

.g {

    position: absolute;

    border: 0;

    z-index: 3;

    align: center;

}

</style>

<style>
a:hover{color:red}
</style>
</head>





<table width="1000" border=0 align="center" cellpadding=5 cellspacing=0>
  <tr> 
    <td width=150 background="images/grid1.gif"></td>
    <td width=600 bgcolor=#CCCCCC> 
      <?php 
$amount
=$_POST['amount'];
$width=$_POST['width'];
$height=$_POST['height'];
$item_num="$width"."&"."$height";
?>
      <?php
if($check<0)
{
echo 
"<br><br><br><center><b><font size=2 face=Verdana>The area you requested is already reserved ! <br><font color=red>Please decrease your requested width and height or select different position.</font></font></b></center><br><br><br>";
exit();
}
?>
      <center>
      </center>
      <br> <br> <br> <center>
        <span class="black"> Please confirm the following orders and proceed for 
        the payment via paypal </span>
      </center>
      <br> <br> <table border=0 cellspacing=0 cellpadding=1 align=center>
        <tr> 
          <td bgcolor=#888888> <table border=0 cellspacing=0 cellpadding=10 align=center bgcolor=#CCCCCC>
              <tr> 
                <td class="black">Block Area to be booked</td>
                <td class="black"><?php echo "$width x $height"?></td>
              </tr>
              <tr> 
                <td class="black">Number of blocks booked</td>
                <td class="black"><?php echo $width*$height?></td>
              </tr>
              <tr> 
                <td class="black">Amount to be paid</td>
                <td class="black">$<?php echo $amount?></td>
              </tr>
              <tr> 
                <td colspan=2><center>
                    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
                      <input type="hidden" name="cmd" value="_xclick">
                      <input type="hidden" name="business" value="accounts@milliondollarfortune.com">
                      <input type="hidden" name="item_name" value="Pixels Payment">
                      <input type="hidden" name="item_number" value="">
                      <input type="hidden" name="amount" value="<?php echo $amount?>">
                      <input type="hidden" name="return" value="http://www.milliondollarfortune.com/paypal_validate.php">
                      <input type="hidden" name="notify_url" value="http://www.milliondollarfortune/ipn.php">
                      <input type="hidden" name="currency_code" value="USD">
                      <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
                    </form>
                  </center></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <br> <br> <br> <br> <br> </H2> </td>
    <td width=150 background="images/grid1.gif"></td>
  </tr>
</table>

<?php include  "footer.php"?>

Last edited by 0beron; 10-24-2005 at 06:25 PM..
tytus is offline
Reply With Quote
View Public Profile
 
Old 10-24-2005, 04:22 PM
Junior Talker

Posts: 4
Trades: 0
ok thanks sorry i did not look correctly on the editing..And now its cool its working ive edited the php thank you John

Ok 1 more thing.. about the Pixels Clicks ... lots of people have been clicking the links at the main page but it still shows 0 click on my pixels clicks page... Where should i edit the error???

here is from my showclicks.php
PHP Code:
<?php include  "header.php"?>

<table width="1000" border=0 align="center" cellpadding=0 cellspacing=0>
  <tr> 
    <td width=150 background="images/grid1.gif" style="border-left: 1px solid #423837;">&nbsp;</td>
    <td width=20 bgcolor=#CCCCCC>&nbsp;</td>
    <td width=600 bgcolor=#CCCCCC> <br><H2>View Image Clicks</H2>
      <HR class=c> <p>Here you can see just how many clicks each image has received:</p>
      <P> 
        <?php



// if id is set then get the file with the id from database



$cn = @mysql_connect('localhost','milliond_million','s8036812g');



$database = @mysql_select_db('milliond_milliond',$cn);



$id    $_GET['id'];



$query "SELECT id, url, title, img_name, img_type, img_filesize, img_content, clicks FROM area";



$result mysql_query($query) or die('Error, query failed');



$arr = array();



echo 
"<table width='100%'><tr><td width='60%'>Title</td><td width='20%'>Image name</td><td width='20%'>Clicks</td></tr>";



while(
$r mysql_fetch_assoc($result)){



echo 
"<tr>";



 echo 
"<td width='60%'><a href=".$r['url']." target=\"_blank\">".$r['title']."</a></td><td width='20%'><a href=showimage.php?s=".$r['id']." target=\"_blank\">".$r['img_name']."</a></td><td width='20%'>".$r['clicks']."</td>";



echo 
"</tr>";



}



echo 
"</table>";



?>
      <br>
      <br>
            <br>
      <br>      <br>
            <br>
      <br>      <br>
      <br>      <br>
      <br>      <br>
      <br>      <br>
      <br>      <br>
      <br><br>      <br>
      <br>      <br>
      <br>      <br>
      <br>      <br>
      <br>
      <HR class=c> <DIV id=grey>Clicks that matters </DIV></td>
    <td width="150" background="images/grid1.gif" style="border-right: 1px solid #423837;">&nbsp;</td>
  </tr>
</table>

<?php include "footer.php"?>

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[COLOR="red"][B]Click.php[/B][/COLOR]

<?php include "common.php"
$q "SELECT * FROM `area` ORDER by id";
$exec mysql_query($q);
while(
$row mysql_fetch_assoc($exec)){
  echo 
$row['id'].$row['url']."<br>";
}
?>

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[COLOR="red"][B]index.php[/B][/COLOR]

<?php include "header.php"?>


<div id="grid">
<form action="buy.php" method="post"><input type="image" src="images/px.gif" width="1000" height="1000"></form>
</div>




<div style="position: absolute; left:0; top: 91; z-index: 1">
<?php
include "common.php";
$sql "select id,url,x1,y1,x2,y2,title from area where cnf_check='1'";
$link mysql_query($sql,$cn);
$num mysql_num_rows($link);
if(
$num>0)
{
while(
$data=mysql_fetch_row($link))
{

$left = ($data[2])*10;
$top = ($data[3])*10;
$width=( ( $data[4] ) - ( $data[2] ) )*10;
$height=( ($data[5]) - ($data[3]) )*10;

echo 
"<a target=\"_new\" href=\"$data[1]\">
<img src=\"showimage.php?id=
$data[0]\" class=\"g\" style=\"LEFT: "
."$left".
"px; TOP:"
."$top".
"px;\" width=\""
."$width".
"px\" height=\""
."$height".
"px\" alt=\"$data[6]\"></a>";

}

}
?>

<?php
$sql 
"select id,url,x1,y1,x2,y2,title from area where cnf_check='0'";
$link mysql_query($sql,$cn);
$num mysql_num_rows($link);
if(
$num>0)
{
while(
$data=mysql_fetch_row($link))
{

$left = ($data[2])*10;
$top = (($data[3])*10);
$width=( ( $data[4] ) - ( $data[2] ) )*10;
$height=( ($data[5]) - ($data[3]) )*10;

echo 
"
<div  style=\"position: absolute; LEFT: "
."$left".
"px; TOP:"
."$top".
"px;\" width=\""
."$width".
"px\" height=\""
."$height".
"px\" >
<table background=\"images/na.gif\" border=0 cellspacing=0 cellpadding=0 width=
$width height=$height><tr><td>
<img src=\"images/px.gif\" class=\"g\" width=\"
$width\" height=\"$height\" alt=\"Already booked, waiting for the payment\">
</td></tr></table>
</div>
"
;

}
}
?>


</div>

<?php include "footer.php"?>

Last edited by 0beron; 10-24-2005 at 06:25 PM..
tytus is offline
Reply With Quote
View Public Profile
 
Old 10-24-2005, 06:24 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
For pity's sake PLEASE use the [php ] bbcode tags when posting such HUGE volumes of code!!!
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 10-29-2005, 07:56 AM
NuWeb.co.uk's Avatar
NuWeb.co.uk is OFFLINE

Posts: 361
Trades: 0
While reading about the million doller website.
A Business student like me starts thinking,.. Tick, Tock (takes a while, it was in morning)

PING! Ok, so you got adsence. You got this Pixel idea. Good, but it only appears on one website.

SO.. you do AdPixel
Where its just like adsence, with the adverts. But it displays on banner like ads on peoples websites


What an idea!
__________________

Please login or register to view this content. Registration is FREE


NuWeb 10101101
NuWeb.co.uk is offline
Reply With Quote
View Public Profile Visit NuWeb.co.uk's homepage!
 
Old 10-30-2005, 01:38 AM
HaRRo's Avatar
SEO Expert

Latest Blog Post:
The Large Hadron Collider
Posts: 522
Location: United Kingdom
Trades: 0
i want this script please pm me it :P
__________________

Please login or register to view this content. Registration is FREE

What are you waiting for? Easy $$$ anyone can make a fortune!
CLICK CLICK CLICK CLICK CLICK CLICK CLICK CLICK CLICK
HaRRo is offline
Reply With Quote
View Public Profile Visit HaRRo's homepage!
 
Reply     « Reply to Million Dollar Script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33336 seconds with 12 queries