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
The "Like" operator simply return everything that is similar to the parameter provided.
E.g.
= "hello" returns only records that matches "hello" exactly
like 'he' returns, everything that matches - e.g. hello, her, head, etc. etc. etc.
OHHH THIS IS MY 100th POST WOOOHHOOOO lol just thought i would mention
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
It seems that we have been getting alot more programming savvy people here mainly php/SQl
Edit: Would anyone like to take on a big project?
Submit your threads
Music Forum
My Web Entrepreneur Blog
VolumeBoost - Member Chosen Music News
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
Do you think you could take on a big project like this?
We are also looking for another admin if you are interested
Submit your threads
Music Forum
My Web Entrepreneur Blog
VolumeBoost - Member Chosen Music News
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