Welcome Guest, Not a member yet? Register   Sign In
how to mix html and php?
#1

<
I am trying to determine which of these buttons to display based on the num_projects. But the else doesn't seem to work.   
<php if ($this->dataStore("cost_center")->get(0,"num_projects")>0 ;?>
            <button type="button" class="btn btn-success"><i class="fa fa-star"></i>  1. Company</button>
        else
            <button type="button" class="btn btn-danger"><i class="fa fa-star"></i>  1. Company</button>
proof that an old dog can learn new tricks
Reply


Messages In This Thread
how to mix html and php? - by richb201 - 01-30-2022, 02:42 PM
RE: how to mix html and php? - by InsiteFX - 01-31-2022, 02:04 AM
RE: how to mix html and php? - by richb201 - 01-31-2022, 06:27 AM
RE: how to mix html and php? - by InsiteFX - 02-01-2022, 02:01 AM
RE: how to mix html and php? - by richb201 - 02-03-2022, 08:37 AM
RE: how to mix html and php? - by Acuru - 02-03-2022, 09:22 AM
RE: how to mix html and php? - by richb201 - 02-03-2022, 12:15 PM
RE: how to mix html and php? - by Acuru - 02-03-2022, 12:48 PM
RE: how to mix html and php? - by John_Betong - 02-03-2022, 04:10 PM
RE: how to mix html and php? - by InsiteFX - 02-04-2022, 01:52 AM
RE: how to mix html and php? - by Kerry Watson - 02-04-2022, 05:28 AM
RE: how to mix html and php? - by richb201 - 02-04-2022, 01:27 PM
RE: how to mix html and php? - by John_Betong - 02-04-2022, 04:08 PM
RE: how to mix html and php? - by InsiteFX - 02-05-2022, 03:08 AM
RE: how to mix html and php? - by John_Betong - 02-05-2022, 04:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB