Jump to content

iAaron

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

iAaron's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. http://coarsefishingforums.co.uk/ I still have a bit of content to write, but the whole design & all the features are up and running. Just looking for some feedback on what you would improve or add. Thanks!
  2. Anyone have any idea why I am getting this error... Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/coarsefi/public_html/bread.php on line 56 <?php $mems = "SELECT image FROM bait WHERE name = bread"; $mems = mysql_query($mems); $cnt = mysql_num_rows($mems); for ($i = 0; $i < $cnt && $rows = mysql_fetch_assoc($mems); $i++) { echo '<img border="0" scr="$rows['image']'.'">'.'<br/>'; } ?> Thanks...
  3. I tried that but I get another error. Warning: mysql_query() [function.mysql-query]: Access denied for user: 'nobody@localhost' (Using password: NO) in /home/coarsefi/public_html/index.php on line 60 ???
  4. Ok, this is what I have. <?php $q = mysql_query("SELECT user_id, username FROM phpbb_users WHERE user_active = 0") or die(mysql_query()); echo "<b>Online Users</b>\n<br />"; while($are = mysql_fetch_assoc($q)) { echo "<a href=\"profile.php?user=$are['user_id']\">$are['username']</a>"; } ?> This is the error I am getting : Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/coarsefi/public_html/index.php on line 64 Any ideas what I'm doing wrong? This is the 2nd Time I've used PHP, so yeah... http://www.coarsefishingforums.co.uk/index.php (That is where I am hosting it)
  5. I have a SQL Database which holds information on the people who are online on my forum. On one of my webpages I want to display a query showing which users are online. How would I use PHP to display the results of this query? Thanks for any help.
×
×
  • 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.