ButtLord420
Please delete my devbest account.
- Dec 11, 2010
- 463
- 32
REMOVED.
Last edited:
$postTitle = "Reply: Hello World";
if (strpos($postTitle, 'reply') !== false) {
// Do something if reply is in string.
}
In this case it woulden't matter if the person changed the title, but the other data in their it might... Do you have skype?But if you're going to learn MySQL anyway start at a point where you don't use old functions.
You should NEVER rely on string data. I could change the hidden field anyway I wan't and submit it (even with malicious code, which MySQL can't escape - read about XSS). Therefore you should use IDs to get what topic/post it replies for.