profiel hulp

Gestart doorFreestyle16 reacties18 weergaven

17 berichten · pagina 1 van 2

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ben bezig met profiel pagina en nu wil ik dat je het profiel van iemand anders ook kan bekijken.
door middel van:

profiel.php?act=gebruikersnaam

1. hoe doe ik dit?
2. heb je code van profiel.php nodig?
3. alvast bedankt
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
geef de tabel van je gebruikers.
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gebruik $_GET en haal dan via een query je naam op.
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL auto_increment,
  `user` varchar(64) NOT NULL,
  `wachtwoord` varchar(250) NOT NULL,
  `email` varchar(300) NOT NULL,
  `rang` varchar(25) NOT NULL,
  `warn` int(100) NOT NULL,
  `reg_datum` varchar(150) NOT NULL,
  `last_datum` varchar(150) NOT NULL,
  `reg_ip` varchar(250) NOT NULL,
  `last_ip` varchar(250) NOT NULL,
  `kladblok` text NOT NULL,
  `avatar` varchar(500) NOT NULL,
  `website` text NOT NULL,
  `onderschrift` text NOT NULL,
  `nieuwsbrief` varchar(10) NOT NULL,
  `kvk` varchar(11) NOT NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `user` (`user`,`reg_ip`),
  UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;


@shahiem en hoe doe ik ditbloos
heb trouwens al op google gezocht
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
if(isset($_GET[act]) && $_GET[act])
{
    $profielQuery = mysql_query("SELECT
                                    naam
                                FROM
                                    leden
                                WHERE
                                    naam = ".mysql_real_escape_string($_GET[act])."");
}


Zoiets smile
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #FF8000]//weet niet hoe je config bestand heet[/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 id="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]act[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700]);[/COLOR]
?>

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?>
email is :[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR] ?>


probeer dit eens
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@^ bedankt. ik ga het even proberen.
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
foutje

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?>


moet

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>


zijn
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Smiegles schreef:
foutje

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?>
moet

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>


zijn

Nee? confused
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@Smiegles: Waarom array terwijl je assoc kan gebruiken? emo
0
Berichten
4.912
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
@Smiegles: Waarom array terwijl je assoc kan gebruiken? emo
macht der gewoonten
0
Berichten
1.054
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Raoulfloks schreef:
Eerdere citaten tonen
Smiegles schreef:
foutje
Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?>


moet

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>


zijn
Nee? confused
wink.
Al wordt
Dus leer jezelf aan gebruik
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Hdradio schreef:
Eerdere citaten tonen
Raoulfloks schreef:
Eerdere citaten tonen
Smiegles schreef:
foutje
Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?>


moet

Profiel van:[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>


zijn
Nee? confused
wink.
Al wordt
Dus leer jezelf aan gebruik
Ja, daarom zeg ik het.
Mensen moeten niet leren zulke lelijke shorttags te gebruiken wink
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik gebruik verder gebruik ik altijd
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Freestyle schreef:
ik gebruik
verder gebruik ik altijd
wth zeg jij nu?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren