Sveiki iškilo programa,turiu web VIP sistema cs 1.6 ir registracijos puslapy kai vedu duomenis juos bandau pateikti paspausęs "registruoti" man išmeta tokį errorą
ERROR. Cannot query list: SELECT * FROM clientai where email like '[email protected]'
<?php
class mySQLConn
{
var $conn;
var $db;
var $rs;
function mySQLConn($config)
{
$where = $config['where'];
$user = $config['user'];
$pass = $config['pass'];
$db = $config['DB'];
# echo "<pre>";
# print_r($config);
# echo "</pre>";
// echo "$user | $pass";
$this->conn = mysql_connect($where, $user, $pass)
or die("ERROR. Cannot connect to server...<BR>");
$this->db = $db;
$this->db_connect();
}
function db_connect()
{
@mysql_select_db($this->db, $this->conn)
or die("ERROR. Cannot connect to database<BR>");
}
function set_db($db)
{
$this->db = $db;
}
function get_db()
{
return $this->db;
}
function query($sql)
{
$this->rs = @mysql_query($sql, $this->conn)
or die ("ERROR. Cannot query list: $sql");
return $this->rs;
}
function getRow()
{
return @mysql_fetch_assoc($this->rs);
}
function numRows()
{
return @mysql_num_rows($this->rs);
}
}
?>
config.php
<?php
// mysql config
$config['mysql']['DB'] = ""; // database of where your tables are
$config['mysql']['where'] = ""; // location of mysql server
$config['mysql']['user'] = ""; // user name to log into
$config['mysql']['pass'] = ""; // password associated to the user name
$config['USER_TABLE'] = "";
?>
Registracijos anketoj meta error'a
Tinklalapių kūrimas
Sukurta
Sveiki iškilo programa,turiu web VIP sistema cs 1.6 ir registracijos puslapy kai vedu duomenis juos bandau pateikti paspausęs "registruoti" man išmeta tokį errorą
Galite parsisiųsti ir pažiūrėti: http://zp.alone.lt/vip/VIP_Sistema/nickreg.rar
Va pažiūrėkit visus failus kaip atrodo toje svetainėje
( http://zp.alone.lt/vip/VIP_Sistema/nickreg/ )
index.php
mySQL.php
config.php