-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
Well without seeing the function code we can't help much.
-
It is still there and what is error(); function.
-
CSS is for the design, tables are not intended for website designs, and should only really be used if they must be. JS = Javascript AJAX = asynchronous JavaScript and XML
-
The die function cannot be used like that , it can print on the screen but not use header in die, its like using header in echo.
-
A text based game isn't simple, and if you don't know how to code in any web langauges then you have a long way to before you will be able to make it. Try learning HTML,CSS,PHP,MYSQL, and maybe JS & AJAX.
-
http://uk.php.net/manual/ This website should be your number one website to check how to use all php functions. This is what is meant about headers. http://uk.php.net/manual/en/function.mail.php
-
Because if there is an error the code is stopped before the if statement $result = mysql_query($sql) or die (mysql_error());
-
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
Lol, same, so count me out i have no more ideas :'( -
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
No.....! mine is simplest, he can edit it easily and doesn't need to know regex Or not, lol, just tested it. Regex is the best way unless you want a even more complex code. -
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
if you are just wanting to get the numbers in parenthesis's then my solution should work. -
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
Let's let edwardtilbury decide who is the winner So who's code are you going to use? -
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
Yes but he won't be using print_r, yours will get any numbers ? am i right, even ones not inside of parenthesis? To solve it he can do <?php $var = "This complete set include the following parts: (12345), (12346), (12347)"; $var = explode("(",$var); $arr = array(")",","); $var = str_replace($arr,"",$var); for($i = 1;$i < count($var);$i++) { echo $var[$i]."<br>"; } ?> -
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
So should explode. Unless it changes too much -
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
Can i ask how that is easier? -
by pressing the space key, you have to do it in the variable it's self or do you mean <?php fwrite($fh, " ".$Address."\n"); ?>
-
Needles in Haystack, no idea how to parse / break apart...
DeanWhitehouse replied to edwardtilbury's topic in PHP Coding Help
explode ?? http://uk.php.net/explode <?php $var = "This complete set include the following parts: (12345), (12346), (12347)"; $var = explode("(",$var); $var = str_replace(")","",$var); print_r($var); ?> -
<?php fwrite($fh, $Address."\n"); ?>
-
Did you google what i said? if you did then you would of known i wasn't Next time don't jump to conclusions just because you don't understand the terminology
-
are you joking? $tobestripped // guess what it should be maybe the variable that is to be stripped $stripped // again guess, if you don't what it is then go and learn php We are showing the means of doing it, not writing it for you.
-
Undefined index or variable means it isn't defined. <?php $var = "test"; echo $v;//will create an error Undefined variable: //or echo $_POST['test'];/*will create the error Undefined index: as will $rows['test']; when there is no row in the table called test*/ ?> <form method="post"> <input name="test1"> </form>
-
It will allow any tags that are in the array, but a warning i would not allow any tags that can have javascript elements, e.g. <a href="#" onClick="alert('you have been hacked');">Hacked</a> As this can really mess up your site.
-
cron jobs, google it
-
Yes i gathered that, saying? We will not help you write a code that will spam, abuse or send advertisements to people through IM clients.
-
Did you look at the link? <?php $arr = array( "<html>", "<body>", "</body>", "</html>" ); $var = strip_tags("<html><body><a href="#">example</a></body></html>",$arr); echo $var;//should output <html><body><a href="#">example</></body></html> ?>
-
\n i believe