Jump to content
Larry Ullman's Book Forums

Chapter 17 Script 17.4 - Forum.Php


Recommended Posts

Hi all,

 

Could you possibly help me with this issue?

 

I coded (first I type every script, then copy-and-pasted due to the error insisted) the script 17.4 - forum.php

 

Then I tested on the web browser. The error happed saying:'Unknown column " p.posted_on' in 'field list' "

 

I captured this error by using the error handler die("Error: ".mysqli_error($dbc)); right after the $r = mysqli_query($dbc, $q);

 

Note: I use the shared host at godaddy.com,
PHP version: 5.3.21

OS: Linux

domain: http://hiteachers.com/forum.php

 

posts_table.gif

 

I look foward to hearing from your help.

 

Regards,

 

Eric

Link to comment
Share on other sites

As the error says, you don't have a "posted_on" column. Yours is named "post_on".

 

Thanks for the quick reply. The error is addressed...

 

Eric

 

P/S: 'Four eyes are always better than two eyes, right?'

Link to comment
Share on other sites

Also, you posted this in the wrong forum (for the wrong book). AND DO NOT DOUBLE-POST!!!

 

Sorry, larry, but I had posted this before I could search for the another one. Then I went back to delete this post intentionally. However, i don't know how to delete it. I also went to 'My content' in my account, but i couldn't either. Maybe, it's the first time i used your forum.

 

 

Eric

Link to comment
Share on other sites

 Share

×
×
  • Create New...