Search found 25 matches
- Fri Jul 06, 2007 6:36 am
- Forum: Databases
- Topic: Wrting umlauts to a database
- Replies: 10
- Views: 1343
Wrting umlauts to a database
Hi Folks, I've really some hard problems writing some umlauts as 'ä ü Ö' to my mysql-db. Therefore I've some little script header('Content-type: text/html; charset=utf-8'); define('host','localhost'); define('user','root'); define('pass',''); define('name','ajax'); $db=mysql_connect(host, user, pass...
- Thu Jul 05, 2007 4:11 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
- Thu Jul 05, 2007 3:37 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
no, error Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /var/www/web2/html/lib/DataAccess.php on line 13 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /var/www/web2/html/lib/DataAccess.php on line 14 Lost connecti...
- Thu Jul 05, 2007 3:07 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
In a file named config.php
Code: Select all
//Database
define('host', 'xxx');
define('user', 'xxx');
define('pass', 'xxx');
define('name', 'xxx');
//Site URL + Name
define('SITE_URL', 'xxx');
define('EMAIL_URL', 'xxx');
define('SITE_NAME', 'xxx');
define("key_lifetime", 60*15);- Thu Jul 05, 2007 2:03 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
line 13 mysql_select_db(name, $this->db) or die(mysql_error()); To my Opinion, there is nothing wrong. As I said above, using another db(from db4free.org) .... everthing' s going well! Earlier this day I send a request to my hoster ... and the reply was in some way funny: I should remove the __ from...
- Thu Jul 05, 2007 1:53 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
- Thu Jul 05, 2007 1:34 pm
- Forum: PHP - Code
- Topic: Indirect modification of overloaded property
- Replies: 4
- Views: 441
Indirect modification of overloaded property
Hi, new here I've another question. I'm using a little Template class in php 5.21. But php send the following error: Indirect modification of overloaded property the class class XTemplate { private $_variables = array(); public function __set($key, $value) { $this->_variables[$key] = $value; } publi...
- Thu Jul 05, 2007 1:24 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
I am guessing that the real username and password is not 'foo'/'bar'. ;) :roll: mysql_pconnect() [function.mysql-connect]: Lost connection to MySQL server during query in /var/www/web2/html/lib/DataAccess.php on line 13 Well, know I've tried to connect to another DB. So I catched one from db4free.o...
- Thu Jul 05, 2007 1:09 pm
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
Hi,
I#ve also tried
with no effect!
shows bool(false);
so long
Rupo
I#ve also tried
Code: Select all
$this->db=mysql_pconnect('localhost', 'foo', 'bar');Code: Select all
var_dump($this->db);so long
Rupo
- Thu Jul 05, 2007 11:41 am
- Forum: Databases
- Topic: Error: Lost Connection
- Replies: 16
- Views: 1378
Error: Lost Connection
Hi, well I've some problems to get acces to my database. Using: php5.2 and mysql 5.0 the following script causes the error: class DataAccess { /* $db stores a database resource */ var $db; /* private: $query stores a query resource */ var $query; /* the class constructor */ public function __constru...