<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Date isn't inserted in the database</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Date isn't inserted in the database</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database#p23577</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database#p23577</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>For a PHP wrapper, please post your questions here:</p>
<p><a href="http://www.trirand.net/forum/" rel="nofollow" target="_blank">http://www.trirand.net/forum/</a></p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 13 Jun 2011 23:15:32 +0300</pubDate>
        </item>
        <item>
        	<title>Ahmed on Date isn't inserted in the database</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database#p23576</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database#p23576</guid>
        	        	<description><![CDATA[<p>Nevermind, problem fixed.</p>
<p>I had to enter the date in the user date format</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit423' value='Select Code' data-codeid='sfcode423' /></p>
<div class='sfcode' id='sfcode423'>&#34;date_added&#34;=&#62;date(&#39;m/d/Y&#39;)</div>
]]></description>
        	        	<pubDate>Mon, 13 Jun 2011 21:01:21 +0300</pubDate>
        </item>
        <item>
        	<title>Ahmed on Date isn't inserted in the database</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database#p23575</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-isnt-inserted-in-the-database#p23575</guid>
        	        	<description><![CDATA[<p>Greetings Folks,</p>
<p>I have an issue with the insertion of a date field in the database, here is my grid.php</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5877' value='Select Code' data-codeid='sfcode5877' /></p>
<div class='sfcode' id='sfcode5877'>&#60;?php <br />&#160;<br />/** <br />&#160;* @author Ahmed Ossama <br />&#160;* @copyright 2011 <br />&#160;*/ <br />&#160;<br />session_start(); <br />&#160;<br />// require_once &#39;jq-config.php&#39;; <br />define(&#39;DB_DSN&#39;,&#39;mysql:host=localhost;dbname=videos&#39;); <br />define(&#39;DB_USER&#39;, &#39;ahmed&#39;); <br />define(&#39;DB_PASSWORD&#39;, &#39;P4ssW0rd&#39;); <br />&#160;<br />define(&#39;ABSPATH&#39;, dirname(__FILE__).&#39;/&#39;); <br />&#160;<br />// include the jqGrid Class <br />require_once ABSPATH.&#34;php/jqGrid.php&#34;; <br />&#160;<br />// include the driver class <br />require_once ABSPATH.&#34;php/jqGridPdo.php&#34;; <br />&#160;<br />// Connection to the server <br />$conn = new PDO(DB_DSN, DB_USER, DB_PASSWORD); <br />&#160;<br />// Tell the db that we use utf-8 <br />$conn-&#62;query(&#34;SET NAMES utf8&#34;); <br />&#160;<br />// Create the jqGrid instance <br />$grid = new jqGridEdit($conn); <br />&#160;<br />// enable debugging <br />// $grid-&#62;debug = true; <br />&#160;<br />// Write the SQL Query <br />$grid-&#62;SelectCommand = &#39;SELECT * FROM videos WHERE owner_id = ?&#39;; <br />&#160;<br />// set the user date format to m/d/Y <br />$grid-&#62;setUserDate(&#39;m/d/Y&#39;); <br />&#160;<br />// tell the grid which field is date <br />$grid-&#62;datearray = array(&#39;date_added&#39;); <br />&#160;<br />// Set the table to where you update the data <br />$grid-&#62;table = &#39;videos&#39;; <br />$grid-&#62;setPrimaryKeyId(&#39;id&#39;); <br />&#160;<br />// Set output format to json <br />$grid-&#62;dataType = &#39;json&#39;; <br />$user_id = $_SESSION[&#39;user_id&#39;]; <br />$data = $_POST; <br />&#160;<br />switch ($_POST[&#39;oper&#39;]) { <br />&#160; case &#34;add&#34;: <br />&#160;&#160;&#160; $data = array( <br />&#160;&#160;&#160;&#160;&#160; &#34;uniq_id&#34;=&#62;substr(md5(rand(99999, 9999999999)), 1, 9), &#160;<br />&#160;&#160;&#160;&#160;&#160; &#34;caption&#34;=&#62;$_POST[&#39;caption&#39;], &#160;<br />&#160;&#160;&#160;&#160;&#160; &#34;video_link&#34;=&#62;$_POST[&#39;video_link&#39;], &#160;<br />&#160;&#160;&#160;&#160;&#160; &#34;owner_id&#34;=&#62;$user_id, <br />&#160;&#160;&#160;&#160;&#160; &#34;date_added&#34;=&#62;date(&#39;Y-m-d&#39;) <br />&#160;&#160;&#160; ); <br />&#160;&#160;&#160; $grid-&#62;insert($data); <br />&#160;&#160;&#160; break; <br />&#160; case &#34;edit&#34;: <br />&#160;&#160;&#160; $grid-&#62;editGrid(); <br />&#160;&#160;&#160; break; <br />&#160; case &#34;del&#34;: <br />&#160;&#160;&#160; $grid-&#62;delete($data); <br />&#160;&#160;&#160; break; <br />&#160; default: <br />&#160;&#160;&#160; $grid-&#62;queryGrid(null, array($user_id)); <br />&#160;&#160;&#160; break; <br />} <br />&#160;<br />?&#62;</div>
<p>and here is my grid js</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit166' value='Select Code' data-codeid='sfcode166' /></p>
<div class='sfcode' id='sfcode166'>&#60;script type=&#39;text/javascript&#39;&#62;<br />&#160;&#160;&#160; jQuery(document).ready(function($) {<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;width&#34;:&#34;650&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;hoverrows&#34;:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;viewrecords&#34;:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;jsonReader&#34;:{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;repeatitems&#34;:false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;subgrid&#34;:{&#34;repeatitems&#34;:false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;xmlReader&#34;:{<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;repeatitems&#34;:false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;subgrid&#34;:{&#34;repeatitems&#34;:false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;gridview&#34;:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;url&#34;:&#34;libs/grid.php&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;editurl&#34;:&#34;libs/grid.php&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;cellurl&#34;:&#34;libs/grid.php&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;altRows&#34;:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;autowidth&#34;:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;caption&#34;:&#34;eBridge Training Videos [&#60;a href=\&#34;/logout.php\&#34; style=\&#34;color: red;\&#34;&#62;Logout&#60;/a&#62;]&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;colNames&#34;:[&#34;ID&#34;,&#34;Caption&#34;,&#34;Video&#34;,&#34;Date Added&#34;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;height&#34;:&#34;auto&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;rowNum&#34;:15,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;rowList&#34;:[15,25],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;sortname&#34;:&#34;date_added&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;sortorder&#34;:&#34;desc&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;datatype&#34;:&#34;json&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;colModel&#34;:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#34;name&#34;:&#34;uniq_id&#34;,&#34;index&#34;:&#34;uniq_id&#34;,&#34;sorttype&#34;:&#34;string&#34;,&#34;editoptions&#34;:{&#34;readonly&#34;:true},&#34;editable&#34;:false,&#34;align&#34;:&#34;center&#34;,&#34;width&#34;:20},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#34;name&#34;:&#34;caption&#34;,&#34;index&#34;:&#34;caption&#34;,&#34;sorttype&#34;:&#34;string&#34;,&#34;editable&#34;:true,&#34;editrules&#34;:{&#34;required&#34;:true,&#34;edithidden&#34;:true},&#34;edittype&#34;:&#34;text&#34;,&#34;editoptions&#34;:{&#34;width&#34;:600,&#34;maxlength&#34;:255}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#34;name&#34;:&#34;video_link&#34;,&#34;index&#34;:&#34;video_link&#34;,&#34;sorttype&#34;:&#34;blob&#34;,&#34;hidden&#34;:true,&#34;editable&#34;:true,&#34;editrules&#34;:{&#34;required&#34;:true,&#34;edithidden&#34;:true},&#34;edittype&#34;:&#34;textarea&#34;,&#34;editoptions&#34;:{&#34;width&#34;:600,&#34;rows&#34;:7,&#34;cols&#34;:70}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#34;name&#34;:&#34;date_added&#34;,&#34;index&#34;:&#34;date_added&#34;,&#34;sorttype&#34;:&#34;date&#34;,&#34;width&#34;:20,&#34;formatter&#34;:&#34;date&#34;,&#34;formatoptions&#34;:{&#34;srcformat&#34;:&#34;Y-m-d&#34;,&#34;newformat&#34;:&#34;m/d/Y&#34;},&#34;search&#34;:true,&#34;align&#34;:&#34;center&#34;,&#34;editoptions&#34;:{&#34;readonly&#34;:true},&#34;editable&#34;:false}],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;postData&#34;:{&#34;oper&#34;:&#34;grid&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;prmNames&#34;:{&#34;page&#34;:&#34;page&#34;,&#34;rows&#34;:&#34;rows&#34;,&#34;sort&#34;:&#34;sidx&#34;,&#34;order&#34;:&#34;sord&#34;,&#34;search&#34;:&#34;_search&#34;,&#34;nd&#34;:&#34;nd&#34;,&#34;id&#34;:&#34;id&#34;,&#34;filter&#34;:&#34;filters&#34;,&#34;searchField&#34;:&#34;searchField&#34;,&#34;searchOper&#34;:&#34;searchOper&#34;,&#34;searchString&#34;:&#34;searchString&#34;,&#34;oper&#34;:&#34;oper&#34;,&#34;query&#34;:&#34;grid&#34;,&#34;addoper&#34;:&#34;add&#34;,&#34;editoper&#34;:&#34;edit&#34;,&#34;deloper&#34;:&#34;del&#34;,&#34;excel&#34;:&#34;excel&#34;,&#34;subgrid&#34;:&#34;subgrid&#34;,&#34;totalrows&#34;:&#34;totalrows&#34;,&#34;autocomplete&#34;:&#34;autocmpl&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;loadError&#34;:function(xhr,status, err) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; try {jQuery.jgrid.info_dialog(jQuery.jgrid.errors.errcap,&#39;&#60;div class=&#34;ui-state-error&#34;&#62;&#39;+ xhr.responseText +&#39;&#60;/div&#62;&#39;, jQuery.jgrid.edit.bClose,{buttonalign:&#39;right&#39;});} <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; catch(e) { alert(xhr.responseText);}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#34;pager&#34;:&#34;#pager&#34;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ondblClickRow: function (rowid,iRow,iCol,e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var id = jQuery(&#34;#grid&#34;).jqGrid(&#39;getGridParam&#39;,&#39;selrow&#39;); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ret = jQuery(&#34;#grid&#34;).jqGrid(&#39;getRowData&#39;,id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var video_url = ret.uniq_id;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // alert(video_url);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; window.open(&#39;/watch/&#39;+video_url);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#34;edit&#34;:true, &#34;add&#34;:true, &#34;del&#34;:true, &#34;search&#34;:true, &#34;refresh&#34;:true, &#34;view&#34;:false, &#34;excel&#34;:true, &#34;pdf&#34;:false, &#34;csv&#34;:false, &#34;columns&#34;:false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#34;drag&#34;:true, &#34;resize&#34;:true, &#34;closeOnEscape&#34;:true, &#34;dataheight&#34;:150, &#34;errorTextFormat&#34;:function(r) { return r.responseText;}, &#34;width&#34;:600, &#34;recreateForm&#34;:true, &#34;closeAfterEdit&#34;:true, &#34;editCaption&#34;:&#34;Edit Video Link&#34;, &#34;bSubmit&#34;:&#34;Update&#34;,&#34;mtype&#34;:&#34;POST&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#34;drag&#34;:true,&#34;resize&#34;:true,&#34;closeOnEscape&#34;:true,&#34;dataheight&#34;:150,&#34;errorTextFormat&#34;:function(r){ return r.responseText;},&#34;width&#34;:600,&#34;recreateForm&#34;:true,&#34;closeAfterAdd&#34;:true,&#34;addCaption&#34;:&#34;Add Video Link&#34;,&#34;bSubmit&#34;:&#34;Add&#34;,&#34;mtype&#34;:&#34;POST&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#34;errorTextFormat&#34;:function(r){ return r.responseText;},&#34;mtype&#34;:&#34;POST&#34;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#34;drag&#34;:true,&#34;closeAfterSearch&#34;:true,&#34;multipleSearch&#34;:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#34;drag&#34;:true,&#34;resize&#34;:true,&#34;closeOnEscape&#34;:true,&#34;dataheight&#34;:150,&#34;width&#34;:600,&#34;recreateForm&#34;:true,&#34;closeAfterEdit&#34;:true,&#34;addCaption&#34;:&#34;View Video Link&#34;,&#34;bSubmit&#34;:&#34;Add&#34;});<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).jqGrid(&#39;navButtonAdd&#39;,&#39;#pager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {id:&#39;pager_excel&#39;, caption:&#39;&#39;,title:&#39;Export To Excel&#39;,onClickButton : function(e) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; try { jQuery(&#34;#grid&#34;).jqGrid(&#39;excelExport&#39;,{tag:&#39;excel&#39;, url:&#39;libs/grid.php&#39;}); } <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; catch (e) { window.location= &#39;libs/grid.php?oper=excel&#39;; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },buttonicon:&#39;ui-icon-newwin&#39;});<br />&#160;&#160;&#160; });<br />&#160; &#60;/script&#62;</div>
<p>and here is my debugging log (jqGrid.log):</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit686' value='Select Code' data-codeid='sfcode686' /></p>
<div class='sfcode' id='sfcode686'>Executed 2 query(s) - 2011-06-12 10:39:50<br />Array<br />(<br />&#160;&#160;&#160; [0] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [time] =&#62; 2011-06-12 10:39:50<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [query] =&#62; SELECT * FROM videos WHERE 1=2<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [data] =&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [types] =&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [fields] =&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [primary] =&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [input] =&#62; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160; [1] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [time] =&#62; 2011-06-12 10:39:50<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [query] =&#62; INSERT INTO videos (uniq_id, caption, video_link, owner_id, date_added) VALUES( ?, ?, ?, ?, ?)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [data] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [0] =&#62; b99967390<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [1] =&#62; bhmfgtthft<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [2] =&#62; hfchgfhfghfgh<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [3] =&#62; 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [4] =&#62; 1970-01-01<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [types] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [0] =&#62; string<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [1] =&#62; string<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [2] =&#62; blob<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [3] =&#62; int<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [4] =&#62; date<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [fields] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [id] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [type] =&#62; int<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [uniq_id] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [type] =&#62; string<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [type] =&#62; string<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [video_link] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [type] =&#62; blob<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [owner_id] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [type] =&#62; int<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [date_added] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [type] =&#62; date<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [primary] =&#62; id<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [input] =&#62; Array<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [uniq_id] =&#62; b99967390<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  =&#62; bhmfgtthft<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [video_link] =&#62; hfchgfhfghfgh<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [owner_id] =&#62; 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [date_added] =&#62; 2011-04-04<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; )<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; )<br />)</p>
</div>
<p>The problem is that the date goes into the database 1970-01-01, I have tried even setting the date with a default value in the grid.php array, but still the date is entered 1970-01-01.</p>
</p>
<p>Any help is very much appreciated.</p>
</p>
<p>Thanks in advance</p>
]]></description>
        	        	<pubDate>Mon, 13 Jun 2011 19:41:33 +0300</pubDate>
        </item>
</channel>
</rss>