Hello all,
I'm looking for a PHP tool that would take the results of a MySQL
query and send them to a client browser in DBF format.
I wrote an output tool that sends a query result as CSV to the
browser, but DBFs are much more handy in this particular case.
Does this exist?
Hi,
You need to recompile PHP with support for Interbase.
I would recommend reading the instructions on linux PHP installations on the PHP
website.
I imagine the conifgure option is something like
--with-interbase=path_to_interbase
but definately don't quote me on that.
Cheers,
db
Paulu
oops.
--
--
Dan Barton
Terrestrial Program Biologist
Asst. Data Manager
Point Reyes Bird Observatory
http://www.prbo.org
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---BeginMessage---
Hi,
There are several PHP-Apache environment variables that may do what you're
interested in. (I'm not
with ... but i am getting lazy,
I get a bit peeved. The implication is Do my work for me.
It's different when the context is I want to do this ... tried this ...
results aren't right ... please help.
Miles
At 06:04 PM 1/13/2002 -0800, Daniel Barton wrote:
Miles,
Hmm... RTFM
.
- Original Message -
From: Daniel Barton [EMAIL PROTECTED]
To: Christopher J. Crane [EMAIL PROTECTED]
Sent: Sunday, January 13, 2002 9:10 PM
Subject: Re: [PHP-DB] The New Guy
MySQL is free and open source. Support from MySQL AB is not free, but
that shouldn't be an issue.
Check out
prefer the company of
others, please do take Dan's advice. Your experience is contrary to my own, and is
NOT supported by the majority
as evidenced by the volume of list transactions.
=dn
- Original Message -
From: Daniel Barton [EMAIL PROTECTED]
To: Christopher J. Crane [EMAIL
Paul,
Just a clarification: I wasn't the original poster.
Christopher J. Crane was the original asker of the CSV/flat file database
question.
I do have a db to use.
Cheers,
db
Paul Burney wrote:
on 1/14/02 2:12 PM, Daniel Barton at [EMAIL PROTECTED] appended the following
bits to my mbox
Miles,
Hmm... RTFM! ..
That's a pretty unproductive post.
Pedro,
There are two PHP functions that will suffice. date() and mktime().
I've cut and pasted this from the PHP manual:
$tomorrow = mktime (0,0,0,date(m) ,date(d)+1,date(Y));
$lastmonth = mktime (0,0,0,date(m)-1,date(d), date(Y));
Hi all,
I've noted that a least a couple of people on this list work with
library catalog systems - I'm interested in finding out whether any of
these systems are open-source or are available for a nominal fee. I'm
familiar enough with PHP/MySQL to make one, but I'd also like to avoid
Hi again everyone,
Alnisa Allgood wrote:
You may want to check HotScripts, or the PHP Resource Index
(http://www.hotscripts.com) and (http://php.resourceindex.com). These
locations will most likely have an array of free or low-cost library
solutions.
Thanks all for the HotScripts etc.
Andrew:
Don't put quotes around your MySQL function call.
i.e.
PASSWORD($password)
not
'PASSWORD($password)'
p.s. Looking at this thread, it seems like most of the errors you're encountering have
nothing to do with md5() or password(), but with syntax, like placement of quotes, or
whether
Hi,
I hate to simply refer to other sources in a response, but cross-tabulations are a
large and rich subject which are
too large for the time I have to write this email. I would suggest reading this
article:
http://www.devshed.com/Server_Side/MySQL/MySQLWiz
which is a pretty good source
Hi,
SELECT SUM(IF(id = '2',1,0)) AS field_name FROM table
Versatile command - you can use it for quite a lot of things.
Barry Rumsey wrote:
Is it posible to do a count(*) on a tabe where id=2 and count just those that id =
2
--
--
Dan Barton
Terrestrial Program Biologist
Asst.
Hi all:
AFAIK, it is possible in a bunch of database software to query multiple DBs
through joining. I have a Foxpro background (so most of what I say is therefore,
b.s.) but you can define your query tables using this notation:
database.table
Which allows you to query multiple DBs.
You should
Hello:
I would actually disagree with [EMAIL PROTECTED]
The mysql_query() function does not require both database and query as arguments,
only query.
The mysql_db_query() function does, thus the function name. Using mysql_query()
with database as a parameter would actually be incorrect. (See
Chris -
You're getting already getting plenty of answers to this question - I only have one
suggestion, which is that if you're not doing it already, just write a function or
create an object that makes a dropdown box. I have a function and a class that I use
for creating
dropdowns. Well,
Russ -
Why not (MySQL) extract the field always, and code into your (php) generic
mechanism whether or not a
particular field under that name appears? Using mysql_fetch_assoc() you could exclude
'modified' from
your generic mechanism under particular circumstances. This avoids coding it
Don't think that was the question...?
Ian Ferger wrote:
$table = some_junk;
$resultset=mysql_query(select blah ,blah from $table);
Russ Michell [EMAIL PROTECTED] wrote in message
news:SIMEON.10112131209.A@k1c. anglia.ac.uk...
Hi there everyone:
I have a genericphp/MySQL
Vins,
Have you tried sticking the path of the database relative to the server
root in there?
like: /home/vins/interbase_data/NAMES.GDB
or: /var/interbase_date/NAMES.GDB
etc. ?
-db
Vins wrote:
Hi.
I need help with Interbase.
Here is my script...
Rob -
I think I see what you're doing: you're concatenating $message with something
else (the HTML output following line 357?). Problem is, you're just stating
the right hand side of what should be an assignment. The concatenation should
be:
$variable = $variable .= 'HTML output';
and it looks
There are a few ways to go about this:
You could:
1) Use little image blocks to dynamically build bar graphs. It's not too
hard with PHP. Make some little square (or round or whatever) gifs (with
transparent edges), and then position them on a background JPEG or gif using
DIV tags. Make an
Hi,
I can't seem to nail down the simplest way to do this. I've got
10-15 lines of code right now to do something that should take less. The
following code extracts the names of all the fields in a table, prints
them across a table row in their own cells, and then extracts each
record and
Are you positive fileupload.php is passing $userfile to the mail() script? A blank
result would seem to indicate that it's not getting passed. You could try passing it
through the URL if they're seperate scripts. Or, you could just include the mail()
script in
fileupload.php, eliminating the
I volunteer to be a patient with some patience.
Sorry to spam a little humor.
-db
Frank M. Kromann wrote:
You can download binaries (from latest cvs) from http://kromann.info/php4.php
I'm not compiling all binaries at this point, but this page is updated every morning
at 4am.
If you want
Hi,
I hope this is of some help. Programmatically, the idea is:
(html) begin a select input type
(php) connect_to_db --- query --- add options (one at a time, in a loop)
(html) end the select input type
The follwing code works for a table named projects with a field named project.
Apply it
Try using mysql_query to describe the table in question (describe $table), and use the
output
as a list of field names (and types). I wrote a generic script to do this for an
app... can
provide if needed (although it sure looks a little hacked right now, hmmm)
-db
Russ Michell wrote:
Hi
--
--
Dan Barton
Terrestrial Program Biologist
Asst. Data Manager
Point Reyes Bird Observatory
http://www.prbo.org
[EMAIL PROTECTED]
[EMAIL PROTECTED]
---BeginMessage---
Try:
select sum(if(whatever=whatever,1,0)) as whatever from wherever where
whatever=whatever;
This is a pretty
-
From: Daniel Barton [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2001 4:14 PM
To: Martin E. Koss
Subject: Re: [PHP-DB] JOIN - Not working.
Try:
select sum(if(whatever=whatever,1,0)) as whatever from wherever where
whatever=whatever;
This is a pretty fast command for simple cross
Hi,
PHP and MySQL are not talking to each other. Numerous tutorials available on
the web for getting MySQL, PHP, and Apache to work together... depending on how
you installed PHP and MySQL, the method varies. If PHP is compiled with support
for MySQL, it may be as simple as uncommenting or
I would suggest perhaps a different way (slightly larger use of disk space, but only
one script and
only one query, although a moderately complex query):
1) Subscriber's emails are stored in table 'A' with their associated category as a
data field.
2) A unix_timestamp field is added to table
Hello,
How are you able to connect to MySQL - through PHP or through your (XP?)
user account? Does PHP connect to MySQL? If you can connect through PHP, then
who is privileged to use the database you're trying to use? Have you tried
connecting as the MySQL root user through a PHP script?
31 matches
Mail list logo