hey,
I'm totaly noob in working with databases.
at this moment I'm testing my site and database, on my local wamp-server.
everything works fine.
Dreamweaver created a file
connections/ecards.php
Now I uploaded my site to http://timds.x10hosting.com/
I edited my connectionfile:
while surfing site (when it comes to connect the database...) I get:
No database selected
I hope someone can halp me
tim d.s.
I'm totaly noob in working with databases.
at this moment I'm testing my site and database, on my local wamp-server.
everything works fine.
Dreamweaver created a file
connections/ecards.php
Code:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_ecards = "localhost";
$database_ecards = "ecards";
$username_ecards = "xxxx";
$password_ecards = "xxxx";
$ecards = mysql_pconnect($hostname_ecards, $username_ecards, $password_ecards) or trigger_error(mysql_error(),E_USER_ERROR);
?>
Now I uploaded my site to http://timds.x10hosting.com/
I edited my connectionfile:
Code:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_ecards = "[COLOR=red]localhost[/COLOR]";
$database_ecards = "[COLOR=red]timds_ecards[/COLOR]";
$username_ecards = "[COLOR=red]timds_xxxx[/COLOR]";
$password_ecards = "[COLOR=red]xxxx[/COLOR]";
$ecards = mysql_[COLOR=red]c[/COLOR]onnect($hostname_ecards, $username_ecards, $password_ecards) or trigger_error(mysql_error(),E_USER_ERROR);
?>
while surfing site (when it comes to connect the database...) I get:
No database selected
I hope someone can halp me
tim d.s.