Jump to content
php.lv forumi

mysql connect


drinkits

Recommended Posts

kas man jaamaina servera konfiguraacija lai mysql datubaazeem vareeetu piesleegties no citurienes?

 

P.S. Lietoju appserv.

 

<?php
$dbhost = 'server.lv:3306';
$dbuser = 'login';
$dbpass = 'parole';
$dbname = 'datubaaze';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die					  ('Error connecting to mysql');
mysql_select_db($dbname);

 

un man protams metaas errors =]

Link to comment
Share on other sites

×
×
  • Create New...