Welcome Guest, Not a member yet? Register   Sign In
problem with a view
#1

[eluser]junaids[/eluser]
hi. i have a little problem with a if statement in my view. i want to echo "something" if user has not entered his full credentials.
Code:
&lt;?php if($Country==NULL)                                                                                      {echo "Your profile is incomplete. Please complete it"<a href="&lt;?= site_url('user/completeregister') ?&gt;">here!</a> ;} ?&gt;

i m getting an error on this line. if anyone can correct it for me.
#2

[eluser]Dam1an[/eluser]
I assume the error is because you have PHP within your PHP (you open another set of PHP tags in your echo statement)
Try
Code:
&lt;?php
if($Country==NULL) {
  echo 'Your profile is incomplete. Please complete it '.anchor('user/completeregister', 'here');
}
?&gt;
#3

[eluser]junaids[/eluser]
thanks dear.




Theme © iAndrew 2016 - Forum software by © MyBB