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 a href='somefile.php?order=; if ($order == ASC){ echo DESC; }else{ echo ASC; } echo '; - Original Message -

[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 tag/tag. It stops at the . If I take out the it works perfectly. Any ideas on how I can fix this?

[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

[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

[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] 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: ? function Redirect ($url) { Header (Location: . $url); exit; } ? How do I call the function? 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] 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] 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] 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

[PHP-DB] Updating and deleting

2003-04-05 Thread Rick Dahl
Why won't this work? html titleEdit Show List/title body ?php $db = mysql_connect(localhost, root); mysql_select_db(websitedb,$db); if($sent) { $sql = UPDATE bp set sent=$sent where fname=$fname AND lname=$lname; mysql_query($sql); ? Sentbra

Re: [PHP-DB] mail() function

2003-03-24 Thread Rick Dahl
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, I don't have one. Where can I get one

[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 sadflkjaflkasdj; } What am I doing wrong? Rick

Re: [PHP-DB] mail() function

2003-03-21 Thread Rick Dahl
, 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. if($blankpostage) { $to = Rick Dahl [EMAIL PROTECTED]; $subject = Online B+P Request