i got a script that display a clickable button if $funds is > $itemprice problem being i want the button to be clickable if $funds is = or > $itemprice but for some weird reason php is difficult and wont allow = & > to be used in the same line and ideas?
if ($funds >= $itemprice) {echo 'funds is greater than or equal to itemprice';}
Devinemike that brilliant worked a charm thanx
btw could you please explain why when i tryed it => it gave me an error message
its to help me learn php 😃
homer09001 wrote:could you please explain why when i tryed it => it gave me an error message
could you please explain why when i tryed it => it gave me an error message
beacuse => is incorrect syntax. take a closer look. compare my code to yours.