<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Tue, 08 Dec 2009 23:20:02 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Mysql LIMIT, OFFSET, ORDER BY?</title>
			<link>http://www.daniweb.com/forums/thread243186.html</link>
			<pubDate>Wed, 02 Dec 2009 23:22:45 GMT</pubDate>
			<description><![CDATA[Hi People 
 
I would like to get an sql statement that uses LIMIT and OFFSET and then sorts the results in ASC or DESC order through the user of ORDER BY, something like this: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi People<br />
<br />
I would like to get an sql statement that uses LIMIT and OFFSET and then sorts the results in ASC or DESC order through the user of ORDER BY, something like this:<br />
 <pre style="margin:20px; line-height:13px">SELECT * FROM table LIMIT 10 OFFSET 0 ORDER BY DESC</pre>Note: that does not work so any ideas? I tried shuffling around order by to avial.<br />
<br />
Thanks, Regards X</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OmniX</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread243186.html</guid>
		</item>
		<item>
			<title>Data Validation / Protection when inserting into MySQL/etc?</title>
			<link>http://www.daniweb.com/forums/thread238159.html</link>
			<pubDate>Thu, 12 Nov 2009 23:37:29 GMT</pubDate>
			<description>I would like to get everyones opinions on what processes should be used to validating and protecting the input into your storage medium aka MySQL. 
In particular listing possible php functions that hsould be run and maybe once we have a list we put them in order, from most to least important? 
...</description>
			<content:encoded><![CDATA[<div>I would like to get everyones opinions on what processes should be used to validating and protecting the input into your storage medium aka MySQL.<br />
In particular listing possible php functions that hsould be run and maybe once we have a list we put them in order, from most to least important?<br />
<br />
Note: they should be able to be encoded/decoded when retrieved also.<br />
<br />
htmlentities() - html_entity_decode()<br />
addslashes() - stripslashes()<br />
<br />
Got the ball rolling now up to you guys :D<br />
<br />
Thanks, Regards X</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OmniX</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238159.html</guid>
		</item>
		<item>
			<title>Possible to make a Dynamic Function/Method?</title>
			<link>http://www.daniweb.com/forums/thread238155.html</link>
			<pubDate>Thu, 12 Nov 2009 23:25:36 GMT</pubDate>
			<description><![CDATA[I was stuffing around and I was wondering if it was at all possible to make a function or method, dynamic at all? In what context? well I would like not to have the specify the elements required by the function so at any given day it can be more or less. Confused? so am I! HA 
 
Example: 
  <div...]]></description>
			<content:encoded><![CDATA[<div>I was stuffing around and I was wondering if it was at all possible to make a function or method, dynamic at all? In what context? well I would like not to have the specify the elements required by the function so at any given day it can be more or less. Confused? so am I! HA<br />
<br />
Example:<br />
 <pre style="margin:20px; line-height:13px">public function dynamic($x0, $x1, $x2, $x3, etc) {<br />
&nbsp;// blah blah blah<br />
}</pre><br />
so those $x, one, two, three, etc can be used without them actually being defined maybe i want to use $x0-100. This at all possible or some ideas how we could make it possible?<br />
<br />
Thanks, Regards X</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OmniX</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238155.html</guid>
		</item>
		<item>
			<title>Insert Statement not working?</title>
			<link>http://www.daniweb.com/forums/thread228013.html</link>
			<pubDate>Tue, 06 Oct 2009 10:37:43 GMT</pubDate>
			<description><![CDATA[I throw the exact same sql statement in phpmyadmin and it works but it does not work with mysql_query. 
 
Ideas? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>I throw the exact same sql statement in phpmyadmin and it works but it does not work with mysql_query.<br />
<br />
Ideas?<br />
<br />
 <pre style="margin:20px; line-height:13px">$a = &quot;INSERT INTO players (player_id, first_name, last_name, date_of_birth, email, mobile_number, emergency_number, mother_name, father_name, player_number, team_captain, ip_address) VALUES ('', '', '', '', '', '', '', '', '', '', '', '127.0.0.1')&quot;<br />
$q = mysql_query($a);</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OmniX</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228013.html</guid>
		</item>
		<item>
			<title>Connecting to a mysql database through a class</title>
			<link>http://www.daniweb.com/forums/thread227943.html</link>
			<pubDate>Tue, 06 Oct 2009 02:41:50 GMT</pubDate>
			<description><![CDATA[I have done this a million times before. 
I dont understand why this is not working through the use of a class. 
It is telling me that the variable is "undefined" hence contains a NULL value which is a load of *((^&$#. 
Anyways my code(sections of it) is below, any help much appreciated. 
 
private...]]></description>
			<content:encoded><![CDATA[<div>I have done this a million times before.<br />
I dont understand why this is not working through the use of a class.<br />
It is telling me that the variable is &quot;undefined&quot; hence contains a NULL value which is a load of *((^&amp;$#.<br />
Anyways my code(sections of it) is below, any help much appreciated.<br />
 <pre style="margin:20px; line-height:13px">private con;<br />
$this-&gt;con = mysql_connect(server, name, pass);</pre><br />
Obviously the initialization statement is in a method which is called via the constructor. Now something is wrong when it plan as day that con is being given a value, I dont understand why it saying it is not. Anyways any idea where to look and how to fix much appreciated.<br />
<br />
Thanks, Regards X</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OmniX</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227943.html</guid>
		</item>
		<item>
			<title>How to create an excel spreadsheet?</title>
			<link>http://www.daniweb.com/forums/thread223937.html</link>
			<pubDate>Fri, 18 Sep 2009 05:14:02 GMT</pubDate>
			<description>We have all wanted data to be transfered to excel at one stage or another. I would like to know how people have done it and come to a general consensis on how it should be done. I usually use fopen or simple echo statement and declaring it as .xls or .csv when required. I have found a new error...</description>
			<content:encoded><![CDATA[<div>We have all wanted data to be transfered to excel at one stage or another. I would like to know how people have done it and come to a general consensis on how it should be done. I usually use fopen or simple echo statement and declaring it as .xls or .csv when required. I have found a new error which brings up a NON EXCEL format and a SYLK error (due to me using sessions in the same file I am downloading, which I dont know why it matters). But if I wish to remove both errors as it does not look professional. Also I would like to know the offical content type for both excel formats (.xls and .xlsx). Add your comments and self code so we can get a general consensis!!!<br />
<br />
My code:<br />
 <pre style="margin:20px; line-height:13px"> session_start();<br />
&nbsp;$filename = &quot;test.xls&quot;;<br />
&nbsp;$ABC = $_SESSION&#91;'A'&#93;; // Yes a valid session from previous page&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;$line_1 = &quot;A&quot; . &quot;\t&quot; . &quot;B&quot; . &quot;\t&quot; . &quot;C&quot;;<br />
&nbsp;$line_2 = &quot;1&quot; . &quot;\t&quot; . &quot;2&quot; . &quot;\t&quot; . &quot;3&quot;;<br />
&nbsp;$line_3 = &quot;HELLO &quot; . $ABC;<br />
&nbsp;$data = $line_1 . &quot;\n&quot; . $line_2 . &quot;\n&quot; . $line_3;<br />
&nbsp;session_destroy();&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;// What I find a mystery is what is the OFFICAL content type for excel?<br />
&nbsp;header(&quot;Content-Type: application/x-msexcel&quot;);<br />
&nbsp;header(&quot;Content-Disposition: attachment; filename=&quot; . $filename);<br />
&nbsp;echo $data;</pre><br />
Regards, X</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum17.html">PHP</category>
			<dc:creator>OmniX</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223937.html</guid>
		</item>
	</channel>
</rss>
