Jump to content

xwishmasterx

Members
  • Posts

    186
  • Joined

  • Last visited

Posts posted by xwishmasterx

  1. Hello

     

    (Please have in mind that I'm a complete noob:-))

     

    I need to display a simple multiplication, where a "row" count is a part of it:

     

    I have this piece that will show the number of rows:

     

    <? 
    $rs1=mysql_query("select * from users where ref_by='$username'");
    echo mysql_num_rows($rs1);?>
    <?

     

    How can I multply this result with eg. 4?

     

    <? 
    $rs1=mysql_query("select * from users where ref_by='$username'");
    echo mysql_num_rows($rs1);?> * 4 = ??????
       <?

     

     

    Hope you get the idea :-)

     

     

     

     

     

     

     

  2. Hello

     

    I am triyng to make a really simpel calculating. All I need is multiplitaion. I found this on the net:

     

    <?php
    /* tested under PHP 5.2.6-1 with Suhosin-Patch 0.9.6.2 (cli) on both i386 and amd64, Debian lenny/sid */
    $a = 2863311530;
    $b = 256;
    $c = $a % $b;
    echo "$c <br />\n";
    echo (2863311530 % 256)." <br />\n"; /* directly with no variables, just to be sure */
    ?>

     

    But this doesn't work. The result on my page is:

     

    /n"; /* directly with no variables, just to be sure */ ?>

     

    Not really what I was going for..:-)

     

     

    Anybody knows how to create a simple x*y "script"?

     

    Regards,

    Casper

  3. Hello

     

    I have a script, that is designed for a "hyip", but I am using it for a "general" members site.

     

    I do however run an affiliate program on it and need to make a slight change:

     

    From the admin area, I can choose to pay a solid commision to members for refering new members, however this only counts when refered members have made a deposit. Since I am not running a hyip, members cannot (and are not supposed too) make deposits.

     

    I would like it to count also, when a member has not made a deposit.

     

    Anyone up for the task?

     

    We can discuss payment, when you have a better idea on how much work is required. (seen the script)

     

    Regards,

    Casper

  4. Hello

     

    I have a script, that is designed for a "hyip", but I am using it for a "general" members site.

     

    I do however run an affiliate program on it and need to make a slight change:

     

    From the admin area, I can choose to pay a solid commision to members for refering new members, however this only counts when refered members have made a deposit. Since I am not running a hyip, members cannot (and are not supposed too) make deposits.

     

    I would like it to count also, when a member has not made a deposit.

     

    Anyone up for the task?

     

    If it is to much trouble, I will move ask in the "freelance" section, but It seems to simple

    to call it a "job"

     

    Regards,

    Casper

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.