Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[php]Error: SELECT command denied to user

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sat Jul 05, 2008 7:23 pm    Post subject: [php]Error: SELECT command denied to user Reply with quote

Error: SELECT command denied to user ''@'localhost' for table 'pending'

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SuperTut</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="topbar">
<div id="text">
<?php
session_start();
$my_t=getdate(date("U"));
echo("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]");
?>
</div>
<div id="topbarlink">
<?php
$user = $_SESSION[ 'username' ];
$isadmin = $_SESSION[ 'isadmin' ];
if (!isset($user)){
echo '<a href="login.php">Login</a> | <a href="register.php">Register</a>';
}
if (isset($user)){
echo '<b>Hi '.$user.'! | <a href="logout.php">Logout</a> | <a href="#">Submit a Tutorial</a></b>';
if ($user == admin){
echo '<b> | <a href="admin.php">Admin Panel</a>';
}
}
?>
</div>
</div>
<div id="links">
<div id="linkstext">
<a href="#">CSS</a> | <a href="#">Flash</a> | <a href="#">HTML</a> | <a href="#">Photoshop</a> | <a href="#">PHP</a> | <a href="#">Cinema 4D</a> | <a href="#">GIMP</a> | <a href="#">C++</a> | <a href="#">C#</a> | <a href="#">Visual Basic</a>
</div>
</div>
<div id="admin">
<?php
if ($user == admin){
#include "dbc.php";
$select=mysql_query("SELECT * FROM tutshack.pending WHERE pending='1'") or die ('Error: '.mysql_error ());;
$row=mysql_fetch_array($select);
while($row=mysql_fetch_array($select)) {
echo $row[title];
echo ' | ';
echo $row[by];
echo ' | ';
echo $row[description];
echo ' | ';
echo $row[link];
echo ' | ';
echo $row[date];
echo ' | ';
echo $row[section];
echo ' | ';
echo '<br />';
echo '<form name="form1" method="post" action="allow.php">Name: <input name="name" type="text" size="9"><br /><input type="submit" name="Submit" value="Allow"></form>';
}
}
?>
</div>
</body>
</html>

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Sun Jul 06, 2008 1:47 am    Post subject: Reply with quote

where are you connecting to the database ? doesn't seem like you are calling mysql_connect() and selecting database anywhere in your code. I hope you know you can't execute a query without connecting to db Razz
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites