[PHP-DB] Database Search Engine

2004-02-25 Thread Muhammed Mamedov
Hi, I have many databases, each full up of more than 20 tables. I need to perform search based on search criteria entered by users. Does anyone know effective way of performin this task? Waiting for your comments. Regards, Muhammed Mamedov -- PHP Database Mailing List (http://www.php.net/)

[PHP-DB] Re: Re:Firts time user of adodb

2004-02-25 Thread John Lim
You should have seen the SELECT stmt being outputed when debug is enabled. If you saw nothing, then the connect() failed. Make sure you turn on error reporting with error_reporting(E_ALL); before you connect. -* Nadine *- [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanx, I

[PHP-DB] array months

2004-02-25 Thread peppe
Hi I realy need help hier I have a aaray of months $lang['months'] = array ( 1 = Januari, 2 = Februari, 3 = Maart, 4 = April, 5 = Mei, 6 = Juni, 7 = Juli, 8 = Augustus, 9 = September, 10 = Oktober, 11 = November, 12 = December ); and a function function showMonths2($montharray) { $maand =

[PHP-DB] Re: Database Search Engine

2004-02-25 Thread Hans Lellelid
There are fulltext search engines like mnoGoSearch (http://mnogosearch.org) that can index database tables like filesystems. You could then search accross all of your databases -- and you could also include results from mnogo spidering in that search if appropriate. This might be a good

RE: [PHP-DB] Query to Array to Echo Problem--Thank you

2004-02-25 Thread Karen Resplendo
Yes! That worked! (It was returning the same field values not column names, my mistake). Now it returns what it should return. Onwards to the next snafu! Thanks! Ryan Jameson (USA) [EMAIL PROTECTED] wrote: One thing may be that you need to do a fetch to increment the result row

[PHP-DB] help w/ multidementional array in mysql

2004-02-25 Thread PHELPS, SCOTT
Thanks in advance for reading this: I am trying to take a query based on user input and selectively output fields to a table. Heres the query code: snip - snip $query_result = mysql_query($query); while ($field = mysql_fetch_array($query_result)) { $returned_rows =

[PHP-DB] help w/ multidementional array in mysql

2004-02-25 Thread PHELPS, SCOTT
Thanks in advance for reading this: I am trying to take a query based on user input and selectively output fields to a table. Heres the query code: snip - snip $query_result = mysql_query($query); while ($field = mysql_fetch_array($query_result)) { $returned_rows =

Re: [PHP-DB] help w/ multidementional array in mysql

2004-02-25 Thread PHELPS, SCOTT
Sorry for accidentally posting twice: I wanted to point out a typo. At the bottom I meant advancing the array not table in regards to next() On Wed, 25 Feb 2004 11:12:10 -0600 PHELPS, SCOTT [EMAIL PROTECTED] wrote: Thanks in advance for reading this: I am trying to take a query based on

Re: [PHP-DB] help w/ multidementional array in mysql

2004-02-25 Thread Jason Wong
On Thursday 26 February 2004 01:04, PHELPS, SCOTT wrote: The problem is that it only prints one name. Also next() doesn't seem to be advancing the table so I am getting duplicates of the one name it does print to the table For starters, you're using next() incorrectly. It returns a value.

[PHP-DB] Re: help w/ multidementional array in mysql

2004-02-25 Thread Justin Patrin
Scott Phelps wrote: Thanks in advance for reading this: I am trying to take a query based on user input and selectively output fields to a table. Heres the query code: snip - snip $query_result = mysql_query($query); while ($field = mysql_fetch_array($query_result)) {

Re: [PHP-DB] Re: help w/ multidementional array in mysql

2004-02-25 Thread Luis M Morales C
This is an great aproach to solve your problem but i suggest some things to obtain an better performance on your apps. See my comments bellow On Wednesday 25 February 2004 14:24, Justin Patrin wrote: Scott Phelps wrote: Thanks in advance for reading this: I am trying to take a query

[PHP-DB] Strange DB Error

2004-02-25 Thread Axel IS Main
When returning to the main page of my script sometimes I'll get the following error: Warning: mysql_fetch_array(): 8 is not a valid MySQL result resource in /home/nick/http/search/includes/main.inc on line 13 This happens only AFTER the first element in the resource has been processed. Here's

Re: [PHP-DB] Strange DB Error

2004-02-25 Thread jeffrey_n_Dyke
When returning to the main page of my script sometimes I'll get the following error: Warning: mysql_fetch_array(): 8 is not a valid MySQL result resource in /home/nick/http/search/includes/main.inc on line 13 This happens only AFTER the first element in the resource has been processed.

Re: [PHP-DB] Strange DB Error

2004-02-25 Thread Axel IS Main
Error trapping is not really relevant here as the server is properly configured so the errors are going to show up in either event. In fact, using the die() function on my server just makes thing worse. In any case, the var_dump was a good idea as I was able to find out that what is happening

Re: [PHP-DB] Strange DB Error

2004-02-25 Thread jeffrey_n_Dyke

[PHP-DB] Storing a php variable in MySQL

2004-02-25 Thread Daniel Crespo
Hi there. I want to save a variable (its structure and data) in MySQL. I know the function serialize(mixed value), wich generates a storable representation of a value. This storable representation has characters like { and : (when talking about arrays). So, how can I store this in MySQL? Wich

Re: [PHP-DB] Re: help w/ multidementional array in mysql

2004-02-25 Thread PHELPS, SCOTT
On Wed, 25 Feb 2004 14:56:53 -0400 Luis M Morales C [EMAIL PROTECTED] wrote: Thank you so much Justin and Luis. You guys are awesome. You both helped me tremendously! BTW, I figured out a way to make the tables show the $value results in alternating colors. I just use a bitwise AND to test

[PHP-DB] Re: Storing a php variable in MySQL

2004-02-25 Thread Justin Patrin
Daniel Crespo wrote: Hi there. I want to save a variable (its structure and data) in MySQL. I know the function serialize(mixed value), wich generates a storable representation of a value. This storable representation has characters like { and : (when talking about arrays). So, how can I store

Fw: [PHP-DB] Re: help w/ multidementional array in mysql

2004-02-25 Thread PHELPS, SCOTT
Sorry, I didn't cut that right: Here it is: table class=results_inner ?php foreach ($returned_rows as $key = $value) { if ($key 1) { echo trtd class='results_blue'.$value['lastname']., .$value[firstname]./td/trbr;

Re: Fw: [PHP-DB] Re: help w/ multidementional array in mysql

2004-02-25 Thread Justin Patrin
;-) table class=results_inner ?php foreach ($returned_rows as $key = $value) { echo trtd class='. ($key 1 ? 'results_blue' : 'results_white').'. $value['lastname']., .$value[firstname]./td/trbr; }

[PHP-DB] Re:[PHP-DB] Strange DB Error

2004-02-25 Thread Axel IS Main
What you propose makes sense of course, but no matter what I do, where I send the errors, even to the system log, the mysql_fetch_array () error is the only one that shows up. It would appear that either the query is failing is some way that PHP isn't recognizing, or the fetch isn't working

Re: [PHP-DB] Re: help w/ multidementional array in mysql

2004-02-25 Thread Scott
X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 25 Feb 2004 15:39:17 -0800 Justin Patrin [EMAIL PROTECTED] wrote: ;-) table class=results_inner ?php