Affordable web design - $result = mysql_query($sql) or die( Invalid query: .

$result = mysql_query($sql) or die( Invalid query: . mysql_error()); if (mysql_num_rows($result)) { $row = mysql_fetch_array($result); $msg =

Thank You, . $row[ firstname ] .

; $email = $row[ email ]; } else { die( No match for user id . $uid); } } if (isset($_GET[ ml ])) { $ml_id = $_GET[ ml ]; $sql = SELECT * FROM ml_lists WHERE ml_id = . $ml_id . ; $result = mysql_query($sql) or die( Invalid query: . mysql_error()); if (mysql_num_rows($result)) { $row = mysql_fetch_array($result); $msg .= Thank you for subscribing to the . $row[ listname ] . mailing list.
; } else { die ( Could not find Mailing List $ml_id ); } } else { die ( Mailing List id missing. ); } if (!isset($_GET[ t ])) { die( Missing Type ); } switch ($_GET[ t ]) { case c : $msg .= A confirmation request has been sent . to $email.

; break; case s : $msg .= A subscription notification has been . sent to you at $email.

; } $msg .= . Return to Mailing List Signup page ; echo $msg; ?> Excellent job! Now it s time to test your code and figure out how it works. 4. Open your browser and open user.php. You should see a form that looks very much like the one in Figure 14-3. 502 Chapter 14
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply