TheFilmGod Posted September 16, 2007 Share Posted September 16, 2007 <?php if (preg_match("1", "$code")) { $one = "Aluminum Foil,"; } ?> What's wrong with this? I get this: Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in /home/content/i/n/t/internetknight/html/2010/wall_view.php on line 153 Quote Link to comment Share on other sites More sharing options...
rarebit Posted September 16, 2007 Share Posted September 16, 2007 '/' is used to define a boundry, see: http://uk3.php.net/manual/en/function.preg-match.php therefore: <?php if (preg_match("/1/", "$code")) { $one = "Aluminum Foil,"; } ?> Should work... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.