wie kan er een code maken voor mij ik heb nu een inlogsysteem met refral systeem maar ik wil een code die ik kan plakken op me pagina als je die pagina bezoekt moet je saldo 200 bedragen en als je op de pagina gekomen bent gaat die saldo vaan 200 van het gebruiker weg
hier de tabellen die mischien nodig zijn
id username email saldo pass button active code
als je het kan maken ben ik supperblij je krijgt ook wel een vergoeding
hier de tabellen die mischien nodig zijn
id username email saldo pass button active code
als je het kan maken ben ik supperblij je krijgt ook wel een vergoeding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- Template Design by TheWebhub.com | http://www.thewebhub.com | Released for free under a Creative Commons Attribution-Share Alike 3.0 Philippines -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PHP-Kerem.nl</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>PHP-Kerem.nl</h1>
<h2>Php scripts voor webmasters...</h2>
</div>
<div id="menu">
<ul>
<li><a href="http://www.php-kerem.nl/index.php">Home</a>
<li><a href="http://www.php-kerem.nl/downloads/">Downloads</a></li>
<li><a href="http://www.php-kerem.nl/proxy.php">Proxy surfen</a></li>
<li><a href="http://www.php-kerem.nl/contact.php">Contact</a></li>
<li><a href="http://www.php-kerem.nl/links.php">Links</a></li>
<li><a href="http://www.php-kerem.nl/partnerworden.php">Partner worden</a></li>
<li><a href="http://www.php-kerem.nl/adverteren.php">Adverteren</a></li>
<li><a href="http://www.php-kerem.nl/admin.php">Admin login</a></li>
</ul>
</div>
<div id="content">
<div id="right">
<div class="post">
<h2>Adverteer </h2>
<script type="text/javascript"><!--
google_ad_client = "pub-1319046422984117";
/* 468x60, gemaakt 10-3-09 */
google_ad_slot = "9753844883";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="post">
<h2>[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"$menuhead2"[/COLOR][COLOR= #007700];[/COLOR] ?></h2>
</div>
<div class="post">
</div><p>Hier kun je inloggen op je [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"$sitenaam"[/COLOR][COLOR= #007700];[/COLOR] ?> account.
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$pass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]pass[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM users WHERE username = $username AND pass = $pass"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$object[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_object"]mysql_fetch_object[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])){[/COLOR]
[COLOR= #0000BB]$memberid[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$object[/COLOR][COLOR= #007700]->[/COLOR]id[COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$active[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$object[/COLOR][COLOR= #007700]->[/COLOR]active[COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$active[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<meta http-equiv="refresh" content="0;URL=index.php">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$active[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]"yes"[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]memberid[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$memberid[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<meta http-equiv="refresh" content="0;URL=saldo.php">"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<br><br>Inloggen..."[/COLOR][COLOR= #007700];
}
}}[/COLOR]
?>
</p>
<form name="form1" method="post" action=""> Gebruikersnaam:<br>
<input name="user" type="text" id="user" value="">
<br>
Wachtwoord:<br>
<input name="pass" type="password" id="pass">
<br>
<input type="submit" name="Submit" value="Inloggen >>">
</form>
</div
</div>
<div id="left">
<h2>Submenu</h2>
<p><strong>[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]menu2.php[/COLOR][COLOR= #007700]);[/COLOR] ?></strong> <br />
<br></p>
</div>
</div>
<div id="footer">
<p class="copyright">Copyright © 2009 Php-kerem.nl <a href="http://www.php-kerem.nl/webmail/">Webmail</a></li><SCRIPT LANGUAGE="JavaScript" SRC="http://www.istats.nl/count.php?cid=46532"></SCRIPT>
</a></p>
</div>
</div>
</body>
</html> 

