scope - PHP IF ELSE issue, can not get correct answers -


I wrote a PHP function to get the weekend, this " $ data ['project'] "

It's not empty, but it's $ end = date ("ymd", strtotime ('next Sunday')); function weekendignSet (if {empty ($ data ['project'])) {$ end = $ data ['project'] [0] - & gt; Week_and_day; } And (if (($ _GET ['week_ending'])) {$ end = $ _GET ['week_ending'];} and {$ end = date ("Wi-M-D", strotome ('next What is the error? Thank you

You have to go through the $ data to work, it will check if () otherwise try if you are always in the second position

  function weekendignSet ($ data) { 

when calling: -

  weekendignSet ($ data);  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -