Basic question..
Posted: Wed Sep 19, 2007 2:12 pm
feyd | Please use
Pretty sure I shouldn't use while() but I'm still relatively new to php..
Thanks in advance!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello everyone!
I just have a quick question, I'm trying to get a variable $tech1 to be represented as another variable which is always changing i.e.:Code: Select all
if($tech == "Chris") {
$chris = "chris@blah.com";
while($tech1 == $chris);
} else {
if($tech == "Karyn") {
$karyn = "karyn@blah.com";
while($tech1 == $karyn);
} else {
if($tech == "Kelly") {
$kelly = "kelly@blah.com";
while($tech1 == $kelly);
} else {
if($tech == "Jonathan") {
$jonathan = "jonathan@blah.com";
while($tech1 == $jonathan);
} else {
if($tech == "Hector") {
$hector = "hector@blah.com";
while($tech1 == $hector);
} else {
if($tech == "Osvaldo") {
$osvaldo = "osvaldo@blah.com";
while($tech1 == $osvaldo);
} else {
if($tech == "Scott") {
$scott = "scott@blah.com";
while($tech1 == $scott);
} else {
if($tech == "Travis") {
$travis = "travis@blah.com";
while($tech1 == $travis);
}
}
$to = $tech1;Thanks in advance!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]