0

im having trouble understanding why this won't work. I'm extremely new to php
(my primary language is c++)

<html>
<body>
<?php
if(strpos($_GET['codev'], 'ddd') !==FALSE){ 
if(strlen($_GET['codev'] ==3)
{
	 echo "<p>Welcome</p>";
	}
	
	]
	?>


</body>
</html>

Edited by Anarionist: n/a

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by Anarionist
1

missing ) on line 5 and line 4, you need to close the if parentheses.

Edited by xylude: n/a

0

missing ) on line 5 and line 4, you need to close the if parentheses.

haha i can't believe i made that mistake thanks and sorry : ()

0

Also on line 10 you need to change to the } type bracket.

thanks i fixed it php has alot of c like syntax which is great also printf works exactly the way it does in c :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.