Re: [PHP-DB] recursion in php and mysql

2007-03-01 Thread bedul
>>$row = mysql_fetch_array($result, $connection); this is the problem you should type $row = mysql_fetch_array($result, MYSQL_NUM); there not such things as $connection on the mysql_fetch_array in mysql_query.. u use that connection.. but not in fetch array array mysql_fetch_array ( resource res

Re: [PHP-DB] recursion in php and mysql

2007-03-01 Thread Ron Croonenberg
Hi Micah, thanks I have a bunch of things working now. mysql_fetch_array() is complaining. I use it like this: function recursive() { global $connection; $result = mysql_query("SELECT * FROM $table WHERE bthb4='$bthb4'", $connection); $row = mysql_fetch_array($result); } the error I got was:

Re: [PHP-DB] recursion in php and mysql

2007-03-01 Thread bedul
hmm.. i think there something going on on this func mysql_select_db($database) read more below == - Original Message - From: "Ron Croonenberg" <[EMAIL PROTECTED]> To: Sent: Friday, March 02, 2007 11:52 AM Subject: [PHP-DB] recursion in php

Re: [PHP-DB] recursion in php and mysql

2007-03-01 Thread Micah Stevens
Yep, just put the connect function outside your recursive loop. You can then access the connection that is returned by the connect function by making it global, or passing it by reference by the recursive function. In other words: $connection = mysql_connect(); mysql_select_db($database, $

[PHP-DB] recursion in php and mysql

2007-03-01 Thread Ron Croonenberg
Hello all, I wrote an app in php and it uses recursion. Problem I have is that when I connect to a database using mysql_connect($dbhost, $username, $password); and select a table with mysql_select_db($database) I cannot access the table anymore from some function. Now I can connect and select a

[PHP-DB] Re: [PHP-WIN] RE: [PHP-DB] auto upload

2007-03-01 Thread Austin Gruenweller >-]O
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I too think this would be the best way to do that. Unless you secured your page well you could open yourself up to something you might not like. Bastien Koert wrote: > What about just writing a batch script that opens the ftp services and > sends the

RE: [PHP-DB] auto upload

2007-03-01 Thread Bastien Koert
What about just writing a batch script that opens the ftp services and sends the file? Bastien From: "bedul" <[EMAIL PROTECTED]> To: , Subject: [PHP-DB] auto upload Date: Thu, 1 Mar 2007 12:03:48 +0700 this might a strange code i request, plz forgive my rudeness. everyday i was update a doc

[PHP-DB] Re: Creating a Table to line query results in php?

2007-03-01 Thread datsclark
You could also just use CSS. Make each column in a div and line them up that way. Might not be as simple as a table right off-the-bat, but if you have to make any changes later, its often easier. A quick google search shows tons of tutorials on tables in css. http://css.nu/articles/table-in-c