Hello guys!
I am having a big problem trying to connect to MySQL server on my own computer from another location.However I can successfully connect to my DB from computers from my local network.
Could you please test if you can connect to my MySQL server from your location with the following php script:
Code:<?php $con=mysqli_connect("goikman.com","remoteuser","123456","goikman"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $articles = mysqli_query($con,"SELECT * FROM allnews where category='sports' ORDER BY num DESC"); while($article = mysqli_fetch_array($articles)) { echo $article['headline']."<br/>"; } ?>


Reply With Quote





