probleem met ?nlogsysteem

Gestart doorOklawa14 reacties28 weergaven

15 berichten · pagina 1 van 1

Oklawa

Lid · Topicstarter

Berichten
327
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb een ?nlogsysteem alleen wanneer ?k ?ngelogd ben kommen er allemaal problemen d?t ?s de scr?pt als je ?ngelogd bent :

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"lang/lang_"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$lang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pml_title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$site_name[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"htmltop.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"connect.php"[/COLOR][COLOR= #007700]);[/COLOR]


 [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT name FROM `"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$db_tbl[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"` WHERE id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/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= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
 [COLOR= #0000BB]$row[/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]$naam[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700]->[/COLOR]name[COLOR= #007700]);[/COLOR]
 ?>
  <table>
   <tr>
    <td>Welcome <b><?= $naam ?></b></td>
   </tr>
   <tr>
   <td><small><a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; <a href="useroptions.php">Options</a></small></td>
   </tr>
0
Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat voor fouten geeft hij aan.
0
Berichten
1.168
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"connect.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"lang/lang_"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$lang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pml_title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$site_name[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"htmltop.php"[/COLOR][COLOR= #007700]);[/COLOR]


 [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT name FROM `"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$db_tbl[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"` WHERE id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/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= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
 [COLOR= #0000BB]$row[/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]$naam[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700]->[/COLOR]name[COLOR= #007700]);[/COLOR]
 ?>
  <table>
   <tr>
    <td>Welcome <b><?= $naam ?></b></td>
   </tr>
   <tr>
   <td><small><a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; <a href="useroptions.php">Options</a></small></td>
   </tr>


Als het goed is werkt ditwink
0
Oklawa

Lid · Topicstarter

Berichten
327
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
werkjt n?et want k?jk maar razik.one2xs.com/login.php (reg?streer anders eerst b?j razik.one2xs.com/reg?strate.php) als ?k ben ?ngelogd moet er achter welcome je naam staan en dan moet opt?ons naar opt?ons l?nken alleen dat doet h?j n?et

Quote:
Wat voor fouten geeft hij aan.

@m?keb h?j geeft geen fouten aan maar lees wat ?k h?er boven geschreven heb yummie
0
Oklawa

Lid · Topicstarter

Berichten
327
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bump
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Doe in plaats van `".$db_tbl."` gewoon de naam van je tabel.

Volgens mij kan je namelijk niet, als je iets include, daarvandaan een variabele maken zodat je de tabel in een string kan zetten, maar dat weet ik niet zeker!nerd
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"lang/lang_"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$lang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pml_title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$site_name[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"htmltop.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"connect.php"[/COLOR][COLOR= #007700]);[/COLOR]


 [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT name FROM "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$db_tbl[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id= "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]]);[/COLOR]
 [COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
 ?>
  <table>
   <tr>
    <td>Welcome <b><php echo $fetch[naam]; ?></b></td>
   </tr>
   <tr>
   <td><small><a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; <a href="useroptions.php">Options</a></small></td>
   </tr>
</table>
0
Krm

Lid

Berichten
6.235
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
oklawa ff offtopic ben jij nu in turkije dat herken ik aan de i zonder punt
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat zei die toch falurt
0
Oklawa

Lid · Topicstarter

Berichten
327
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja ik zit nu in turkije kijk op men profiel daar staat het volgensm?j ook

hmm h?j werkt nog steeds n?et alleen ?k heb een vraagje wat moet ?k neerzetten om aleen maar welcome (naam) ergens neer te zetten
0
Berichten
262
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem code is bijna goed, alleen vraagt die op regel 14 naam op terwijl op regel 9 name wordt op gevraagt uit de database en geen naam.

je zou dus even moeten kijken hoe hij nu werkelijk in de database moeten kijken hoe je hem moet opvragen als:name of als naam.
pas daar regel 9 en 14 op aan.
0
Berichten
6.356
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"lang/lang_"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$lang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pml_title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$site_name[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"htmltop.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"connect.php"[/COLOR][COLOR= #007700]);[/COLOR]


 [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$db_tbl[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id= "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]]);[/COLOR]
 [COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
 ?>
  <table>
   <tr>
    <td>Welcome <b>[COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]];[/COLOR] ?></b></td>
   </tr>
   <tr>
   <td><small><a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; <a href="useroptions.php">Options</a></small></td>
   </tr>
</table>
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"lang/lang_"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$lang[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]".php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$pml_title[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$site_name[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"htmltop.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"connect.php"[/COLOR][COLOR= #007700]);[/COLOR]


 [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT naam FROM "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$db_tbl[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id= "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user_id[/COLOR][COLOR= #007700]]);[/COLOR]
 [COLOR= #0000BB]$fetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
 ?>
  <table>
   <tr>
    <td>Welcome <b>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?></b></td>
   </tr>
   <tr>
   <td><small><a href="logout.php">Logout</a>&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; <a href="useroptions.php">Options</a></small></td>
   </tr>
</table>
0
Berichten
2
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ik heb wel een index, signup en login script voor je maar je mag hem niet verkopen ! ik heb hem ook van een ander
0
Berichten
2.674
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kerem schreef:
oklawa ff offtopic ben jij nu in turkije dat herken ik aan de i zonder punt
Haha wou ik ook vragen emo
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