mysql - a little more help in this simple script about date() function in PHP -


क्यों यह काम नहीं करते? यह थोड़ी देर लूप में है:

  $ postdate = date ("j f", strtotime ($ row ['insert_date'])); अगर ($ postdate == तिथि ("जे एफ")) {$ postdate = "today"}; $ टेबल। = Bla bla bla "$ postdate";  

यह मेरे ब्राउज़र में 'if statement line' पर एक त्रुटि देता है ...

$ postdate अगर बयान से पहले 14 अक्टूबर की तरह कुछ है!

धन्यवाद

अर्धविराम को ब्रेसिज़ के अंदर होना चाहिए, जैसे:

  यदि ($ postdate == तिथि ("जे एफ")) {$ postdate = "today";}  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -