I´m trying to connect to phpmyadmin (online)... I´ve set up database with table and some records
This is the connection I enter in the php-document
<?php
$dbhost = '213.181.111.140';
$dbuser = 'justme';
$dbpass = '1234';
$db = 'mysql_mydatabase';
$conn = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($db);
?>
ALL tutorials I´ve googled show this is the way but I always get this error
Parse error: syntax error, unexpected ')' in /home/blabla/public_html/blabla.php on line 8
...that or just standard Google page not found
What am I doing wrong?
mysql_select_db($db,$conn);
Ask to you hoster the url to access phpmyadmin. sometimes it is mysite.com/phpmyadmin mysite.com/mysql mysite.com/phpmyadmin
And don't share on forums your mysql account!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.