Re: [PHP-DB] using query_strings in sql

2004-01-21 Thread Rick Dahl
Looking at that. You are combining html and php without distinguishing between the two. I am assuming you are in "php mode" because html wouldn't give you errors. try this: echo ""; - Original Message - From: "mayo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January

Re: [PHP-DB] PHP and XML Parsing

2003-11-26 Thread Rick Dahl
Thanks...I used that idea and just did some replacing before and after the parsing. The database is maintained by our clients and it would be too confusing for them. Thanks RIck - Original Message - From: "Ignatius Reilly" <[EMAIL PROTECTED]> To: "Rick Dahl" &l

[PHP-DB] PHP and XML Parsing

2003-11-26 Thread Rick Dahl
I have a piece of xml that has characters like & and other non-normal ones. When I use the $this->parser = xml_parser_create(); functions it doesn't read the entire character sting inside the . It stops at the &. If I take out the & it works perfectly. Any ideas on how I can fix this? Ric

[PHP-DB] PHP and XML

2003-08-14 Thread Rick Dahl
What is the best way to parse through a non-repeting XML output using php? - Rick -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Form Actions in PHP

2003-07-16 Thread Rick Dahl
I have a small problem. I need to have a form post to two different locations. If a variable is a certain value, it goes to location_one.cgi and if it is another value, it goes to location_two.cgi. This may turn out be a html problem but I figured php was the way to go since it is more dynami

[PHP-DB] Getting a date in number form

2003-07-15 Thread Rick Dahl
I need to get the month in a number format; July =7. Right now it is returning the string: July. This is what I am doing. $today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; What can I do to get the number instead of the word? - Rick

[PHP-DB] removing a # from a string

2003-07-02 Thread Rick Dahl
How would I remove a # from a string? I want #2 to be 2. - Rick

[PHP-DB] Reading from a file

2003-07-01 Thread Rick Dahl
I need to read from a file that is tab delimited. Is there anyway to specify that it reads between each tab and that is it. I know fread() uses bytes to figure out what to read but that isn't very practical in my case. Also, how do I get rid of any white space at the end of a variable if the

[PHP-DB] Altering a column in an existing table

2003-06-27 Thread Rick Dahl
I have a column (ID) that is currently not auto_incremental. I need to change it so that it is auto_incremental. There are already records in this column. also, I need to change the field type from int(4) to int(8). Rick

[PHP-DB] formatting a timestamp

2003-05-31 Thread Rick Dahl
I want to print out a timestamp of length 14. I want to have it formatted like: mm-dd-yy : hh-mm I have looked but all I can find is how to format a date and I don't want that. I want the time also. Rick "Don't burn the day...away" ~ DJM __

[PHP-DB] to all the people that lended a hand

2003-05-31 Thread Rick Dahl
to all the people that tried to lend a hand. For some reason the javascripts didn't work. There wasn't a need to get as complicated as session variables. I ultimately figured out a way to do it by just moving { } around. Rick

[PHP-DB] another redirecting question

2003-05-31 Thread Rick Dahl
The scripts I need to run before I redirect automatically send output to the browser. I cannot alter these scripts. Is there a way around this? Rick

[PHP-DB] redirecting to a page

2003-05-31 Thread Rick Dahl
I need to redirect to another page once some scripts that I can't alter run. I have this function at the top of my page: How do I call the function? Rick

[PHP-DB] Member login

2003-05-27 Thread Rick Dahl
Having a member login is just checking the password against the database and starting a session for that person, right? Rick _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid

[PHP-DB] Updating and deleting

2003-04-05 Thread Rick Dahl
Why won't this work? Edit Show List Senthttp://twostep.antsmarching.org/bpedit.php3";>Back Receivedhttp://twostep.antsmarching.org/bpedit.php3";>Back Deletehttp://twostep.antsmarching.org/bpedit.php3";>Back \n"; echo "DateNameAddress 1Address 2City, State ZipReceivedSentEdit"; while($

Re: [PHP-DB] mail() function

2003-03-24 Thread Rick Dahl
o: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] mail() function Date: Sat, 22 Mar 2003 14:49:29 +0800 On Saturday 22 March 2003 16:53, Rick Dahl wrote: > I think the fact that I don't have a mailserver would do it. Unless the > PHP home edition 2 bundle has a mailserver,

Re: [PHP-DB] mail() function

2003-03-21 Thread Rick Dahl
: <[EMAIL PROTECTED]> Sent: Friday, March 21, 2003 10:41 PM Subject: Re: [PHP-DB] mail() function > On Saturday 22 March 2003 16:38, Rick Dahl wrote: > > I can't get it to work. I get the echo to show up but never receive a > > email. > > > > &

[PHP-DB] mail() function

2003-03-21 Thread Rick Dahl
I can't get it to work. I get the echo to show up but never receive a email. if($blankpostage) { $to = "Rick Dahl <[EMAIL PROTECTED]>"; $subject = "Online B+P Request"; $body = "Show ID = " . $id; mail($to, $subject, $body); echo &qu