PDA

View Full Version : If then else (may be a stupid question)?


Paws
06-04-2007, 11:02 AM
I know you don't like dreamweaver's auto code davidj, but I would like to just get this process to work for future too ("same problem for 1hour")

This may be a stupid question but it's not working!
I have this:
if(($row_rsvote['vercode'] != 'voted') ||($row_rsvote['vercode'] != NULL)){
$MM_redirectLoginSuccess = "result.php"; //if empty
}else{
$MM_redirectLoginSuccess = "booksubmit.php"; //not empty
}
Now the objective is to go to the correct page if the field is NULL or empty.
It's just not working, any ideas WHY?:confused:

davidj
06-04-2007, 01:04 PM
paws your a pest!

learn to code! Please, Please,Please. I will help you if you learn to code

i will show you this once because its you....

where you have this...

$MM_redirectLoginSuccess = "booksubmit.php"; //not empty

You could replace with
header("location:booksubmit.php");

If i see any dreamweaver code next time i will have to refuse to help..

it just happens that ive been to the pub and im abit pissed

Paws
06-04-2007, 01:31 PM
Thank you wont pester you again with these dreamweaver issue.:mrgreen:

Thanks again, I didn't see that one!

Paws
06-04-2007, 05:49 PM
I have it sorted, something I thought of which I should have thought in the beginning.
Leave the login as is and redirect to a page that can solve the query.
<?php
if ($row_rsvote['vercode'] == 'voted'){
header("Location: booksubmit.php");
}else{
header("Location: result.php");
}
?>
Problem solved.
Thank you all for your help!

davidj
06-04-2007, 06:14 PM
great

now get programming like a professional

Paws
06-04-2007, 06:29 PM
I wanted to ask you davidj.

Am I not actually allowed to ask you questions on or about dreamweaver or the dreamweaver code?

The reason I ask is as you know what the link is to your forum and you actually have a section in your forum labeled Dreamweaver.

Do I need to hand code just to ask a question in this forum of yours?

Just because dreamweaver puts the code in, does that mean I am not supposed to use it, as I can hand code if and when needed.

I hope that it makes sense.

davidj
06-04-2007, 06:44 PM
first its not my forum so ask what you want

i personaly choose not to help regarding dreamweaver writen PHP because you dont benefit from it but that doesnt mean you cant post. As long as the rules arnt broken i dont have the right to filter posts.

Paws
06-04-2007, 07:08 PM
Ok thanks, BTW who's forum is it?

davidj
06-04-2007, 07:18 PM
a hidious creature

some say his blood is antifreeze and that if he were to look at custard it would turn toxic and that his skin has the same texture as a dolphin and His tears are adhesive.

Paws
06-04-2007, 07:50 PM
And you say that about the owner/runner.

Andromeda
06-05-2007, 09:32 AM
a hidious creature some say his blood is antifreeze and that if he were to look at custard it would turn toxic and that his skin has the same texture as a dolphin and His tears are adhesive.

Oh! I always thought he looked like the attached.

domedia
06-05-2007, 03:52 PM
HAHA excellent :-)

Paws, I guess I built the site/forum, but 90% of this site is the help, tutorials and discussions going on, which all of you can take credit for.

Paws
06-05-2007, 04:05 PM
Thanks for your response domedia

Andromeda
06-05-2007, 08:12 PM
Oh! I always thought he looked like the attached.

I'm only repeating what I was originally told. :grin:


http://www.dreamweaverclub.com/forum/showthread.php?p=119910#post119910