db query problem

martian2k4martian2k4 Llama HunterModerator
hi i'm building a site for some one and at the moment and am building a tutorial section. I've got it displaying the title and the short description in a table and there''s a button and when it's clicked it posts the title of the tutorial they clicked on through to the next page where i have another query
[PHP]mysql_query("SELECT * FROM tuts WHERE title LIKE '$title'");[/PHP]
this works fine but if there is two titles in the database that are along the same lines as each other it will display them both.

How do i change it from getting rows that are like the title that was sent to the page into the title that was sent to the page. I was thinking it might be somthing like WHERE title = '$title' or sommat like that but i'm not sure ... can any one help
Free MySpace Layouts- Coming soon
Photoshop Tutorials- Coming soon
Premium PHP Scripts- Coming soon

Haha i should really do some work so i can remove all the coming soon's

Comments

Sign In or Register to comment.