Follow up, sorted it out, erronous variable

This is a discussion on Follow up, sorted it out, erronous variable within the PHP Language forums, part of the PHP Programming Forums category; (code) $mail = ""; $mail=$radio; if ($mail == "yes") { // stick into database //then the database login and update $...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-09-2003
george
 
Posts: n/a
Default Follow up, sorted it out, erronous variable

(code)
$mail = "";
$mail=$radio;

if ($mail == "yes") {
// stick into database

//then the database login and update

$result = mysql_query($sql);
if ($result)
$post = "Yes";
echo "$font>Add to mail list? $mail</font>";
}
elseif ($mail == "no") {
echo "$font>Add to mail list? $mail</font>";
$post = "No";
}
(/code)
Reply With Quote
  #2 (permalink)  
Old 09-09-2003
Randell D.
 
Posts: n/a
Default Re: Follow up, sorted it out, erronous variable


"george" <russell@waiheke.co.nz> wrote in message
news:bcab4b38.0309090139.407385e5@posting.google.c om...
> (code)
> $mail = "";
> $mail=$radio;
>
> if ($mail == "yes") {
> // stick into database
>
> //then the database login and update
>
> $result = mysql_query($sql);
> if ($result)
> $post = "Yes";
> echo "$font>Add to mail list? $mail</font>";
> }
> elseif ($mail == "no") {
> echo "$font>Add to mail list? $mail</font>";
> $post = "No";
> }
> (/code)


Whats your question?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0