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 -
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?
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
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
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
How would I remove a # from a string?
I want #2 to be 2.
- Rick
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
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
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
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
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
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
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
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
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
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
, 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
17 matches
Mail list logo