HTML beginner |
|
CRITICAL ERROR
Sql error 1054: Unknown column 'member_id' in 'where clause'
DEBUG MODE:
File: /www/users/mkiq.downfire.com/forum/view_topic.php
Line: 50
dit is dus de error die ik krijg, het bestand view topic ziet er als
volgt uit...(vanaf r25 tot r67)
<?
print '<h3 align="center">Bekijk onderwerp:</h2>';
if(isset($_GET['verplaats_topic']) && isset($_SESSION['administrator']))
{
verplaats_topic((int) $_GET['topic_id'], (int) $_GET['forum_id']);
}
if(isset($_GET['close_topic']) && isset($_SESSION['administrator']))
{
if(!$rMySQLQuery = mysql_query("UPDATE `topics` SET `topic_locked` = '1' WHERE `topic_id` = '".$_GET['topic_id']."' LIMIT 1;"))
{
message_die();
}
@header('Location: view_forum.php?style='.$_GET['style'].'&forum_id='.$_GET['forum_id']);
}
if(isset($_GET['open_topic']) && isset($_SESSION['administrator']))
{
if(!$rMySQLQuery = mysql_query("UPDATE `topics` SET `topic_locked` = '0' WHERE `topic_id` = '".$_GET['topic_id']."' LIMIT 1;"))
{
message_die();
}
?>
<? print '<h3 align="center">Bekijk onderwerp:</h2>'; if(isset($_GET['verplaats_topic']) && isset($_SESSION['administrator'])) { verplaats_topic((int) $_GET['topic_id'], (int) $_GET['forum_id']); } if(isset($_GET['close_topic']) && isset($_SESSION['administrator'])) { if(!$rMySQLQuery = mysql_query("UPDATE `topics` SET `topic_locked` = '1' WHERE `topic_id` = '".$_GET['topic_id']."' LIMIT 1;")) { message_die(); } @header('Location: view_forum.php?style='.$_GET['style'].'&forum_id='.$_GET['forum_id']); } if(isset($_GET['open_topic']) && isset($_SESSION['administrator'])) { if(!$rMySQLQuery = mysql_query("UPDATE `topics` SET `topic_locked` = '0' WHERE `topic_id` = '".$_GET['topic_id']."' LIMIT 1;")) { message_die(); } ?>
Regel 50!!
<?
@header('Location: view_forum.php?style='.$_GET['style'].'&forum_id='.$_GET['forum_id']);
}
function get_user_info($iUserId)
{
if(!$rMySQLQuery1 = mysql_query("SELECT * FROM members WHERE member_id = '".$iUserId."'"))
{
message_die();
}
if(mysql_num_rows($rMySQLQuery1) == 0)
{
trigger_error('Invalid user ID given: <b>'.$iUserId.'</b>',E_USER_ERROR);
}
return mysql_fetch_assoc($rMySQLQuery1);
}
?>
<? @header('Location: view_forum.php?style='.$_GET['style'].'&forum_id='.$_GET['forum_id']); } function get_user_info($iUserId) { if(!$rMySQLQuery1 = mysql_query("SELECT * FROM members WHERE member_id = '".$iUserId."'")) { message_die(); } { trigger_error('Invalid user ID given: <b>'.$iUserId.'</b>',E_USER_ERROR); } } ?>
|