:eek:
<?php function car($carro){ if($carro = golf){ echo "Its a VW Golf"; }else{ echo "**** off"; } } echo car(uno); ?>
and then I get this... [ATTACH]4603[/ATTACH]
1) Strings are supposed to be in quotes (e.g. [font=monospace]"golf"[/font] not [font=monospace]golf[/font]). 2) You're using the assignment operator = instead of the equality comparison operator ==.
but why am I getting these errors in 'orange' tables? Wamp config?
Xdebug. Marvellous thing.