Newbie Posted July 6, 2012 Posted July 6, 2012 Ok the link in the character info doesnt take you to your profile here is link <div style="float:left; width:24%"><b>Name:</b> <?php echo "<a href=\"view_profile.php?name=".$name."\" onFocus=\"if(this.blur)this.blur()\">".$name."</a>";?></div> i added <div style="float:left; width:24%"><b>Name:</b> <?php echo "<a href=\"files/view_profile.php?name=".$name."\" onFocus=\"if(this.blur)this.blur()\">".$name."</a>";?></div> then i got these errors Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'root'@'localhost' (using password: NO) in /home/crimelan/public_html/files/view_profile.php on line 2 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/crimelan/public_html/files/view_profile.php on line 2 Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in /home/crimelan/public_html/files/view_profile.php on line 3 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/crimelan/public_html/files/view_profile.php on line 3 Access denied for user 'root'@'localhost' (using password: NO) Quote
SilverStar Posted July 6, 2012 Posted July 6, 2012 You honestly can't figure out what these errors are telling you? Or are you just lazy? :rolleyes: Quote
Newbie Posted July 6, 2012 Author Posted July 6, 2012 You honestly can't figure out what these errors are telling you? Or are you just lazy? :rolleyes: its sumthing to do with the database connection anyways after i read your post i used google and i added a db connection into the file as i tried to include the connect file but didnt work it works now but its on a white background instead of being on the layout Quote
lucky3809 Posted July 7, 2012 Posted July 7, 2012 (edited) check your path to file. and also check path to include file in that file... you have view_profile.php in first post then files/view_profile.php in second. your include config or whatever page is included that connects to your database the path is not correct, in the file you have in the FILES directory. Edited July 7, 2012 by lucky3809 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.