Fenlig
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Fenlig
-
-
Hey guys, So here is my scripts: test.php
<?phpinclude 'connect.php';?>
connect.php
define("HOST", "localhost");define("USER", "guest");define("PASSWORD", "guest");define("DATABASE", "Minecraft");$mysqli = new mysqli (HOST, USER, PASSWORD, DATABASE);
But when I go and view the test.php in my browser it just prints all the code on the screen like this
define("HOST", "localhost"); define("USER", "guest"); define("PASSWORD", "guest"); define("DATABASE", "Minecraft"); $mysqli = new mysqli (HOST, USER, PASSWORD, DATABASE);
Im a newb to PHP can anyone see what I have done wrong?
-
Hey guys, Just was adding some content to my website this morning but a href link isnt working in chrome but it works in IE where all the other href's are working in both browsers. Check for your self www.fenlig.com The Href link that is giving me problems is the first one.
<!----1.3.1----><div class="skin"> <h2 class="time_stamp"> 10:14 1st of August 2012 </h2> <p class="text"> 1.3.1 is live, check the patch notes <a href="http://www.reddit.com/r/edstonehelper/comments/p6lol/planned_for_the_next_update/">here</a>. </p><hr> <!----Character Skin----> <h2 class="time_stamp"> 13:45 26th of July 2012 </h2> <p class="text"> Create your own minecraft skin at <a href="http://www.minershoes.com/">minershoes.com</a>, then go <a href="http://www.minecraft.net/profile">here</a> and upload it to your Minecraft profile. </p></div></body>
Kindest regards,Fenlig
Including my connect.php prints its contents rather than running them.
in PHP
Posted
I believe I found the Solution was was to add <?php to the connect.php. Thanks