Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2005
    Location
    Portugal
    Posts
    12

    Red face Unanswered: hi guys i need a help here

    im going to try to make me understand so you guys can help me thanks

    i have a online business and i need help in coding my final line...

    i need that the index1.php of my webpage to show the right userid from the sql database that when i type this or any other user refid:

    http://ptrandomizer.com/random/index...referid=josfur

    it goes to the database and the right id user is shown on the index.php of my navigator:

    <IFRAME name="navigator" style="position:absolute;left:140px;top:104px;widt h:887px;height:454px;z-index:21" src="index.php" frameborder="1">Your browser does not support inline frames or is currently configured not to display inline frames.</IFRAME>

    if you guys need more info to help me in this post it,

    thanks in advance

    Jose Furtado
    admin
    ptrandomizer.com
    Last edited by josfur; 10-21-05 at 23:42.

  2. #2
    Join Date
    Feb 2004
    Posts
    533
    Quote Originally Posted by josfur
    Jose Furtado
    admin
    ptrandomizer.com
    Jose, your question is too general. It's like asking someone "how do I program my database?"

    Now if you go to your site www.ptrandomizer.com you see the directories and files on your server. You should put an 'index.html' or index.php file in your Public_html folder to prevent display of all the directories.
    ~

    Bill

  3. #3
    Join Date
    Oct 2005
    Location
    Portugal
    Posts
    12
    thanks bill but i manage to short it out

    now i have other question but before i need you or the anyone reading this post to do this open this site http://ptrandomizer.com

    now you will see that members to join have to pay a random member and the admin.

    wath i want is to add another random payment so members get compensated even if they dont promote the page

    im going to attach the codes that i think that need coding so you can see the code and maybe help me out.

    <<<<<<<<<<<<file index.php>>>>>>>>>>>>>>>>

    <?php

    include "indexheader.php";
    include "config.php";
    include "connect.php";

    if ($referid=="") {
    $referid="";
    }

    //select a random member from the database.
    $query = "SELECT * FROM members where status=1 and approved=1 ORDER BY RAND() LIMIT 1";
    $result = mysql_query ($query)
    or die ("Could not select member from database");

    $line = mysql_fetch_array($result);

    $userid = $line["userid"];
    $paypalemail = $line["paypal_email"];
    $stormpayemail = $line["stormpay_email"];

    ?>
    <center>
    <table>
    <tr>
    <td width="500" valign="top" align="center">
    <?


    include "banner.php";
    include "textads.php";

    $query1 = "SELECT * FROM pages WHERE name='Index (Main) Page'";
    $result1 = mysql_query ($query1)
    or die ("Could not select information from database");

    $line1 = mysql_fetch_array($result1);
    $htmlcode = $line1["htmlcode"];

    echo $htmlcode;

    if ($Paypal == "YES") {
    If ($Monthly == "YES") {
    //monthly paypal
    ?>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick-subscriptions">
    <input type="hidden" name="business" value="<? echo $paypalemail; ?>">
    <input type="hidden" name="item_name" value="<? echo $SiteName; ?> Monthly Membership">
    <input type="hidden" name="item_number" value="monthly">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <input type="hidden" name="a3" value="<? echo $MemberJoinPayment; ?>">
    <input type="hidden" name="return" value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="cancel" value="<? echo $Domain; ?>/index1.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="t3" value="M">
    <input type="hidden" name="src" value="1">
    <input type="hidden" name="sra" value="1">
    </form>
    <?
    }
    else {
    ?>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="<? echo $paypalemail; ?>">
    <input type="hidden" name="item_name" value="<? echo $SiteName; ?> Membership">
    <input type="hidden" name="item_number" value="onetime">
    <input type="hidden" name="amount" value="<? echo $MemberJoinPayment; ?>">
    <input type="hidden" name="return" value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="cancel" value="<? echo $Domain; ?>/index1.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    </form>
    <?
    }

    }

    if ($Stormpay == "YES") {
    If ($Monthly == "YES") {
    ?>
    <form method="post" action="https://www.stormpay.com/stormpay/handle_gen.php" target="_blank">
    <input type=hidden name=generic value="1">
    <input type=hidden name=subscription value="YES">
    <input type=hidden name=payee_email value="<? echo $stormpayemail; ?>">
    <input type=hidden name=product_name value="<? echo $SiteName; ?> Monthly Membership">
    <input type=hidden name=recurrent_charge value="<? echo $MemberJoinPayment; ?>">
    <input type=hidden name=duration value="30">
    <input type=hidden name=return_URL value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type=hidden name=cancel_URL value="<? echo $Domain; ?>/index1.php?referid=<? echo $referid; ?>">
    <input type=image src="https://www.stormpay.com/stormpay/images/SubscribeSP1.gif">
    </form>
    <?
    }
    else {
    ?>
    <form method="post" action="https://www.stormpay.com/stormpay/handle_gen.php" target="_blank">
    <input type=hidden name=generic value="1">
    <input type=hidden name=payee_email value="<? echo $stormpayemail; ?>">
    <input type=hidden name=product_name value="<? echo $SiteName; ?> Membership">
    <input type=hidden name=amount value="<? echo $MemberJoinPayment; ?>">
    <input type=hidden name=quantity value="1">
    <input type=hidden name=return_URL value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type=hidden name=cancel_URL value="<? echo $Domain; ?>/index1.php?referid=<? echo $referid; ?>">
    <input type=image src="https://www.stormpay.com/stormpay/images/BuyNowSP1.gif">
    </form>
    <?
    }

    }

    ?>
    </center>
    </td>
    </tr>
    </table>
    <?

    include "indexfooter.php";
    mysql_close($dblink);
    ?>

    <<<<<<<<file join.php>>>>>>>>>>>>

    <?php

    include "header.php";
    include "config.php";
    include "connect.php";

    if ($referid=="") {
    $referid="";
    }
    ?>

    <center>
    <form method="POST" action="joinnow.php"><br>
    Name:<br><input type="text" name="Name" value=""><br>
    Userid:<br><input type="text" name="Userid" value=""><br>
    Password:<br><input type="password" name="Password" value=""><br>
    Verify Password:<br><input type="password" name="Password2" value=""><br>
    Contact Email:<br><input type="text" name="ContactEmail" value=""><br>
    <input type="hidden" name="referid" value="<? echo $referid; ?>">
    Payment Transaction ID:<br>(if you do not give the right transaction id we wont be able to approve you)<br><input type="text" name="transactionid" value=""><br>
    <? if ($Paypal == "YES") { ?>
    Paypal Email:<br><input type="text" name="PaypalEmail" value=""><br>
    <? } ?>
    <? if ($Stormpay == "YES") { ?>
    Stormpay Email:<br><input type="text" name="StormpayEmail" value=""><br>
    <? } ?>
    <? if ($Vupay == "YES") { ?>
    Vupay Email:<br><input type="text" name="VupayEmail" value=""><br>
    <? } ?>
    <br><input type="submit" value="Join Now">
    </form>
    </center>


    <?

    include "footer.php";
    mysql_close($dblink);
    ?>

    Continue Next Post

  4. #4
    Join Date
    Oct 2005
    Location
    Portugal
    Posts
    12
    <<<<<<<<<<<<<<<<<<file join_now.php>>>>>>>>>>>>>>>>>

    <?php

    include "header.php";
    include "config.php";
    include "connect.php";

    $Userid = $_POST['Userid'];
    $Password = $_POST['Password'];
    $Password2 = $_POST['Password2'];
    $Name = $_POST['Name'];
    $ContactEmail = $_POST['ContactEmail'];
    $PaypalEmail = $_POST['PaypalEmail'];
    $StormpayEmail = $_POST['StormpayEmail'];
    $VupayEmail = $_POST['VupayEmail'];
    $transactionid = $_POST['transactionid'];
    $referid = $_POST['referid'];

    // errorchecking first:

    $query = "select * from members where userid='".$Userid."'";

    $result = mysql_query ($query)
    or die ("Query failed");

    $numrows = mysql_num_rows($result);

    if ($numrows>0) {
    echo "Error! Userid already exists.";
    ?>
    <center>
    <form method="POST" action="join.php">
    <input type="submit" value="Go Back">
    </form>
    </center>
    <?
    exit;
    }

    if (empty($Password)) {
    echo "Error! Password field is empty.";
    ?>
    <center>
    <form method="POST" action="join.php">
    <input type="submit" value="Go Back">
    </form>
    </center>
    <?
    exit;
    }

    if (empty($Userid)) {
    echo "Error! Userid field is empty.";
    ?>
    <center>
    <form method="POST" action="join.php">
    <input type="submit" value="Go Back">
    </form>
    </center>
    <?
    exit;
    }

    if (empty($Name)) {
    echo "Error! Name field is empty.";
    ?>
    <center>
    <form method="POST" action="join.php">
    <input type="submit" value="Go Back">
    </form>
    </center>
    <?
    exit;
    }

    if (empty($transactionid)) {
    echo "Error! Payment Transaction field is empty.";
    ?>
    <center>
    <form method="POST" action="join.php">
    <input type="submit" value="Go Back">
    </form>
    </center>
    <?
    exit;
    }

    if ($Password != $Password2 ) {
    echo "Error! Passwords do not match.";
    ?>
    <center>
    <form method="POST" action="join.php">
    <input type="submit" value="Go Back">
    </form>
    </center>
    <?
    exit;
    }

    $query = "INSERT INTO members ";
    $query .= "(userid,pword,name,contact_email,paypal_email,sto rmpay_email,vupay_email,status,weight,approved,ref erid,transactionid) ";
    $query .= "VALUES ";
    $query .= "('$Userid','$Password','$Name','$ContactEmail','$ PaypalEmail','$StormpayEmail','$VupayEmail',1,1,0, '$referid','$transactionid')";

    $result = mysql_query ($query)
    or die ("Query failed");

    // send the user an email to inform them about having joined.

    $message = "Dear ".$Name.",\n\nThank you for signing up to ". $SiteName .".\nYour account details are below:\n\n"
    ."Userid: ".$Userid."\nPassword: ".$Password."\n\n"
    ."Your unique referral url is: ".$Domain."/index.php?referid=".$Userid ."\n\n"
    ."You can log into our exclusive members area here as soon as your account has been approved:\n"
    .$Domain."/login.php\n\n"
    ."For every person who joins under your referral url we will add one weight to your account."
    ." You will earn this immediately, even though your account is still pending. All credits will automatically be added upon approval.\n\n"
    ."To get more weight faster, you may also buy more weight. This can be done from the members area.\n\n"
    ."Thank you once again, and we wish you luck with your profit making!\n\n\n"
    .$SiteName." Admin\n"
    ."".$AdminEmail."\n\n\n\n";

    $headers .= "From: $SiteName<$AdminEmail>\n";
    $headers .= "Reply-To: <$AdminEmail>\n";
    $headers .= "Bcc: <$AdminEmail>\n";
    $headers .= "X-Sender: <$AdminEmail>\n";
    $headers .= "X-Mailer: PHP4\n";
    $headers .= "X-Priority: 3\n";
    $headers .= "Return-Path: <$AdminEmail>\n";

    @mail($ContactEmail, "Welcome to ". $SiteName, wordwrap(stripslashes($message)),$headers);

    ?>

    <b>Signup Successfull!</b>
    Your account will be activated upon approval!

    <?
    include "footer.php";
    mysql_close($dblink);
    ?>

    <<<<<<<<<<<<<<<file payadmin.php>>>>>>>>>>>>>>>>>>>>>>>>

    <?php

    include "header.php";
    include "config.php";
    include "connect.php";

    if ($referid=="") {
    $referid="";
    }

    ?>
    <center>
    <table>
    <tr>
    <td width="500" valign="top" align="center">
    <?
    ?>
    <center><p>Thank you for paying one of our members.</p>
    To complete your signup with <? echo $Sitename; ?> please pay admin next. Note, if you do not conitinue with the payment, your signup will not be registered.
    <center>
    <?
    if ($Paypal == "YES") {
    If ($Monthly == "YES") {
    //monthly paypal
    ?>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick-subscriptions">
    <input type="hidden" name="business" value="<? echo $AdminPaypal; ?>">
    <input type="hidden" name="item_name" value="<? echo $SiteName; ?> Monthly Membership - Admin">
    <input type="hidden" name="item_number" value="monthly">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <input type="hidden" name="a3" value="<? echo $AdminJoinPayment; ?>">
    <input type="hidden" name="return" value="<? echo $Domain; ?>/join.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="cancel" value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="t3" value="M">
    <input type="hidden" name="src" value="1">
    <input type="hidden" name="sra" value="1">
    </form>
    <?
    }
    else {
    ?>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="<? echo $AdminPaypal; ?>">
    <input type="hidden" name="item_name" value="<? echo $SiteName; ?> Membership - Admin">
    <input type="hidden" name="item_number" value="onetime">
    <input type="hidden" name="amount" value="<? echo $AdminJoinPayment; ?>">
    <input type="hidden" name="return" value="<? echo $Domain; ?>/join.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="cancel" value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but01.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    </form>
    <?
    }

    }

    if ($Stormpay == "YES") {
    If ($Monthly == "YES") {
    ?>
    <form method="post" action="https://www.stormpay.com/stormpay/handle_gen.php" target="_blank">
    <input type=hidden name=generic value="1">
    <input type=hidden name=subscription value="YES">
    <input type=hidden name=payee_email value="<? echo $AdminStormpay; ?>">
    <input type=hidden name=product_name value="<? echo $SiteName; ?> Monthly Membership - Admin">
    <input type=hidden name=recurrent_charge value="<? echo $AdminJoinPayment; ?>">
    <input type=hidden name=duration value="30">
    <input type=hidden name=return_URL value="<? echo $Domain; ?>/join.php?referid=<? echo $referid; ?>">
    <input type=hidden name=cancel_URL value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type=image src="https://www.stormpay.com/stormpay/images/SubscribeSP1.gif">
    </form>
    <?
    }
    else {
    ?>
    <form method="post" action="https://www.stormpay.com/stormpay/handle_gen.php" target="_blank">
    <input type=hidden name=generic value="1">
    <input type=hidden name=payee_email value="<? echo $AdminStormpay; ?>">
    <input type=hidden name=product_name value="<? echo $SiteName; ?> Membership - Admin">
    <input type=hidden name=amount value="<? echo $AdminJoinPayment; ?>">
    <input type=hidden name=quantity value="1">
    <input type=hidden name=return_URL value="<? echo $Domain; ?>/join.php?referid=<? echo $referid; ?>">
    <input type=hidden name=cancel_URL value="<? echo $Domain; ?>/payadmin.php?referid=<? echo $referid; ?>">
    <input type=image src="https://www.stormpay.com/stormpay/images/BuyNowSP1.gif">
    </form>
    <?
    }

    }

    ?>
    </center>
    </td>
    </tr>
    </table>
    <?

    include "footer.php";
    mysql_close($dblink);
    ?>

    maybe i have to add something to the SQL server if so tell me and where to put the code to make the other random payment

    thanks in advance

    Jose Furtado

    admin PTrandomizer.com

  5. #5
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    Oh how wonderfull, another variant on a pyramid scam

  6. #6
    Join Date
    Oct 2005
    Location
    Portugal
    Posts
    12

    Angry

    Quote Originally Posted by healdem
    Oh how wonderfull, another variant on a pyramid scam
    i am no scamer, thats not fair to say you dont know me. im a honest person who tries to give is members the most secure way to earn online thats why i need the new random code to allow members that dont have high hit rate to earn money and this is not a piramide its a randomizer.

  7. #7
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    yeah, right.
    looks acts like a rat, like a rat, smells like a rat, by golly it could just be a rat.

  8. #8
    Join Date
    Oct 2005
    Location
    Portugal
    Posts
    12
    Quote Originally Posted by healdem
    yeah, right.
    looks acts like a rat, like a rat, smells like a rat, by golly it could just be a rat.
    dont you have nothing better to do then just replying with flaming words?
    if you dont want to help its ok but dont call me names and let this POST CLEAR of your crap, LEAVE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •