Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick Question

Status
Not open for further replies.

Mesk69

Programmer
Joined
Feb 6, 2003
Messages
12
Location
CA
I'm creating a news engine using a invision board.

I'm getting a problem that I'm not familiar with. I never used mysql before I'm use to PL/SQL.

This is the error I get:

SQL-query : [Edit]
SHOW FIELDS FROM `theguildwars_net`.`p` LIKE 'post'
MySQL said:
Table 'theguildwars_net.p' doesn't exist

This is my sql code:

SELECT t.tid,t.title,t.starter_id,t.starter_name,t.posts,t.forum_id,p.post_date,p.post,m.email
FROM ibf_topics t, ibf_posts p, ibf_members m
WHERE t.forum_id=8 AND p.topic_id=t.tid AND p.post_date=t.start_date and p.author_id = m.id and p.new_topic = 1
ORDER BY t.tid desc LIMIT 5

Thanks for taking the time to read and write

Mesk
 
Try using

SELECT fieldname from table where fieldname like '%post%';
 
It's not complaining about that SQL query. It's complaining about the [tt]SHOW FIELDS FROM `theguildwars_net`.`p` LIKE 'post'[/tt] query.

//Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top