Jump to content

HippoZoned

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by HippoZoned

  1. from what i see is you never got a result of your query. You just made the query but never asked for the result once you get the result you could write like 5 like this while($row = $result->fetch_array(MYSQLI_ASSOC)){ once that is done it should fix the problem but first you must get the result like so $result = mysql_query($query); or however you would need to grab the result of the query
  2. could there be a possible error in your query $query = yasDB_select("SELECT forumtopics.subjest,forumtopics.date,forumtopics.name,user.id,user.username,user.avatarfile.user.useavatar FROM forumtopics LEFT JOIN user ON forumtopic.name = user.username ORDER BY forumtopics.id DESC LIMIT 5"); the line i marked red and made bold the query looks off to me. I dont know if this was intentional but this seems like this is where the problem is.
  3. Yes you could make the form submit on the same page using action="<?php echo $_SERVER['PHP_SELF'];?>" To display values dynamically it would be best to use either Javascript or even Ajax.. Google it. Also to display and hide certain form elements you could use CSS combined with PHP to hide/show elements when certain conditions are met
×
×
  • 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.