Jump to content

Ashoar

Members
  • Posts

    214
  • Joined

  • Last visited

    Never

Everything posted by Ashoar

  1. Oh no it isnt. I thought it was a function from what i read. Is there another way of what i am trying to do?
  2. Here it is if (confirm_user($_SESSION['username'],$_SESSION['password']) ) { $online = "DELETE FROM online WHERE username = '".mysql_real_escape_string($_SESSION['username'])."';"; mysql_query($online); $online = "INSERT INTO online ( username, time ) VALUES ( '".mysql_real_escape_string($_SESSION['username'])."', '".time()."' );"; mysql_query($online); mysql_close($database_connection); }
  3. Is there another method to confirm a users session username and password? When i use "confirm_user()" i receive this error: "Fatal error: Call to undefined function confirm_user()" The line of code is: if (confirm_user($_SESSION['username'],$_SESSION['password']) ) { Thanks.
  4. Ah my bad. Thank you for pointing that out
  5. I am trying to get the Username from the current logged in user so that their name will be inserted into a database when making a post. I am using this bit of code to query the database and match the session username. $memberid="SELECT Username from Users WHERE Username = $_SESSION['Username']"; I get this error for that line above when i try to go to the php page containing it: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING What could be causing this?
  6. Oh ok. Thank you for the answer.
  7. Just a quick question. How could you add a new page to the end of a URL? For example i have this url: www.websitehere.com/board.php?forum_num=test Now i have a post.php page which allows a user to insert a post but when i try to add it as a link to the post page i get this url: www.websitehere.com/post.php So how could i add post.php to the end of the original URL so that it will go to post.php? Thanks
  8. Ah thank you for the comments Neil. I will look into that and possibly re-size the header.
  9. I would like to receive some critique on the design i recently completed for my forum. http://www.creative-design-forum.com Thank you.
  10. I would like some comments and critique on my freelance portfolio. I would like to first say that i have tried to have a simple design with an easy to navigation so that anyone can use it without any problems. www.asilentdivine.com Thank you.
  11. Sent you a pm with a link to a free host i added it to.
  12. Sorry i cannot provide that online. So is there no other method of making a post in only a certain board?
  13. It is on my computer, not online.
  14. Still displays posts in all boards instead of just the one it was posted in.
  15. Just replace all existing GET's to that? EDIT: Using that, the posts are again displayed on every board instead of just the one it was posted on.
  16. posts, contains that not forum_id
  17. I have it linked like so "<A href='board.php?id=$name[forum_id]'>$name[forum_name]" "$name[forum_id]" Ads the id number of the forum "$name[forum_name]" Name of the forum to be shown on the main page. Which then makes "board.php?id=" whatever number board is being viewed. So if you clicked on a board that was made 2nd the id would be "board.php?id=2"
  18. A number. board.php?id=WHAT Number id of the board they are inside. Which is "forum_id" from a database called forum which gold the forum_id, description and name.
  19. Whatever the id for the forum is. So i can't add in anything as i won't know what forum is being viewed, which is why i was using the $_GET to get the id from the url.
  20. $forumid = "HARD CODE THIS"; ?
  21. Same result again, but the forumid variable is "$forumid = $_GET['id'];" So it isn't in the test code.
  22. Fetched each test post i have made. I have 6 in the row forumid and here they are: This better work now. Ok almost got this working. Still not working Getting on my nerves Should work now this better work now
  23. I assumed it would be the easiest mysql row to use, which is why i asked earlier if it was the correct one. Now i get: "Unknown column 'yourpost' in 'field list'" I have no row called yourpost, the row for that is post, it is mediumtext. EDIT: i know that, that row have data because if i remove or the id stuff and don't try to fetch it with the id, all the posts show up, just they show up in all the forums as well as the one it was posted in.
  24. No errors with that this time. Problem now is that the posts still aren't showing on the boards.php page.
×
×
  • 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.