Ive spent about 3 hours now troubleshooting this tutorial and every time I get a blank page on my local server with absolutely nothing on it.
an someone please help?
Here is my code for ini.inc.php
<?php session_start(); mysql_connect('localhost','root','mypass'); mysql_select_db('user_profile'); $path = dirname(__file__); include("{$path}/inc/user.inc.php"); $_SESSION['uid'] = 1; ?>and for profile.php
<?php include('core/init.inc.php'); $user_info = fetch_user_info($_GET['uid']); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <htm xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Member profile</title> </head> <body> <div> <?php if ($user_info === false){ echo 'That user does not exist.'; }else{ ?> <h1><?php echo $user_info['firstname']; ?><?php echo $user_info['lastname']; ?></h1> <p>Username:<?php echo $user_info['username']; ?> </p> <p>Gender:<?php echo $user_info['gender']; ?> </p> <p>Email: <?php echo $user_info['email']; ?></p> <p>Location: <?php echo $user_info['location']; ?></p> <p><?php echo $user_info['about']; ?></p> <?php } ?> </div> </body> </html>