1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need Help

Discussion in 'PHP' started by snotb4ll, Jul 17, 2009.

  1. #1
    Hello,

    I'm trying to get a site to give me some free advertising.

    Here is the line of code I enter into the address bar...

    http://www.xxxxxxxx.com/members/advertise.php?userid=xxxxx&solostoadd=1&solocount=1

    When I type that in it give me 1 solo however when I click to submit my ad it takes me to a blank page. What am I doing wrong?

    Here is the actual PHP code that I'm trying to work around.



    <?
    }
    while ($line2 = mysql_fetch_array($result2)) {
    $soloadded = $line2["added"];
    if ($soloadded == 0) {
    $solostoadd = 1;
    $solocount = $solocount+1;
    } //end if ($added == 0)
    else {
    $solostatstoshow = 1;
    } // end else
    } //end while ($line2 = mysql_fetch_array($result2))
    if ($solostoadd == 1) {
    ?><br>
    <p><b><font color="red">You have <? echo $solocount; ?> solo ad(s) to add.
    <?
    $query5 = "SELECT * FROM solos where userid='".$_SESSION[uname]."' and added=1 and sent=0";
    $result5 = mysql_query ($query5)
    or die ("Query failed");
    $numrows5 = @ mysql_num_rows($result5);
    if ($numrows5 == 0) {
    ?>
     
    snotb4ll, Jul 17, 2009 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #2
    It is hard to figure out when you don't post the entire code.
     
    ThePHPMaster, Jul 17, 2009 IP
  3. neegeris

    neegeris Banned

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if you want get data from url, you NEED use $_GET, maybe you use $_POST what wount show you numbers from link.
     
    neegeris, Jul 17, 2009 IP
  4. JefK

    JefK Member

    Messages:
    66
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
    #4
    neegeris might be right if your register_globals is off, check your register_globals on your phpinfo() page.
     
    JefK, Jul 18, 2009 IP
  5. snotb4ll

    snotb4ll Peon

    Messages:
    273
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't own the website so I don't know.

    Basically what I'm trying to do is get the site to give me a free ad without paying for it. I thought maybe making it "look" like I bought an ad it would allow me to post it. However it doesn't work. It just says I have 1 ad to post but when I go to post it it takes me to a blank page.

    I'm not sure if there is a line of code I can enter to fake a buy or not.
     
    snotb4ll, Jul 18, 2009 IP
  6. vpdesigns

    vpdesigns Peon

    Messages:
    353
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Dude im not gonna help ya try bug out or exploit a site. If you want advertising do it properly and pay for it.
     
    vpdesigns, Jul 18, 2009 IP
  7. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You're not going to be able to do it cause surley they'd have sessions etc. which you cannot recreate...
     
    wd_2k6, Jul 19, 2009 IP