Witam,
chciałem aby po zalogowaniu na stronę w echo ('') pojawiała się strona wczytywana z bazy danych (kod php będzie trzymany w bazie danych.
<?php { require('conn.php'); if ($konto!="" and $password!="") { $zapytanie="SELECT id FROM user WHERE login='$konto' and password ='$password'"; $id=$temp['id']; if ($ile==1) { $_SESSION['user_id']=$id; $_SESSION['login']=$konto; echo '<html> <!--Tu tkwi problem--> <head> <title>Tytul strony</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css"> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body topmargin="0" marginheight="0" leftmargin="0" marginwidth="0"> <table style="background-color:#0d110e; margin:0 auto" width="100%" cellpadding="0" cellspacing="0"> <tr> <td width="100%" height="150" align="center" valign="middle">LOGO</td> </tr> </table> <div style = "margin:0 auto; width:80%; padding:0 20px 0 20px;"> <br /> <div class = "menu"> <span style = "font-size:15px; font-weight:bold; font-style:italic"> <ul id="Home" class="MenuBarHorizontal"> <li><a href="index.php">Home</a></li> <li><a href="login.php">Logowanie</a> </li> <li><a href="reg.php">Rejestracja</a></li> <li><a href="#">xxx</a></li> <li><a href="news.php">News</a></li> </span> </div> <br /> <div class = "title"> <div style = "width:100%; float:left; clear:left;"> <b><font color="#FF3300">TOPIC</font></b> </span><br /> <br /> </div> </div><br/> <div class = "news"> <div style = "width:100%; float:left; clear:left;"> <link href="X>" </div> </div><br/> <br/> </body> </html>'; } } } else{ ?>