Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Everything posted by PatrickG19872019

  1. I'm sorry I don't understand what you mean. Can you please explain this in more detail. This is from a website that shows your how to create a blog from scratch so i don't have any actual experience with php and don't know how to connect properly.
  2. Hello, I am trying to get this website working but i get an error saying invalid data source name. I am fairly certain the error is from one of these 2 files. db_connection.php <?php function OpenCon() { $dbhost = "localhost"; $dbuser = "root"; $dbpass = "123"; $db = "db"; $conn = new mysqli($dbhost, $dbuser, $dbpass,$db) or die("Connect failed: %s\n". $conn -> error); return $conn; } function CloseCon($conn) { $conn -> close(); } ?> and the other file index.php /* // <? /* php require('includes/db_connection.php'); */ ?> */ <? php i
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.