944,082 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3441
  • PHP RSS
Jan 28th, 2005
0

Parse Error message when testing page on browser - HELP!!

Expand Post »
Working on a User Registration System and when I am testing my page on the browser (I'm developing using mac) - but its giving me a Parse error on line 27.

please help, what am I doing wrong here?



1<?php require_once('Connections/db_d4f2005.php'); ?>
2 <?php
3 function sendMail($to, $hash) {
4 $message = "Thanks for joining Design 4 Fitness. In order to enable yourlogin you will have to validate your email address by clicking on the following link:\n\n";
5 $message .= "http://www.design4fitness.com/validate.php?hash=$hash\n\n";
6 $message .= "All that this will do is confirm to our system that you have received this email and that the email address that you entered is therefore valid.";
7 mail($to, "Please confirm your email address", $message);
8 }
9
10 function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""){
11 $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $theValue;
12
13 switch ($theType) {
14 case "text":
15 $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
16 break;
17 case "long":
18 case "int":
19 $theValue = ($theValue != "") ? intval($theValue) : "NULL";
20 break;
21 case "double":
22 $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
23 break;
24 case "date":
25 $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
26 break;
27 case "defined":
28 $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
29 break;
30 }
31 return $theValue;
32 }
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jsamson is offline Offline
1 posts
since Jan 2005
Feb 8th, 2005
0

Re: Parse Error message when testing page on browser - HELP!!

Have you solved this problem yet? If not, let me know, and please remove the line numbers because it makes it difficult for us to check out your code.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fambi is offline Offline
10 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP installation headache
Next Thread in PHP Forum Timeline: My phpbb forum doesnt work ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC