<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>PHP Builder</title>
  <link>http://www.phpbb88.com/phpbb/index.php?mforum=phpbuilder</link>
  <description>free solutions for web developers</description>
  <language>english</language>
  <copyright>(c) Copyright 2013 by PHP Builder</copyright>
  <managingEditor>leumas.a@gmail.com</managingEditor>
  <webMaster>leumas.a@gmail.com</webMaster>
  <pubDate>Wed Jun 19, 2013 12:02 pm</pubDate>
  <lastBuildDate>Wed Jun 19, 2013 12:02 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>PHP Builder</title>
    <url></url>
    <link>http://www.phpbb88.com/phpbb/</link>
    <description>free solutions for web developers</description>
  </image>

                                      <item>
                                        <title>Re: Trouble Connecting To MySQL Database</title>
                                        <link>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2973#2973</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.phpbb88.com/phpbb/profile.php?mforum=phpbuilder&amp;mode=viewprofile&amp;u=386'&gt;egrafeuille&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Sep 19, 2008 7:07 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I think the problem is the comma before the FROM clause!  &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
Regards</description>
                                        <comments>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2973#2973</comments>
                                        <author>egrafeuille</author>
                                        <pubDate>Fri Sep 19, 2008 7:07 pm</pubDate>
                                        <guid isPermaLink="true">http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2973#2973</guid>
                                      </item>
                                      <item>
                                        <title>Re: Trouble Connecting To MySQL Database</title>
                                        <link>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2965#2965</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.phpbb88.com/phpbb/profile.php?mforum=phpbuilder&amp;mode=viewprofile&amp;u=381'&gt;accetturo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Sep 16, 2008 2:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Would it be possible for someone to help me setup my database</description>
                                        <comments>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2965#2965</comments>
                                        <author>accetturo</author>
                                        <pubDate>Tue Sep 16, 2008 2:10 pm</pubDate>
                                        <guid isPermaLink="true">http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2965#2965</guid>
                                      </item>
                                      <item>
                                        <title>Re: Trouble Connecting To MySQL Database</title>
                                        <link>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2964#2964</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.phpbb88.com/phpbb/profile.php?mforum=phpbuilder&amp;mode=viewprofile&amp;u=34'&gt;zewa666&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Sep 16, 2008 5:32 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      mmhm &lt;br /&gt;
&lt;br /&gt;
try to make the Primary key integer not tinyint.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
greetings&lt;br /&gt;
Zewa</description>
                                        <comments>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2964#2964</comments>
                                        <author>zewa666</author>
                                        <pubDate>Tue Sep 16, 2008 5:32 am</pubDate>
                                        <guid isPermaLink="true">http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2964#2964</guid>
                                      </item>
                                      <item>
                                        <title>Trouble Connecting To MySQL Database</title>
                                        <link>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2958#2958</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.phpbb88.com/phpbb/profile.php?mforum=phpbuilder&amp;mode=viewprofile&amp;u=381'&gt;accetturo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Sep 15, 2008 10:37 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I have been having alot of issues linking with a mysql database, mostly due to my inexperience with Raw editing of MySQL and your script. I took the sample script and loaded the demo SQL data into the database, and the sample worked great. I then created a new table called posystem and added several columns, PO_Number being the primary(tinyint(3)) and added all varchar(100). I replaced the text from the sample with the new table info and columns, and it didnt work as expected.&lt;br /&gt;
&lt;br /&gt;
Errors Received&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
search sql &amp;#40;total&amp;#58; 0&amp;#41; SELECT countries.PO_Number, countries.name, countries.description, FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10&lt;br /&gt;
&lt;br /&gt;
search sql &amp;#40;total&amp;#58; 0&amp;#41; SELECT countries.PO_Number, countries.name, countries.description, FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10&lt;br /&gt;
&lt;br /&gt;
Errors&amp;#58;&lt;br /&gt;
&lt;br /&gt;
1&amp;#41; SELECT countries.PO_Number, countries.name, countries.description, FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10 &lt;br /&gt;
&amp;#91;nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10' at line 1&amp;#93;&lt;br /&gt;
&lt;br /&gt;
2&amp;#41; SELECT countries.PO_Number, countries.name, countries.description, FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10 &lt;br /&gt;
&amp;#91;nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10' at line 1&amp;#93;&lt;br /&gt;
&lt;br /&gt;
3&amp;#41; SELECT countries.PO_Number, countries.name, countries.description, FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10 &lt;br /&gt;
&amp;#91;nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10' at line 1&amp;#93;&lt;br /&gt;
&lt;br /&gt;
4&amp;#41; SELECT countries.PO_Number, countries.name, countries.description, FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10 &lt;br /&gt;
&amp;#91;nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM countries WHERE 1=1 ORDER BY name ASC LIMIT 0, 10' at line 1&amp;#93;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Warnings&amp;#58;&lt;br /&gt;
&lt;br /&gt;
1&amp;#41; Wrong parameter in &amp;#91;SELECT&amp;#93;&amp;#58; Check this field carefully, it may be not a Primary Key!&lt;br /&gt;
&lt;br /&gt;
POST&amp;#58; Array &amp;#40; &amp;#41; &lt;br /&gt;
&lt;br /&gt;
GET&amp;#58; Array &amp;#40; &amp;#41; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice&amp;#58; Undefined property&amp;#58; DataGrid&amp;#58;&amp;#58;$columns_view_mode in /x/x/x/x/x/datagrid/datagrid.class.php on line 3189&lt;br /&gt;
&lt;br /&gt;
Warning&amp;#58; Invalid argument supplied for foreach&amp;#40;&amp;#41; in /x/x/x/x/x/datagrid/datagrid.class.php on line 3189&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice&amp;#58; Undefined property&amp;#58; DataGrid&amp;#58;&amp;#58;$columns_view_mode in /x/x/x/xx/x/datagrid/datagrid.class.php on line 2344&lt;br /&gt;
&lt;br /&gt;
Warning&amp;#58; Invalid argument supplied for foreach&amp;#40;&amp;#41; in /x/x/x/x/x/datagrid/datagrid.class.php on line 2344&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
NOTE WILDCARDS*/X WERE ADDED&lt;br /&gt;
&lt;br /&gt;
Here is the sample im using&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;lt;php&amp;gt;&lt;br /&gt;
################################################################################&amp;nbsp; &amp;nbsp;&lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
## | 1. Creating &amp;amp; Calling&amp;#58;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
##&amp;nbsp; *** only relative &amp;#40;virtual&amp;#41; path &amp;#40;to the current document&amp;#41;&lt;br /&gt;
&amp;nbsp; define &amp;#40;&amp;quot;DATAGRID_DIR&amp;quot;, &amp;quot;datagrid/&amp;quot;&amp;#41;;&lt;br /&gt;
&amp;nbsp; define &amp;#40;&amp;quot;PEAR_DIR&amp;quot;, &amp;quot;datagrid/pear/&amp;quot;&amp;#41;;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; require_once&amp;#40;DATAGRID_DIR.'datagrid.class.php'&amp;#41;;&lt;br /&gt;
&amp;nbsp; require_once&amp;#40;PEAR_DIR.'PEAR.php'&amp;#41;;&lt;br /&gt;
&amp;nbsp; require_once&amp;#40;PEAR_DIR.'DB.php'&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
##&amp;nbsp; *** creating variables that we need for database connection &lt;br /&gt;
&amp;nbsp; $DB_USER='*';&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* usually like this&amp;#58; prefix_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&amp;nbsp; $DB_PASS='*';&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* must be already enscrypted &amp;#40;recommended&amp;#41;&amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&amp;nbsp; $DB_HOST='*';&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* usually localhost&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;br /&gt;
&amp;nbsp; $DB_NAME='*';&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* usually like this&amp;#58; prefix_dbName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&lt;br /&gt;
ob_start&amp;#40;&amp;#41;;&lt;br /&gt;
&amp;nbsp; $db_conn = DB&amp;#58;&amp;#58;factory&amp;#40;'mysql'&amp;#41;; &lt;br /&gt;
&amp;nbsp; $db_conn -&amp;gt; connect&amp;#40;DB&amp;#58;&amp;#58;parseDSN&amp;#40;'mysql&amp;#58;//'.$DB_USER.'&amp;#58;'.$DB_PASS.'@'.$DB_HOST.'/'.$DB_NAME&amp;#41;&amp;#41;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
##&amp;nbsp; *** put a primary key on the first place &lt;br /&gt;
&amp;nbsp; $sql=&amp;quot; SELECT &amp;quot;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.PO_Number, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Date, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Use_Code, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Originator, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Description, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Est_Cost, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Contact, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;posystem.Signed_Off_By, &amp;quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;.&amp;quot;FROM posystem &amp;quot;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;br /&gt;
##&amp;nbsp; *** set needed options&lt;br /&gt;
&amp;nbsp; $debug_mode = false;&lt;br /&gt;
&amp;nbsp; $messaging = true;&lt;br /&gt;
&amp;nbsp; $unique_prefix = &amp;quot;f_&amp;quot;;&amp;nbsp; &lt;br /&gt;
&amp;nbsp; $dgrid = new DataGrid&amp;#40;$debug_mode, $messaging, $unique_prefix, DATAGRID_DIR&amp;#41;;&lt;br /&gt;
##&amp;nbsp; *** set data source with needed options&lt;br /&gt;
&amp;nbsp; $default_order_field = &amp;quot;PO_Number&amp;quot;;&lt;br /&gt;
&amp;nbsp; $default_order_type = &amp;quot;ASC&amp;quot;;&lt;br /&gt;
&amp;nbsp; $dgrid-&amp;gt;dataSource&amp;#40;$db_conn, $sql, $default_order_field, $default_order_type&amp;#41;;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
## | 6. View Mode Settings&amp;#58;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
##&amp;nbsp; *** set columns in view mode&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$dgrid-&amp;gt;setAutoColumnsInViewMode&amp;#40;true&amp;#41;;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
## | 7. Add/Edit/Details Mode settings&amp;#58;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
##&amp;nbsp; ***&amp;nbsp; set settings for edit/details mode&lt;br /&gt;
&amp;nbsp; $table_name = &amp;quot;posystem&amp;quot;;&lt;br /&gt;
&amp;nbsp; $primary_key = &amp;quot;PO_Number&amp;quot;;&lt;br /&gt;
&amp;nbsp; $condition = &amp;quot;&amp;quot;;&lt;br /&gt;
&amp;nbsp; $dgrid-&amp;gt;setTableEdit&amp;#40;$table_name, $primary_key, $condition&amp;#41;;&lt;br /&gt;
&amp;nbsp; $dgrid-&amp;gt;setAutoColumnsInEditMode&amp;#40;true&amp;#41;;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
## | 8. Bind the DataGrid&amp;#58;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
## +---------------------------------------------------------------------------+&lt;br /&gt;
##&amp;nbsp; *** set debug mode &amp;amp; messaging options&lt;br /&gt;
&amp;nbsp; &amp;nbsp; $dgrid-&amp;gt;bind&amp;#40;&amp;#41;;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; ob_end_flush&amp;#40;&amp;#41;;&lt;br /&gt;
####################################################&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
Again, Wildcards were added&lt;br /&gt;
&lt;br /&gt;
Server is updated with all the standards, and has been tested on samples to show it works.</description>
                                        <comments>http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2958#2958</comments>
                                        <author>accetturo</author>
                                        <pubDate>Mon Sep 15, 2008 10:37 pm</pubDate>
                                        <guid isPermaLink="true">http://www.phpbb88.com/phpbb/viewtopic.php?mforum=phpbuilder&amp;p=2958#2958</guid>
                                      </item></channel></rss>