Jump to content

ThaWorm

New Members
  • Posts

    3
  • Joined

  • Last visited

ThaWorm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I just got it thank you for the help I must have over looked this too many time.
  2. $sql = "SELECT entries.*, categories.cat FROM entriesm, categories WHERE entries.cat_id = categories.id ORDER BY dateposted DESC LIMIT 1;";
  3. I am working out of a book and I'm trying to run this code. $result = mysql_query($sql); $row = mysql_fetch_assoc($result); echo " . "'>" . $row['subject'] . " ?"; echo "In ."'>" . $row['cat'] . " - posted on " . date("D js F Y " , strtotime($row['dateposted'])) . ""; echo " "; echo nl2br($row['body']); echo " "; When I do I get this error Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Can anyone help me out here. Also thanks in advance.
×
×
  • Create New...