<?xml version="1.0" encoding="ISO-8859-1"?>

<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>Delphi-PHP Forums - embarcadero.public.delphiphp.database</title>
		<link>http://forums.delphi-php.net</link>
		<description>This group is for all discussion about databases and using them with 
Delphi for PHP.</description>
		<language>en</language>
		<lastBuildDate>Tue, 07 Sep 2010 20:11:58 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>1440</ttl>
		<image>
			<url>http://forums.delphi-php.net/images/misc/rss.jpg</url>
			<title>Delphi-PHP Forums - embarcadero.public.delphiphp.database</title>
			<link>http://forums.delphi-php.net</link>
		</image>
		<item>
			<title>MySQL 5.1 returnes empty data?</title>
			<link>http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5166-mysql-5-1-returnes-empty-data.html</link>
			<pubDate>Sun, 05 Sep 2010 12:37:01 GMT</pubDate>
			<description><![CDATA[John Schmidt wrote: 
> echo ' 1. "' . $DataModule1->TablePerson->Filter . '" '; 
> echo ' 2. "' . $DataModule1->TablePerson->PersID . '" '; 
> echo '...]]></description>
			<content:encoded><![CDATA[<div>John Schmidt wrote:<font color="blue"><br />
&gt; echo ' 1. &quot;' . $DataModule1-&gt;TablePerson-&gt;Filter . '&quot; ';<br />
&gt; echo ' 2. &quot;' . $DataModule1-&gt;TablePerson-&gt;PersID . '&quot; ';<br />
&gt; echo ' 3. &quot;' . $DataModule1-&gt;TablePerson-&gt;PersCode . '&quot; ';<br />
&gt; echo ' 4. &quot;' . $DataModule1-&gt;TablePerson-&gt;RecordCount . '&quot; ';<br />
&gt;<br />
&gt; I get following results:<br />
&gt; 1. PersID=2<br />
&gt; 2. ''<br />
&gt; 3. ''<br />
&gt; 4. 2<br />
&gt;<br />
&gt; What may cause this?</font><br />
<br />
This will happen if you haven't scrolled to the first record. Put the<br />
following code before your code that reads from the table:<br />
<br />
$DataModule1-&gt;TablePerson-&gt;First();<br />
<br />
<br />
--<br />
Jonathan Benedicto (TeamB)<br />
</div>

]]></content:encoded>
			<category domain="http://forums.delphi-php.net/embarcadero-public-delphiphp-database/">embarcadero.public.delphiphp.database</category>
			<dc:creator>John Schmidt</dc:creator>
			<guid isPermaLink="true">http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5166-mysql-5-1-returnes-empty-data.html</guid>
		</item>
		<item>
			<title>newbie - connecting to database</title>
			<link>http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5164-newbie-connecting-database.html</link>
			<pubDate>Sat, 04 Sep 2010 20:59:11 GMT</pubDate>
			<description><![CDATA[Philip Jackson wrote: 
> I have on my machine an ODBC datasource called AMMailMerge (which I use 
> extensively for Mail Merge to MS Word).  This...]]></description>
			<content:encoded><![CDATA[<div>Philip Jackson wrote:<font color="blue"><br />
&gt; I have on my machine an ODBC datasource called AMMailMerge (which I use<br />
&gt; extensively for Mail Merge to MS Word).  This points to a Visual foxpro<br />
&gt; table cdoc.dbf.<br />
&gt;<br />
&gt; I have created a small application and placed onto the form 4<br />
&gt; components...<br />
&gt;<br />
&gt; Database with properties<br />
&gt;    DatabaseName = AMMailMerge<br />
&gt;    DriverName = odbc<br />
&gt;    Host = localhost<br />
&gt;<br />
&gt; when I run the application I get the following SQL/ODBC error.....<br />
&gt;<br />
&gt; Warning: odbc_connect() [function.odbc-connect]: SQL error:<br />
&gt; [Microsoft][ODBC<br />
&gt; Driver Manager] Data source name not found and no default driver<br />
&gt; specified,<br />
&gt; SQL state IM002 in SQLConnect in C:\Program Files<br />
&gt; (x86)\Embarcadero\RadPHP\3.0\rpcl\adodb\drivers\adodb-odbc.inc.php on line<br />
&gt; 60</font><br />
<br />
Try setting the Host property on the database component to the DSN of the<br />
ODBC datasource and clear the DatabaseName property.<br />
<br />
--<br />
Jonathan Benedicto (TeamB)<br />
</div>

]]></content:encoded>
			<category domain="http://forums.delphi-php.net/embarcadero-public-delphiphp-database/">embarcadero.public.delphiphp.database</category>
			<dc:creator>Philip Jackson</dc:creator>
			<guid isPermaLink="true">http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5164-newbie-connecting-database.html</guid>
		</item>
		<item>
			<title><![CDATA[More MSSQL errors [Edit]]]></title>
			<link>http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5162-more-mssql-errors-edit.html</link>
			<pubDate>Fri, 03 Sep 2010 21:56:41 GMT</pubDate>
			<description><![CDATA[Steve Owen wrote: 
> Tried the recommend fix of uncommenting: 
> 
> extension=php_mssql.dll 
> 
> from the php.ini.template file and this worked on...]]></description>
			<content:encoded><![CDATA[<div>Steve Owen wrote:<font color="blue"><br />
&gt; Tried the recommend fix of uncommenting:<br />
&gt;<br />
&gt; extension=php_mssql.dll<br />
&gt;<br />
&gt; from the php.ini.template file and this worked on an Win XP box, however,<br />
&gt; with<br />
&gt; RadPHP installed to a Windows 7 box after commenting the php.ini.template<br />
&gt; a<br />
&gt; new error occurs<br />
&gt;<br />
&gt; stating RadPHP cannot find file ntwdblib.dll and followed by yet another<br />
&gt; error<br />
&gt; message saying it can't find php_mssql.dll......suggestions?</font><br />
<br />
Try installing the SQL Native Client on the machine:<br />
<a href="http://msdn.microsoft.com/en-us/data/aa937733.aspx" target="_blank">http://msdn.microsoft.com/en-us/data/aa937733.aspx</a><br />
<br />
--<br />
Jonathan Benedicto (TeamB)<br />
</div>

]]></content:encoded>
			<category domain="http://forums.delphi-php.net/embarcadero-public-delphiphp-database/">embarcadero.public.delphiphp.database</category>
			<dc:creator>STEVEN OWEN</dc:creator>
			<guid isPermaLink="true">http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5162-more-mssql-errors-edit.html</guid>
		</item>
		<item>
			<title>bunch of newbie questions</title>
			<link>http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5158-bunch-newbie-questions.html</link>
			<pubDate>Thu, 02 Sep 2010 20:10:15 GMT</pubDate>
			<description><![CDATA[Jonathan Culley wrote: 
> 1) I am deploying on a LAMP environment. what is the best way to connect 
> to 
> the database: datamodule, add required...]]></description>
			<content:encoded><![CDATA[<div>Jonathan Culley wrote:<font color="blue"><br />
&gt; 1) I am deploying on a LAMP environment. what is the best way to connect<br />
&gt; to<br />
&gt; the database: datamodule, add required tables to each appliction page? If<br />
&gt; I<br />
&gt; create a common.php file that has common functions how do I include that<br />
&gt; datasource and related properties / methods?</font><br />
<br />
A common datamodule for the Database component would be a good idea, yes.<br />
<br />
I'm not sure what you mean by &quot;include that datasource and related<br />
properties/methods&quot;.<br />
<font color="blue"><br />
&gt; 2) There are some really simple queries that I want to run such as<br />
&gt; checking<br />
&gt; if a record ID exists in a table before I post a new record. Is there a<br />
&gt; built-in<br />
&gt; method for this or do I write out the SQL for that? Is there any<br />
&gt; documentation<br />
&gt; that is organized by results rather than just method names?</font><br />
<br />
If you're using the Database component, you can use the AdoDB helper methods<br />
to simplify your query. For example:<br />
<br />
{code}<br />
$count = $this-&gt;Database1-&gt;_connection-&gt;GetOne( &quot;SELECT COUNT(*) WHERE ID =<br />
?&quot;, array( 123 ) );<br />
{code}<br />
<font color="blue"><br />
&gt; 3) I want to create a drop-down select field that is populated by a<br />
&gt; database<br />
&gt; (for instance a country field that is populated by available countries in<br />
&gt; the<br />
&gt; database). How do I do this?</font><br />
<br />
Because the ComboBox control does not support retrieving items for a<br />
database, there are 2 ways to do this: 1. Manually populate the ComboBox<br />
control, or 2. get a copy of Components For PHP Full<br />
(<a href="http://www.jomitech.com/compforphp.php" target="_blank">http://www.jomitech.com/compforphp.php</a>) and use their JTLookupComboBox.<br />
<font color="blue"><br />
&gt; 4) I created a FormValidator and made up a bunch of rules, but when I run<br />
&gt; the<br />
&gt; unit nothing happens.  How do I get the form to check the FormValidator?</font><br />
<br />
Create a JavaScript OnSubmit event on the page and call the validator's<br />
generated JavaScript method, returning the result. For example:<br />
<br />
function Page1JSSubmit($sender, $params)<br />
{<br />
?&gt;<br />
return FormValidator1_validate();<br />
&lt;?php<br />
}<br />
<br />
--<br />
Jonathan Benedicto (TeamB)<br />
</div>

]]></content:encoded>
			<category domain="http://forums.delphi-php.net/embarcadero-public-delphiphp-database/">embarcadero.public.delphiphp.database</category>
			<dc:creator>Jonathan Culley</dc:creator>
			<guid isPermaLink="true">http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5158-bunch-newbie-questions.html</guid>
		</item>
		<item>
			<title>RadPHP Firebird</title>
			<link>http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5149-radphp-firebird.html</link>
			<pubDate>Tue, 31 Aug 2010 10:53:02 GMT</pubDate>
			<description><![CDATA[Hi, 
 
Can you please elaborate ? 
 
"New in XE! Firebird support in the IDE" 
 
Are Firebird Databases included in the Data Explorer ? 
 
Is there...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Can you please elaborate ?<br />
<br />
&quot;New in XE! Firebird support in the IDE&quot;<br />
<br />
Are Firebird Databases included in the Data Explorer ?<br />
<br />
Is there any difference in the way Firebird databases are handled or<br />
connected to in comparison to MySQL and Interbase ?<br />
<br />
Eager for an answer as I will purchase if I can get full connection and<br />
functionality to Firebird.<br />
<br />
Thanks<br />
<br />
Mike Hickman<br />
</div>

]]></content:encoded>
			<category domain="http://forums.delphi-php.net/embarcadero-public-delphiphp-database/">embarcadero.public.delphiphp.database</category>
			<dc:creator>Mike Hickman</dc:creator>
			<guid isPermaLink="true">http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5149-radphp-firebird.html</guid>
		</item>
		<item>
			<title>SQL Server Error</title>
			<link>http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5147-sql-server-error.html</link>
			<pubDate>Tue, 31 Aug 2010 04:46:31 GMT</pubDate>
			<description>I got it to work.  For reference in C:\Program Files\Embarcadero\RadPHP\3.0\php there is a php.ini.template - making sure the line...</description>
			<content:encoded><![CDATA[<div>I got it to work.  For reference in C:\Program Files\Embarcadero\RadPHP\3.0\php there is a php.ini.template - making sure the line<br />
extension=php_mssql.dll<br />
was not commented out fixed the issue.  I did not realize this file replaces the php.ini file for your project.<br />
</div>

]]></content:encoded>
			<category domain="http://forums.delphi-php.net/embarcadero-public-delphiphp-database/">embarcadero.public.delphiphp.database</category>
			<dc:creator>Scott Woods</dc:creator>
			<guid isPermaLink="true">http://forums.delphi-php.net/embarcadero-public-delphiphp-database/5147-sql-server-error.html</guid>
		</item>
	</channel>
</rss>
