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>

Recommended Answers

All 4 Replies

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

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 : ()

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

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 :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.