Include problem
Moderator: General Moderators
Include problem
Hello, i have a log in system with 3300 users. With that system i created an admin panel.
The admin panel i made can aprove or deny users and edit everything of their account.
everything worked perfect until now, the includes sometimes don't respond.
if i click on a link it includes a page. now sometimes it includes, sometimes is just doesnt and gives the default page i programmed.
Is it because of the database?
Is it because of a bug in the newest PHP version?
i don't know? I can't be my script cause it worked fine for 4 months and since now it doesn't
please help me,
greetz,
Subberke
The admin panel i made can aprove or deny users and edit everything of their account.
everything worked perfect until now, the includes sometimes don't respond.
if i click on a link it includes a page. now sometimes it includes, sometimes is just doesnt and gives the default page i programmed.
Is it because of the database?
Is it because of a bug in the newest PHP version?
i don't know? I can't be my script cause it worked fine for 4 months and since now it doesn't
please help me,
greetz,
Subberke
it's not my code, i'm sure of it. Since a week or 2 every include i use just doesn't react always.
say i have a link
<a href="index.php?link=test>test</a>
and this code
if ($link == "")
{
include("empty.php");
}
elseif ($link == "test");
{
include("testpage.php");
}
else
{
include("error.php");
}
if i should click the link, somethimes it wil show the testpage somethimes it will show the error page
say i have a link
<a href="index.php?link=test>test</a>
and this code
if ($link == "")
{
include("empty.php");
}
elseif ($link == "test");
{
include("testpage.php");
}
else
{
include("error.php");
}
if i should click the link, somethimes it wil show the testpage somethimes it will show the error page
Code: Select all
from
$query = "SELECT * FROM users WHERE naam = '$_REQUESTї'user']' AND paswoord = '$_REQUESTї'pass']'";
to
$query = "SELECT * FROM users WHERE naam = '$_REQUESTїuser]' AND paswoord = '$_REQUESTїpass]'";Concatenate:Subberke wrote:$query = "SELECT * FROM users WHERE naam = '$_REQUEST['user']' AND paswoord = '$_REQUEST['pass']'";
this doesnt work
Code: Select all
<?php
"SELECT * FROM users WHERE naam='" . $_REQUEST['user'] . "' AND paswoord='" . $_REQUEST['pass'] . "'";
?>Does your script perform any checks on user input?
Last edited by McGruff on Wed Aug 10, 2005 8:13 pm, edited 1 time in total.