Search found 25 matches

by Rupo
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...
by Rupo
Thu Jul 05, 2007 4:11 pm
Forum: Databases
Topic: Error: Lost Connection
Replies: 16
Views: 1378

test-script error_reporting(E_ALL|E_STRICT); define('host','xxx'); define('user','xxxx'); define('pass','xxx'); define('name','xxx'); $db=mysql_connect(host, user, pass); mysql_select_db(name, $db) or die(mysql_error()); $sql="SELECT * FROM NEWS"; $result=mysql_query($sql,$db); $return=mys...
by Rupo
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...
by Rupo
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);
by Rupo
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...
by Rupo
Thu Jul 05, 2007 1:53 pm
Forum: Databases
Topic: Error: Lost Connection
Replies: 16
Views: 1378

same problem :?
by Rupo
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...
by Rupo
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...
by Rupo
Thu Jul 05, 2007 1:09 pm
Forum: Databases
Topic: Error: Lost Connection
Replies: 16
Views: 1378

Hi,

I#ve also tried

Code: Select all

$this->db=mysql_pconnect('localhost', 'foo', 'bar');
with no effect!

Code: Select all

var_dump($this->db);
shows bool(false);

so long
Rupo
by 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...