<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by teafortwo</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sun, 01 Nov 2026 17:47:20 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>checkbox button not working properly</title>
            <link>http://forum.lowyat.net/topic/3404203</link>
            <description>I&amp;#39;m trying to use checkbox to choose multiple data and submit(button &amp;#39;Send SMS&amp;#39;) them and direct them to another page, which will send text SMS to the numbers chosen. But when I try to click on one checkbox, it automatically directs me to the next page, without having to click on the &amp;#39;Send SMS&amp;#39; button. I tried to see which part is the problem, but I can&amp;#39;t determine which one is wrong. &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&amp;#60;script type=&amp;#34;text/javascript&amp;#34;&amp;#62;&lt;br /&gt;function checkedAll &amp;#40;frm1&amp;#41; {var aa= document.getElementById&amp;#40;&amp;#39;frm1&amp;#39;&amp;#41;; if &amp;#40;checked == false&amp;#41;&lt;br /&gt;{&lt;br /&gt;checked = true&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;checked = false&lt;br /&gt;}for &amp;#40;var i =0; i &amp;#60; aa.elements.length; i++&amp;#41;{ aa.elements&amp;#91;i&amp;#93;.checked = checked;}&lt;br /&gt;}&lt;br /&gt;&amp;#60;/script&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#60;TABLE width=&amp;#34;1106&amp;#34; border=&amp;#34;1&amp;#34; align=&amp;#34;center&amp;#34; cellpadding=&amp;#34;5&amp;#34; cellspacing=&amp;#34;2&amp;#34; &amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;tr&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;td colspan=&amp;#34;9&amp;#34;&amp;#62; &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;form id =&amp;#34;frm1&amp;#34; action=&amp;#34;sms_latecomers.php&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;input type=&amp;#39;checkbox&amp;#39; name=&amp;#39;checkall&amp;#39; onclick=&amp;#39;checkedAll&amp;#40;frm1&amp;#41;;&amp;#39; value=&amp;#34;&amp;#34;&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;input type=&amp;#34;submit&amp;#34; name=&amp;#34;Submit&amp;#34; id=&amp;#34;button&amp;#34; value=&amp;#34;SMS Reminder&amp;#34; style=&amp;#34;background&amp;#58;#FFCC33&amp;#34;/&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp;&amp;#60;/td&amp;#62;&lt;br /&gt; &amp;nbsp;&amp;#60;/tr&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TR bgcolor=&amp;#34;#996699&amp;#34;&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#60;?php &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#036;count=0;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;?&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TH width=&amp;#34;32&amp;#34;&amp;#62;&amp;#60;/TH&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TH width=&amp;#34;37&amp;#34;&amp;#62; &amp;#60;span class=&amp;#34;style1&amp;#34;&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;div align=&amp;#34;center&amp;#34;&amp;#62;No. &amp;#60;/div&amp;#62;&amp;#60;/span&amp;#62;&amp;#60;/TH&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;th width=&amp;#34;101&amp;#34;&amp;#62;&amp;#60;span class=&amp;#34;style1&amp;#34;&amp;#62;SUPERVISOR ID&amp;#60;/span&amp;#62;&amp;#60;/th&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;th width=&amp;#34;101&amp;#34;&amp;#62;&amp;#60;span class=&amp;#34;style1&amp;#34;&amp;#62;EMPLOYEE ID&amp;#60;/span&amp;#62;&amp;#60;/th&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;th width=&amp;#34;153&amp;#34;&amp;#62;&amp;#60;span class=&amp;#34;style1&amp;#34;&amp;#62;EMPLOYEE NAME&amp;#60;/span&amp;#62;&amp;#60;/th&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;th width=&amp;#34;124&amp;#34;&amp;#62;&amp;#60;span class=&amp;#34;style1&amp;#34;&amp;#62;DATE&amp;#60;/span&amp;#62;&amp;#60;/th&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;th width=&amp;#34;153&amp;#34;&amp;#62;&amp;#60;span class=&amp;#34;style1&amp;#34;&amp;#62;LATE CHECK IN&amp;#60;/span&amp;#62;&amp;#60;/th&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;/TR&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;?php &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;while&amp;#40;&amp;#036;row = mysql_fetch_array&amp;#40;&amp;#036;result, MYSQL_ASSOC&amp;#41;&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;?&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TR&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD&amp;#62;&amp;#60;input type=&amp;#34;checkbox&amp;#34; name=&amp;#34;chk1&amp;#34; value=&amp;#34;&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;supervisor_telno&amp;#39;&amp;#93;; ?&amp;#62;&amp;#34; onClick=&amp;#34;window.open&amp;#40;&amp;#39;sms_latecomers.php?employee_id=&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;employee_id&amp;#39;&amp;#93;; &amp;nbsp;?&amp;#62;&amp;amp;supervisor_telno=&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;supervisor_telno&amp;#39;&amp;#93;; ?&amp;#62;&amp;#39;&amp;#41;;&amp;#34;&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD height=&amp;#34;66&amp;#34;&amp;#62;[bad html removed]&amp;#60;input type=&amp;#34;checkbox&amp;#34; name=&amp;#34;chk1&amp;#34; &amp;#62;--&amp;#62; &amp;#60;?php &amp;#036;count=&amp;#036;count+1; print&amp;#40;&amp;#036;count&amp;#41;;?&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD&amp;#62;&amp;#60;div align=&amp;#34;center&amp;#34;&amp;#62;&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;supervisor_id&amp;#39;&amp;#93;; ?&amp;#62;&amp;#60;/div&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD&amp;#62;&amp;#60;div align=&amp;#34;center&amp;#34;&amp;#62;&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;employee_id&amp;#39;&amp;#93;; ?&amp;#62;&amp;#60;/div&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD&amp;#62;&amp;#60;div align=&amp;#34;center&amp;#34;&amp;#62;&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;employee_name&amp;#39;&amp;#93;; ?&amp;#62;&amp;#60;/div&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD&amp;#62;&amp;#60;div align=&amp;#34;center&amp;#34;&amp;#62;&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;DATE&amp;#39;&amp;#93;; ?&amp;#62;&amp;#60;/div&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;TD&amp;#62;&amp;#60;div align=&amp;#34;center&amp;#34;&amp;#62;&amp;#60;?php echo &amp;#036;row&amp;#91;&amp;#39;TIME&amp;#39;&amp;#93;; ?&amp;#62;&amp;#60;/div&amp;#62;&amp;#60;/TD&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;/TR&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#60;?php &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;?&amp;#62;[bad html removed]&amp;#60;/form&amp;#62;--&amp;#62;&lt;br /&gt; &amp;nbsp; &amp;nbsp;&amp;#60;/TABLE&amp;#62;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Please help. Thank you in advance. &lt;!--emo&amp;:D--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>teafortwo</author>
            <category>Codemasters</category>
            <pubDate>Sun, 09 Nov 2014 00:49:40 +0800</pubDate>
        </item>
        <item>
            <title>Failed to import data into database from .csv file</title>
            <link>http://forum.lowyat.net/topic/3399897</link>
            <description>Hello. I am using this PHP script from the tutorial online to import data in a table from .csv(Microsoft Excel 2007) format file into database (MySQL) using phpmyadmin. The data I&amp;#39;m trying to import is in datetime format. &lt;br /&gt;The fields are datetime_in and datetime_out and the format in database is (YYYY-MM-DD HH:MM:SS)&lt;br /&gt;&lt;br /&gt;In the .csv file I have changed the cell format to (yyyy/mm/dd hh:mm:ss) but after uploading the file, I checked my database and the data for datetime_in works fine but on the second field (datetime_out) the data stored was &amp;quot;0000:00:00 00:00:00&amp;quot;. &lt;br /&gt;Can anyone please tell me what should I do to correct this? Thank you in advance.</description>
            <author>teafortwo</author>
            <category>Codemasters</category>
            <pubDate>Wed, 05 Nov 2014 01:37:57 +0800</pubDate>
        </item>
        <item>
            <title>help in sql</title>
            <link>http://forum.lowyat.net/topic/3385930</link>
            <description>I am doing an late-to-work attendance system. So I have displayed the attendance details with the employee id(FK in table attendance, PK in table employee) and also the supervisor id(FK in table attendance and employee, PK in table supervisor) who supervised the employee using JOIN because I need to display the employee&amp;#39;s name (from the table employee) as well. &lt;br /&gt;The output looks like this:&lt;br /&gt;&lt;br /&gt;&lt;img src='http://i1070.photobucket.com/albums/u482/teafortwo29/S_zpsf9c3856d.png' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;And then there&amp;#39;ll be a button that user needs to click which will link to the next page, which is to send the attendance report SMS to the supervisor.&lt;br /&gt;I&amp;#39;m trying to JOIN three tables that displays &lt;br /&gt;               - the name of the supervisor (from table supervisor)&lt;br /&gt;               - supervisor phone number (from table supervisor)&lt;br /&gt;               - name of the employee. (from table employee)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is the query that I have made but it only displays the first employee name (Max) even when I clicked on SEND SMS for Jane. &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;if &amp;#40;isset&amp;#40;&amp;#036;_GET&amp;#91;&amp;#39;supervisor_id&amp;#39;&amp;#93;&amp;#41;&amp;#41; &lt;br /&gt; &amp;nbsp;	&amp;#036;supervisor_id = &amp;#036;_GET&amp;#91;&amp;#39;supervisor_id&amp;#39;&amp;#93;;&lt;br /&gt; &amp;nbsp;	else&lt;br /&gt; &amp;nbsp;	&amp;#036;supervisor_id=0;&lt;br /&gt; &amp;nbsp;	include &amp;#39;dbconnect.php&amp;#39;;&lt;br /&gt; &amp;nbsp;	&lt;br /&gt; &amp;nbsp;	&amp;#036;query = &amp;#34;SELECT s.supervisor_name, e.supervisor_id, s.supervisor_telno, e.employee_name &lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;FROM supervisor s&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; JOIN employee e, attendance a&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE a.supervisor_id=e.supervisor_id=s.supervisor_id=&amp;#39;&amp;#34;.&amp;#036;supervisor_id.&amp;#34;&amp;#39; &amp;#34;&amp;#59;&lt;br /&gt; &amp;nbsp;	&amp;#036;result = mysql_query&amp;#40;&amp;#036;query&amp;#41; or die&amp;#40;&amp;#39;SQL ERROR 2&amp;#39;&amp;#41;;&lt;br /&gt; &amp;nbsp;	&amp;#036;row=mysql_fetch_array&amp;#40;&amp;#036;result, MYSQL_ASSOC&amp;#41;;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;and this is how I display the employee name&lt;br /&gt;&amp;lt;textarea&amp;gt;[&amp;lt;?php echo &amp;#036;row[&amp;#39;employee_name&amp;#39;]?&amp;gt;]  &amp;lt;/textarea&amp;gt;</description>
            <author>teafortwo</author>
            <category>Codemasters</category>
            <pubDate>Wed, 22 Oct 2014 01:44:01 +0800</pubDate>
        </item>
        <item>
            <title>sql to display latecomers</title>
            <link>http://forum.lowyat.net/topic/3381003</link>
            <description>Hi, may I know how do I display the list of staffs who did not check out after work? For example the datetime_in at 8am and the supposed datetime_out that staffs should check out is at 6pm but the staff forgot to check out. is  I use 2 columns for the attendance record, which is datetime_in and datetime_out.</description>
            <author>teafortwo</author>
            <category>Codemasters</category>
            <pubDate>Fri, 17 Oct 2014 00:20:55 +0800</pubDate>
        </item>
        <item>
            <title>isms sms sending from pc help</title>
            <link>http://forum.lowyat.net/topic/3375157</link>
            <description>Hi guys. I am planning to use isms.com.my to send sms from pc. May I know does anyone here have used isms before? Could u guys teach me the way to do it? I&amp;#39;m getting errors and I&amp;#39;m not sure how to correct them TT</description>
            <author>teafortwo</author>
            <category>Codemasters</category>
            <pubDate>Sat, 11 Oct 2014 01:49:12 +0800</pubDate>
        </item>
        <item>
            <title>Software for Linux</title>
            <link>http://forum.lowyat.net/topic/2137715</link>
            <description>Hi, I&amp;#39;m new here. &lt;br /&gt;I have made Ubuntu in VMWare workstation in my laptop and I have to download software for Linux. So far I only have Chrome downloaded but I dunno what else that can be used for Linux. I&amp;#39;m new in this so I don&amp;#39;t really get the process and all.&lt;br /&gt;Can anyone give me some ideas? thanks.</description>
            <author>teafortwo</author>
            <category>Linux &amp;amp; Open Source Software</category>
            <pubDate>Tue, 06 Dec 2011 14:50:56 +0800</pubDate>
        </item>
    </channel>
</rss>
