![]() |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
In most programming languages, when you want to add in the value of variable within a string of text, it must be concatenated with it, and not just within a string literal (everything inside the quotation marks) in order to be recognized. PHP picks up on the usage of variables inside of literals though, but I still like to use the concatenation operator. It's just a preference thing, really. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Thank you, all of you for all of your help!
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
sry got another question, Will this work?( all of the second ones are the code ex. <-- !--> is " ! ")
$write = str_replace("!", "!", $write); $write = str_replace("$", "$", $write); $write = str_replace("&", "&", $write); $write = str_replace("'", "'", $write); $write = str_replace("(", "(", $write); $write = str_replace(")", ")", $write); $write = str_replace(",", ",", $write); $write = str_replace(";", ";", $write); $write = str_replace("?", "?", $write); $write = str_replace("^", "^", $write); And will two words work in a PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
Example: $bad_words = array('guy', 'dog', 'cat'); $good_words = array('male', 'canine', 'feline'); $write = str_replace($good_words, $bad_words, $write); |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
PHP Code:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
oh shoooooooooooot, all the str_replace s are case sensitive!!!!!!!!!!!!!!!!!!
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
Same thing as str_replace, but case insensitive. |
Re: php/forms/posting/I NEED HELP!!!!!!!!!
Quote:
|
Re: php/forms/posting/I NEED HELP!!!!!!!!!
ok so it works great, but now theres like 25 quotes. I want to make a second page so you dont have to scroll forever to get to the bottom. Do i have to make a new database or can i use the same one?
|
| All times are GMT -5. The time now is 22:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi