Jump to content
MakeWebGames

Recommended Posts

Posted

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)

Posted
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

Posted (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 by lucky3809

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...