<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by flisterz</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Thu, 03 Dec 2026 10:39:36 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>MySQL two table</title>
            <link>http://forum.lowyat.net/topic/895185</link>
            <description>Okay lets say i have two tables with columns as follows&lt;br /&gt;&lt;br /&gt;user&lt;br /&gt;-userid&lt;br /&gt;-name&lt;br /&gt;-date&lt;br /&gt;&lt;br /&gt;stuff&lt;br /&gt;-stuffid&lt;br /&gt;-thing&lt;br /&gt;-user&lt;br /&gt;-date&lt;br /&gt;&lt;br /&gt;i want to view somekind of timeline of activities, order by date.&lt;br /&gt;activities when user register an account, and user posted stuff, will be shown in one timeline.&lt;br /&gt;something like &lt;a href='http://yayeveryday.com/activity' target='_blank'&gt;http://yayeveryday.com/activity&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;what kind of mysql query should i use to achieve that? Join? Union? &lt;br /&gt;I read some examples but still can&amp;#39;t get it working.&lt;br /&gt;&lt;br /&gt;hope you can give some hints or examples. &lt;br /&gt;&lt;br /&gt;Thanks in advance &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>flisterz</author>
            <category>Codemasters</category>
            <pubDate>Sat, 03 Jan 2009 17:46:58 +0800</pubDate>
        </item>
        <item>
            <title>Better PHP writing</title>
            <link>http://forum.lowyat.net/topic/891625</link>
            <description>Just  want to ask a simple question. &lt;br /&gt;&lt;br /&gt;(a)&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;?php&lt;br /&gt;  include &amp;#39;header.php&amp;#39;;  &lt;br /&gt;	echo &amp;#39;&lt;br /&gt;  &amp;#60;div class=&amp;#34;object&amp;#34;&amp;#62; &lt;br /&gt;  	&amp;#60;a href=&amp;#34;&amp;#39;.&amp;#036;id.&amp;#39;.php&amp;#34;&amp;#62;&amp;#60;img src=&amp;#34;&amp;#39;.&amp;#036;imgsrc.&amp;#39;&amp;#34;&amp;#62;&amp;#60;/a&amp;#62;&lt;br /&gt;  &amp;#60;/div&amp;#62;&lt;br /&gt;  &amp;#60;a class=&amp;#34;fright&amp;#34; href=&amp;#34;page.php?stuff=&amp;#39;.&amp;#036;stuff.&amp;#39;&amp;#34;&amp;#62;stuff&amp;amp;rarr;&amp;#60;/a&amp;#62;&amp;#39;;&lt;br /&gt;	include &amp;#39;footer.php&amp;#39;;&lt;br /&gt;?&amp;#62;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;( b)&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;?php include &amp;#39;header.php&amp;#39;; ?&amp;#62;  &lt;br /&gt;  &amp;#60;div class=&amp;#34;object&amp;#34;&amp;#62; &lt;br /&gt;  	&amp;#60;a href=&amp;#34;&amp;#60;?php echo &amp;#036;id; ?&amp;#62;.php&amp;#34;&amp;#62;&amp;#60;img src=&amp;#34;&amp;#60;?php echo &amp;#036;imgsrc; ?&amp;#62;&amp;#34;&amp;#62;&amp;#60;/a&amp;#62;&lt;br /&gt;  &amp;#60;/div&amp;#62;&lt;br /&gt;  &amp;#60;a class=&amp;#34;fright&amp;#34; href=&amp;#34;page.php?stuff=&amp;#60;?php echo &amp;#036;stuff; ?&amp;#62;&amp;#34;&amp;#62;stuff&amp;amp;rarr;&amp;#60;/a&amp;#62;&lt;br /&gt;&amp;#60;?php include &amp;#39;footer.php&amp;#39;; ?&amp;#62;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Between (a) and (b), the difference is how the PHP is written. I don&amp;#39;t know the exact term for this, but in (a), we only open and close the tag once while in (b) we open/close the php tags several times, around the code. ( I wish this thing has syntax highlighter)&lt;br /&gt;&lt;br /&gt;*the code snippets are just some random example. assume all variables has been defined earlier*&lt;br /&gt;&lt;br /&gt;Which one is the most preferable? and why? Both work just fine, but maybe you guys have your own reasoning, in term of performance or whatsoever. &lt;br /&gt;Thanks &lt;!--emo&amp;:)--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>flisterz</author>
            <category>Codemasters</category>
            <pubDate>Wed, 31 Dec 2008 08:28:47 +0800</pubDate>
        </item>
        <item>
            <title>PHP: Nice URL</title>
            <link>http://forum.lowyat.net/topic/887007</link>
            <description>Hello everyone&lt;br /&gt;&lt;br /&gt;I&amp;#39;m working on a simple web app (just experimenting btw) using pure PHP and MySQL and so far its looking good. I have few questions though.&lt;br /&gt;&lt;br /&gt;Let say I have some pages to fetch some data from database with URLs like these&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;localhost/stuff.php?id=123 &lt;br /&gt;localhot/user.php?name=saya&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;how can I use PHP to make those URLs into something nicer, like this&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;localhost/stuff/123 &lt;br /&gt;localhost/user/saya OR localhost/saya&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;All my files (CSS, php etc etc) are in one folder (except images). I know its a bad practice to do that, will work on that later&lt;br /&gt;&lt;br /&gt;So far I&amp;#39;m using .htaccess to do it, but its not that flexible. (is it?)&lt;br /&gt;&lt;br /&gt;Any tips from the experts?&lt;br /&gt;&lt;br /&gt;I&amp;#39;m kinda new with developing a real web app, so maybe don&amp;#39;t know all the functions  that are needed to do certain stuff, yet.&lt;br /&gt;if any of you can just point me to the right functions, it is good enough.&lt;br /&gt;Thanks &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>flisterz</author>
            <category>Codemasters</category>
            <pubDate>Fri, 26 Dec 2008 11:23:20 +0800</pubDate>
        </item>
    </channel>
</rss>
