Re: [PHP-DB] suggestions

2005-03-03 Thread Matt M.
Hello I need to dev a small app and I can think of a couple different ways to handle it but not sure the best way. I need to register those who come to our site that want to download .pdf's. They will fill out some information before I redirect to the pdf. I'm thinking the best way

Re: [PHP-DB] Notice: Undefined index: op

2005-02-22 Thread Matt M.
if ($_POST['op'] != 'ds') { $display_block = form action=\$_SERVER[PHP_SELF]\ method=\POST\ Your E-mail Address: input type=text name=\email\ size=40 maxlength=150/ input type=radio name=\action\ value=\sub\ checked/subscribebr/ input type=radio name=\action\

Re: [PHP-DB] Notice: Undefined index: op

2005-02-22 Thread Matt M.
On Tue, 22 Feb 2005 10:47:43 -0600, Matt M. [EMAIL PROTECTED] wrote: if ($_POST['op'] != 'ds') { $display_block = form action=\$_SERVER[PHP_SELF]\ method=\POST\ Your E-mail Address: input type=text name=\email\ size=40 maxlength=150/ input type=radio name=\action

Re: [PHP-DB] referencing external functions

2005-02-15 Thread Matt M.
and am trying to use it in this links3.php ?php include('functions.php') or die (mysql_error()); ? but I keep getting the error message *Warning*: main(1): failed to open stream: No such file or directory in *C:\Accounts\dbadream\wwwRoot\links3.php* on line *4* *Warning*: main():

Re: [PHP-DB] $_GET of array variables

2005-01-05 Thread Matt M.
$_GET['simplevariable'] but am not having much luck with anything like: $_GET[arrayvariable$a] (1-dimensional array) or $_GET[arrayvariable$a$b] (2-dimensional array) (I've tried several other odd syntaxes such as $_GET[arrayvariable[$a][$b]]. Also it's not an \ situation.) have you

Re: [PHP-DB] Parsing CSV files into a MySQL Table

2004-11-02 Thread Matt M.
//?php mysql_connect (localhost, foouser, foologin); mysql_select_db (footest1); $csvfile = file(http://foo.com/foolist.csv;); foreach($csvfile as $line_no = $datastring) { $data = explode (,, $datastring); $foo1 = $data[0]; $foo2 = $data[1]; $foo3

Re: [PHP-DB] Parsing CSV files into a MySQL Table

2004-11-02 Thread Matt M.
$csvfile = file(http://foo.com/foolist.csv;); and this fopen(http://foo.com/foolist.csv;, r); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Two session for the same user, possible?

2004-10-21 Thread Matt M.
Is it possible to have two sessions for the same user in php? If yes, how can I implement this? I am currently using one without problem. However, when I try to create a second session, the first one is lost. could you post some code. I am not sure I follow what you are doing. -- PHP

Re: [PHP-DB] pdf

2004-10-15 Thread Matt M.
i want to how i can save the data retrieved from mysql through php in pdf format. http://www.fpdf.org/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Array and insert statement throws error

2004-10-15 Thread Matt M.
if ( is_array( $_SESSION['l_industry'] ) ) { foreach ( $_SESSION['l_industry'] as $p ) { $query = INSERT INTO Profiles_Industries (ProfileID,IndID) VALUES ($LID, $p); } //foreach ( $_SESSION['l_industry'] as $p ) } //if ( is_array( $_SESSION['l_industry'] ) ) --

Re: [PHP-DB] Array and insert statement throws error

2004-10-15 Thread Matt M.
where is your insert statement? I am guessing it is after your loop if ( is_array( $_SESSION['l_industry'] ) ) { foreach ( $_SESSION['l_industry'] as $p ) { $query = INSERT INTO Profiles_Industries (ProfileID,IndID) VALUES ($LID, $p); /This is where

Re: [PHP-DB] Help: First Time Form with Sessions

2004-10-08 Thread Matt M.
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/lurkkcom/public_html/Multi2Return.php:2) in /home/lurkkcom/public_html/Multi2Return.php on line 3 read a little more about sessions. session_start is trying to set a cookie but output has

Re: [PHP-DB] code example to store PHP session data in mySQL ?

2004-10-06 Thread Matt M.
where can I find a working example that shows me how to implement PHPSESSION with MySQL as stor? i know adodb has session functions, download it a nd take a look maybe here http://www.devarticles.com/c/a/MySQL/Developing-Custom-PHP-Sessions/ also try google. -- PHP Database Mailing List

Re: [PHP-DB] Names with apostrophe's

2004-09-29 Thread Matt M.
echo(tda href='user_book_results_detail.php?book=$row[book]$row[book]/a/ td); http://us4.php.net/urlencode -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] File Mime Type Function

2004-09-23 Thread Matt M.
I've looked around for a while, does anyone know of a PHP function already built in to the install that gets the Mime type of a file on the server? you might try this http://pear.php.net/package/MIME_Type/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] Postgresql Performance

2004-08-19 Thread Matt M.
On Thu, 19 Aug 2004 18:12:16 -0500, Norma Ramirez [EMAIL PROTECTED] wrote: Hi all, I have a problem with a small software in Postresql, through the time the database become slower and slower so, quick solution: pg_dump, dropdb, createdb and pg_dump again but this software is becoming important

Re: [PHP-DB] MySQL to EXCEL?

2004-08-17 Thread Matt M.
I'm having a dilemma (Now that I have power back after the hurricane hit us directly in Orlando). Anyway, I need to export a database table to Excel, I can do it as a .txt file without a problem, but I can't seem to get it to put each column into a separate cell when I try to export as an

Re: [PHP-DB] MySQL to EXCEL?

2004-08-17 Thread Matt M.
I have another option that might work for you also. Go to MySQL's website and grab their ODBC driver and use that to pull data directly into Excel. That's what I do and the end result tends to be a lot cleaner than going through cvs or other MySQL exports. I was not sure that this was a

Re: [PHP-DB] MySQL to EXCEL?

2004-08-17 Thread Matt M.
I have another option that might work for you also. Go to MySQL's website and grab their ODBC driver and use that to pull data directly into Excel. That's what I do and the end result tends to be a lot cleaner than going through cvs or other MySQL exports. I was not sure that this was

Re: [PHP-DB] sendmail

2004-08-02 Thread Matt M.
On Mon, 2 Aug 2004 14:31:49 -0400, Aaron Todd [EMAIL PROTECTED] wrote: So far, I have been doing ok with PHP. I feel that I have picked it up rather easily. But now I need some help. I am trying to use the sendmail functions to send data entered in a form to my email address. Currently its

Re: [PHP-DB] Printing selected characters (strcnt?)

2004-07-15 Thread Matt M.
$first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $name = $first_name . ' ' . $last_name $rma = ?strcnt($last_name), 1 . Datetime(?) // takes the 1st character from $last_name and adds datetime in format of 715041200 $rma = substr ($last_name, 0 , 1).Your.Datetime; --

Re: [PHP-DB] Conditional explode?

2004-07-01 Thread Matt M.
On Thu, 1 Jul 2004 14:05:49 -0500, Shiloh Madsen [EMAIL PROTECTED] wrote: Can I use explode in a conditional manner? I.E., can i have it explode on a space, but only if the space is not encased in double quotes? I would use http://www.php.net/preg_split -- PHP Database Mailing List

Re: [PHP-DB] How to define array variable while accessing it ???

2004-06-28 Thread Matt M.
TDDIV ALIGN=CENTER input type=checkbox name=? printf(chk_arr[%d],$i); ? value=?=$row[0]? /DIV/TD setup your checkbox something like this: input type=checkbox name=delete[] value=?=$row[0]? / php will treat this as an array -- PHP Database Mailing List (http://www.php.net/) To