สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network
Moderator: mindphp, ผู้ดูแลกระดาน
-
thatsawan
- PHP VIP Members
- โพสต์: 28508
- ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
-
ติดต่อ:
โพสต์ที่ยังไม่ได้อ่าน
โดย thatsawan »
โค้ด: เลือกทั้งหมด
if ($row_data_block_1) {
$row = &$row_data_block_1[$topic_id];
$topic_time_1 = $user->format_date($row['topic_time']);
$topic_last_post_time_1 = $user->format_date($row['topic_last_post_time']);
$topic_last_view_time_1 = $user->format_date($row['topic_last_view_time']);
}
if ($row_data_block_2) {
$row = &$row_data_block_2[$topic_id];
$topic_time_2 = $user->format_date($row['topic_time']);
$topic_last_post_time_2 = $user->format_date($row['topic_last_post_time']);
$topic_last_view_time_2 = $user->format_date($row['topic_last_view_time']);
}
atal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character' in /opt/lampp/htdocs/phpbb5/phpbb/datetime.php:50 Stack trace: #0 /opt/lampp/htdocs/phpbb5/phpbb/datetime.php(50): DateTime->__construct('@', Object(DateTimeZone)) #1 /opt/lampp/htdocs/phpbb5/phpbb/user.php(720): phpbb\datetime->__construct(Object(phpbb\user), '@', Object(DateTimeZone)) #2 /opt/lampp/htdocs/phpbb5/ext/mdsoft/m_calendar_sort/event/listener.php(91): phpbb\user->format_date(NULL) #3 [internal function]: mdsoft\m_calendar_sort\event\listener->viewforum_get_topic_ids_data(Object(phpbb\event\data)) #4 /opt/lampp/htdocs/phpbb5/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164): call_user_func(Array, Object(phpbb\event\data)) #5 /opt/lampp/htdocs/phpbb5/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.view in /opt/lampp/htdocs/phpbb5/phpbb/datetime.php on line 50
-
thatsawan
- PHP VIP Members
- โพสต์: 28508
- ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
-
ติดต่อ:
โพสต์ที่ยังไม่ได้อ่าน
โดย thatsawan »
โค้ด: เลือกทั้งหมด
if ($row_data_block_2) {
$row = &$row_data_block_2[$topic_id];
echo $user->format_date($row['topic_time']);
// $this->template->assign_vars(array(
// 'S_SORT_ENABLE' =>$user->format_date($row_2['topic_time']),
// ));
//
}
อังคาร พ.ย. 17, 2015 11:30 am
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character' in /opt/lampp/htdocs/phpbb5/phpbb/datetime.php:50 Stack trace: #0 /opt/lampp/htdocs/phpbb5/phpbb/datetime.php(50): DateTime->__construct('@', Object(DateTimeZone)) #1 /opt/lampp/htdocs/phpbb5/phpbb/user.php(720): phpbb\datetime->__construct(Object(phpbb\user), '@', Object(DateTimeZone)) #2 /opt/lampp/htdocs/phpbb5/ext/mdsoft/m_calendar_sort/event/listener.php(87): phpbb\user->format_date(NULL) #3 [internal function]: mdsoft\m_calendar_sort\event\listener->viewforum_get_topic_ids_data(Object(phpbb\event\data)) #4 /opt/lampp/htdocs/phpbb5/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164): call_user_func(Array, Object(phpbb\event\data)) #5 /opt/lampp/htdocs/phpbb5/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.view in /opt/lampp/htdocs/phpbb5/phpbb/datetime.php on line 50
-
thatsawan
- PHP VIP Members
- โพสต์: 28508
- ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
-
ติดต่อ:
โพสต์ที่ยังไม่ได้อ่าน
โดย thatsawan »
แก้ไขโดย
โค้ด: เลือกทั้งหมด
'FIRST_POST_TIME' => $user->format_date((int)$row['topic_time']),
'LAST_POST_SUBJECT' => censor_text($row['topic_last_post_subject']),
'LAST_POST_TIME' => $user->format_date((int)$row['topic_last_post_time']),
'LAST_VIEW_TIME' => $user->format_date((int)$row['topic_last_view_time']),
-
-
- 0 ตอบกลับ
- 1875 แสดง
-
โพสต์ล่าสุด โดย bankjittapol
20/11/2019 6:55 pm
-
-
- 2 ตอบกลับ
- 1617 แสดง
-
โพสต์ล่าสุด โดย bankjittapol
20/11/2019 6:24 pm
สมาชิกกำลังดูบอร์ดนี้: Google Adsense [Bot] และบุคลทั่วไป 129