Wat heb je geprobeerd?
Pseudocode:
$variabele = functienaam($variabele);
Denk ook eens aan een tutorial...
Pseudocode:
$variabele = functienaam($variabele);
Denk ook eens aan een tutorial...
Aarclay schreef:Wat heb je geprobeerd?
Pseudocode:
$variabele = functienaam($variabele);
Denk ook eens aan een tutorial...
[COLOR= #0000BB]<?php
$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM linkpartners"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lFetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<a href=""[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"" target="_blank">"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lFetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"</a><br />"[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Aarclay schreef:en sommig $_SERVER waardesIs alleen bij WHERE-statements i.c.m. POST en GET en COOKIE, en andere queries waarbij je deze variabelen gebruikt.
Jordymen schreef:Dan moet je MySQL van de grond af leren.ik ben niet goed in msql