Jump to content

Fatal error:


george

Recommended Posts

Can't use function return value in write context in C:\www\www.cancerproject.org\htdocs\AdminCMS\SaveEditEvent.php on line 33 Ok, so how can I find if a substring exists within a string, so I can get along with my life? Here is line 33

	if ((strpos($MyKey,'EDCancel')=1) AND ($item=='true')) { ... blah ... }

I'm not sure what makes this a write context. But how do I correct it?I just want to see if "EDCancel" exists in $MyKey, and begins the string. I am using this within an array_walk using POSTed values. TIA

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...