note 100998 added to function.mysql-connect

From: Date: Fri, 19 Nov 2010 11:32:07 +0000
Subject: note 100998 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-174180@lists.php.net to get a copy of this message
<?php public function mysqlConnect() //@ { /* This function connect auto to mysql. no need to call it because it's included in the other mysql functions below... call this only if you want to use a complete SET of mysql code...! Use with caution!! */ self::debugADD ( "Connecting to mysql..." ); $connection = mysql_connect ( $this->mysqlServerName , $this->mysqlServerUsername , $this->mysqlServerPassword ); if ( !$connection ) { die ( "MYSQL ERROR (Could not connect at: connectToMysql ... " ); return false; } self::debugADD ( "Connection established with success!" ); mysql_select_db ( $this->mysqlServerDataBase , $connection ); mysql_set_charset ( "utf8" , $connection ); self::debugADD ( "DataBase selected: $this->mysqlServerDataBase" ); return $connection; } ?> ---- Server IP: 194.8.30.16 Probable Submitter: 85.240.148.90 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- https://master.php.net/note/edit/100998 Del: integrated -- https://master.php.net/note/delete/100998/integrated Del: useless -- https://master.php.net/note/delete/100998/useless Del: bad code -- https://master.php.net/note/delete/100998/bad+code Del: spam -- https://master.php.net/note/delete/100998/spam Del: non-english -- https://master.php.net/note/delete/100998/non-english Del: in docs -- https://master.php.net/note/delete/100998/in+docs Del: other reasons-- https://master.php.net/note/delete/100998 Reject -- https://master.php.net/note/reject/100998 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174180) next »