| | |
Parse Error message when testing page on browser - HELP!!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2005
Posts: 1
Reputation:
Solved Threads: 0
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 }
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 }
•
•
Join Date: Oct 2004
Posts: 10
Reputation:
Solved Threads: 0
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.
If you ever need to SMS-enable a website or application or a site for sending SMS, visit our SMS Gateway.
![]() |
Similar Threads
- Need help!! Error message :Parse error T_String... (PHP)
- Unexpected parse error, I dont know what I'm doing wrong. (PHP)
- Error Message: Cannot find server; page cannot be displayed (Viruses, Spyware and other Nasties)
- "Unable to change Browser Settings" Error Message. (Windows NT / 2000 / XP)
- Error message when posting Web page into Word (Windows Software)
- Reload page Error message when starting Windows XP (Viruses, Spyware and other Nasties)
- javayk.dll RUNDLL Error message at startup (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: PHP installation headache
- Next Thread: My phpbb forum doesnt work ?
| Thread Tools | Search this Thread |
5.2.10 action apache api array beginner beneath binary broken cakephp checkbox class classes cms code cron curl database date destroy display dynamic echo echo$_get[x]changingitintovariable... email encode error fcc file files folder form forms function functions google header howtowriteathesis href htaccess html image images include insert ip javascript joomla limit link local login mail memberships menu mlm mod_rewrite multiple multipletables mysql mysqlquery neutrality oop open passwords paypal pdf php provider query radio random record remote rss script search server sessions sockets source space sql strip_tags syntax system table template thesishelp tutorial update upload url validator variable video voteup web window.onbeforeunload=closeme; youtube





