Het lukt me maar niet om zown ID op mn php pagina aan te maken... als je niet ckr weet wat ik bedoel:
Tweakwindows heeft ook zowiets! als je mijn bericht bekijkt zie je in je adresbalk tweakwindows.nl/index.php? a=forum
hoe maak je dat "?" en a=forum?
ik heb al op google gezocht maar ze leggen het niet duidelijk uit. heel ingewikkeld :p
Dit omdat op mijn website kan je je registreren... er wordt een mailtje naar je gestuurd met: [link] ? id= 3 code is nog wat true.
en als ik daarop klik dan komt er pagina kan niet worden weergegeven
17 januari 2006 16:59
leviathan
hmm ik snap je vraag niet echt, maar dit is gewoon zo geprogrammeerd. Rax heeft volgens mij er gewoon voor gekozen om a te gebruiken, het had net zo goed iets anders kunnen zijn...
17 januari 2006 17:40
ali
ik bedoel hoe ik zelf zn ID dingens kan toevoegen!
ipv mijn link : ali.com/contact.php
dit: ali.com?id=2
waar 2 voor contact staat
17 januari 2006 17:52
leviathan
is dat nodig dan? Deze site is best wel een flink scriptje hoor, dat flik je niet zomaar 1 2 3.
17 januari 2006 18:59
ali
word je website daar niet sneller van dan?
het gaat mij alleen om dat activerings mailtje :p
17 januari 2006 19:41
leviathan
nou, de site word er inderdaad sneller van, omdat hij een paar letters niet hoeft te berekenen, maar dat verschil is zoooooooooooooooooooooooooooooooooo klein, dat merk je heus niet hoor... het verschil is eigenlijk gewoon te verwaarlozen. Dus de "makkelijke'' manier is al goed zat.
17 januari 2006 20:22
ali
hoe moet ik dat verder doen met dat activerings mailtje dan?
18 januari 2006 12:47
leviathan
:F euh hoe leer je php? daar heb je toch tutorials voor! de mijne staat het bij inbegrepen :p
Oh ja, op http://www.jacqieline.com staan kant-en-klare scriptjes, daar staat het vast ook in, kun je gebruiken of daar uit knippen.
18 januari 2006 14:44
ryan
ali.com?page=home
zo moet je dat doen:
<?
switch (strtolower($_GET['page']))
{
case "home":
$page="sub/index.htm";
break;
case "about":
$page="sub/over.htm";
break;
case "admins";
$page="sub/admins.htm";
break;
case "chat";
$page="sub/chat.htm";
break;
case "poll";
$page="sub/poll.htm";
break;
case "bill";
$page="sub/bill.htm";
break;
case "mes_add";
$page="mes_add.php";
break;
case "nieuws";
$page="nieuws/index.php";
break;
case "contact";
$page="contact.php";
break;
default:
$page="sub/index.htm";
}
include ($page);
?>
Verbinding maken met MySQL van lycos:
MySQL voor lycos:
<?
// Error reporting zetten we uit, het is niet echt netjes je bezoekers errors voor te schotelen
ERROR_REPORTING(0);
// MySQL
$db_user = "<je gebruikers naam>"; // Gebruiker voor MySQL
$db_pass = ""; // Wachtwoord voor MySQL (voor lycos niks invullen)
$db_host = "localhost"; // Host voor MySQL; standaard localhost
$db_db = "<je gebruikers naam>_nl_db"; // Database (voor lycos je gebruikersnaam gevolgd door _nl_db)
// Als je al ergens anders een database connectie hebt gemaakt,
// maak dan van de volgende twee regels commentaar (# of // ervoor zetten)
mysql_connect($db_host,$db_user,$db_pass);
mysql_select_db($db_db);
?>
je mag natuurlijk ook beginnen met <?php maar dat is niet echt nodig
www.phphulp.nl (voor meer phpscripts en tuts)
18 januari 2006 16:18
leviathan
uhm dit is toch niet het script waar ali om vroeg. did hoort niet eens bij zijn site, het is een half afgekapt script. Verder zet ik error_reporting altijd w?l aan en blijf dan nt zo lang doorgaan tot er geen fouten meer zijn...
over dat script dat een mailtje stuurt he ali, volgens mij heb ik dat op de site zien staan die ik gaf. eventjes zoeken (volgens mij naar login systeem, daar komt ook een registreer tutorial bij compleet met bevestigingsmail)