Problema cod
Scris: Dum Mai 15, 2011
Buna, am si eu un cod si am o problema cu el:
Da...stiu...e cam lung, dar nu am vreo problema de programare. Problema e: Cand intru pe pagina se incarca greu, cateodata apare si erroare 404. Acuma eu intreb: e o problema ca am folosit session_start();
if(!session_is_registered(email)){ de mult ori in pagina? Sau? Plssss ajutor. Ieri mergea foarte bine...iar acuma..deloc:((THX
Cod: SelectaĊ£i tot
<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>For Friends</title>
<meta name="Keywords" content="">
<meta name="Description" content="">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<center>
<div class=container>
<!-- head -->
<div class=head><div style="padding-top: 50px"><div style="background-image: url(images/logo.png); background-repeat: no-repeat; height: 80px;"> <div style="position: relative; left: 100px; top: -20px; text-align: left;">
<table width=80%>
<tr>
<td style="text-align: left; font: 25px arial; color: #000000;">4Friends</td>
<td align=right>
<table border="0" cellspacing="0" cellpadding="5">
<?
//Aici este formularul din HEADER
if(!session_is_registered(email)){
echo '<form name="loginform" method=post action="verification_login.php">
<tr>
<td>Email</td>
<td><input type="text" name="email" size="13" value=""></td>
</tr>
<tr>
<td>Password</td>
<td><input type="Password" name="password" size="13"></td>
</tr>
<tr>
<td><input class=button type="submit" name="Submit" value="Log In"></td>
</tr>
</form>';
}else{
echo "";
}
?>
</table>
</td>
</tr>
</table>
</div></div></div></div>
<!-- navigation menu -->
<div class=nav>
<?
// Aici este meniul pentru cei care nu sunt Logati si care sunt Logati
session_start();
if(!session_is_registered(email)){
include("visitators_menu.php");
}else{
include("users_menu.php");
}
?>
</div>
<div style="padding: 10px; text-align: left;">
<!-- body content -->
<table cellpadding=10 width=100%>
<tr>
<td>
<h2>Last four registered users </h2>
<table width=100%>
<tr valign=top align=center>
<?php
include("config.php");
mysql_connect("sql107.byethost15.com", "b15_7039989", "school") or die("Error");
mysql_select_db("b15_7039989_social_network") or die("Error");
$actiune = "SELECT * FROM users order by id desc LIMIT 4 ";
$query = mysql_query($actiune);
while ($rand = mysql_fetch_assoc($query)){
echo '<td><a href="'.$site.'/profile.php?uid='.$rand['id'].'"><img src="'.$rand['avatar'].'" width="100" height="150" border="0" alt=""></a><br>'.$rand['first_name'].' '.$rand['last_name'].'<br>Age: '.$rand['age'].'<br>'.$rand['country'].'</td>';
}
?>
</tr>
</table>
<h2>4Friends</h2>
<b></b>
<font size="4">With 4friends you can connect with your friends from all the world. You can listen to music from the playlist of your friends, you can upload your music, instant messages, you can create groups, you can post posts in your blog.All is for free, is for you and your friends, to connect you with them. 4Friends is for teens from all the world. </font>
</td>
<td>
<img src="images/main.png" width="245" height="474" border="0" alt="">
<table border="0" cellspacing="0" cellpadding="5">
</table>
</td>
</tr>
</table>
</div>
<!--
COPYRIGHT
Do not change or remove the reference to DatingSiteBuilder if you use the free version
-->
<div class=foot>Copyright © Dascalu Claudiu 2009. All Rights Reserved. <a href="http://www.datingsitebuilder.com/">Template Designed By DatingSiteBuilder</a></div>
</div>
<center>
</body>
</html>
if(!session_is_registered(email)){ de mult ori in pagina? Sau? Plssss ajutor. Ieri mergea foarte bine...iar acuma..deloc:((THX