When I am trying to connect to local host, it is working fine. But once I am connecting to navicat address it's giving error. Please help me, i am not sure if i am missing anything
Local host working code:
<?php
//connect to mysql db
$con = mysqli_connect("localhost","root","","ros");
//connect to the service orders database
mysqli_select_db($con, "ros") or die('Could not connect: ' . mysql_error());
Not working code:
<?php
//connect to mysql db
{
$link = mysql_connect("50.98.141.10:3306","root","password","db_name");
or die('Could not connect: ' . mysql_error());
Error Coming as:
( ! ) Parse error: syntax error, unexpected 'or' (T_LOGICAL_OR) in C:\wamp64\www\dummy.php on line 5