patco Posted August 12, 2008 Share Posted August 12, 2008 I am new in PHP, my friend helped me to create a website, but in the net there are too many errors, but they are similar. Here is the site: http://xtremebux.my32.net/index.php . Don't think this is spam. THANK YOU IN ADDITION !!! The php code is: <?php include ('header.php'); ?> <h3>Join Now and Get Paid to Visit Websites!</h3> <p><img class="img-left" src="images/users.png" width="48" height="48" alt="Image" /> At <? include('sitename.php'); ?>, you get paid to click on ads and visit websites. The process is easy! You simply click a link and view a website for a few seconds to earn money. You don't need any skills. This is because all you need to do is visit the sites we provide you with. <span class="highlight">You can earn even more by referring friends.</span> Payment requests can be made every day and are processed through PayPal. The minimum payout is $<? require ('config.php'); $sql = "SELECT FROM tb_config WHERE item='payment' and howmany='1"; $result=mysql_query($query); $row = mysql_fetch_array($result); echo $row["price"]; mysql_close($con);?></p> <p align="right"><?php echo "<a href=\"register.php?r=".$elref."\">";?>Join Now!</a></p> <h3>Advertise Here</h3> <p><img class="img-left" src="images/money.gif" width="48" height="48" alt="Image" /> Setting up and displaying your link for <? include('sitename.php'); ?> members to visit is fast and simple. We charge $<? require ('config.php'); $sql = "SELECT * FROM tb_config WHERE item='hits' and howmany='1000'" or die(mysql_error()); $result = mysql_query($sql); $row = mysql_fetch_array($result); echo $row["price"]; mysql_close($con);?> per <? require ('config.php'); $sql = "SELECT * FROM tb_config WHERE item='hits' and howmany='1000'"; $result = mysql_query($sql); $row = mysql_fetch_array($result);echo $row["howmany"]; mysql_close($con);?> member visits and each visit will last at least 20 seconds. Outside visits are unlimited and included within the price. We will review your website and will have it active within 24 hours. You don’t need an account to order advertising at <?php include ('sitename.php');?>, you simply need to complete the form then pay the fee. If you would like a large package then please feel free to contact us. We will review your website within just a few hours or less. But will NOT accept illegal or adult material neither the use of frame breakers.</p> <p align="right"><?php echo "<a href=\"advertise.php?r=".$elref."\">";?>Read More...</a></p> <? require ('config.php'); $sqlzdu = "SELECT * FROM tb_config WHERE item='referalclick' and howmany='1'"; $resultzdu = mysql_query($sqlzdu); $myrowzdu = mysql_fetch_array($resultzdu); $elprecioref=$myrowzdu["0.01"]; $sqlzduz = "SELECT * FROM tb_config WHERE item='click' and howmany='1'"; $resultzduz = mysql_query($sqlzduz); $myrowzduz = mysql_fetch_array($resultzduz); $elprecioa=$myrowzduz["0.01"]; $elprecio=$elprecioa*10; $cien=$elprecioref*100*10; $daily=$elprecio+$cien; $monthly=$daily*30; $yearly=$monthly*12; mysql_close($con); ?> <p> </p> <blockquote><h4>How much can I earn?</h4> If you click 10 ads a day, you refer 100 members who click 10 ads a day, you could earn up to $<?php echo $monthly?> monthly, that means $<?php echo $yearly ?> yearly. With more referrals or ads the earning potential is endless.</blockquote> <?php include ('footer.php'); ?> Quote Link to comment Share on other sites More sharing options...
revraz Posted August 12, 2008 Share Posted August 12, 2008 List the errors. Quote Link to comment Share on other sites More sharing options...
patco Posted August 12, 2008 Author Share Posted August 12, 2008 Ok now i solved the errors, but can somebody help me with this. My site is PPC. When a member, not registered, is on the site there are Login and Register menus.But when a member, registered is on the site, he see again these Login and Register. How can i change this? Quote Link to comment Share on other sites More sharing options...
revraz Posted August 12, 2008 Share Posted August 12, 2008 Use a session and set it when they log in. Then on each page that has that Login/Register, check the session and hide it if they are logged in. Quote Link to comment Share on other sites More sharing options...
patco Posted August 12, 2008 Author Share Posted August 12, 2008 I am new in PHP, could you give me sth. like Tutorial . Thanks man Quote Link to comment Share on other sites More sharing options...
bluejay002 Posted August 13, 2008 Share Posted August 13, 2008 A little google will do, just type there PHP tutorial or to be specific with sessions, you can write there using sessions in PHP. A good site for PHP tutorial, for example, is w3schools. You might want to visit that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.