Hi there,
this is my first ever post so please go easy on me. I am currently getting the following error message
"Parse error: syntax error, unexpected T_VARIABLE in /home/where2st/public_html/admin/editvenue_script.php on line 110"
Code is attached
Thanks in advance for any help.
3 3836
The error message states there is a syntax error on line 110.
Please post the block of code around the area of the error
and indicate which is line 110.
We are not proof readers
Hi there,
thanks for your reply. I thought i was making it easier by attaching the code - apologies if this was incorrect. Here is the block of code around my error message. -
Line 72 $q1 = "UPDATE listings set
-
Line 73
-
Line 74 member_id = '$_POST[mem]',
-
Line 75 venuename = '$venu',
-
Line 76 contactname = '$_POST[contactname]',
-
Line 77 contactnumber = '$_POST[contactnumber]',
-
Line 78 province = '$_POST[province]',
-
Line 79 town = '$_POST[town]',
-
Line 80 suburb = '$_POST[suburb]',
-
Line 81 address = '$_POST[address]',
-
Line 82 postcode = '$_POST[postcode]',
-
Line 83 type = '$_POST[type]',
-
Line 84 type2 = '$_POST[type2]',
-
Line 85 intro = '$intro',
-
Line 86 activities = '$_POST[activities]',
-
Line 87 services = '$Servstr',
-
Line 88 activities2 = '$Actstr',
-
Line 89 facilities = '$facil',
-
Line 90 petpolicy = '$_POST[petpolicy]',
-
Line 91 offers = '$offs',
-
Line 92 paydetails = '$Paystr',
-
Line 93 bedrooms = '$_POST[bedrooms]',
-
Line 94 parking = '$_POST[parking]',
-
Line 95 price = '$_POST[price]',
-
Line 96 stars = '$_POST[stars]',
-
Line 97 edited = '$edited',
-
Line 98
-
Line 99 image = '$ImageStr'
-
Line 100
-
Line 101
-
Line 102 WHERE listing_id=$lid";
-
Line 103
-
Line 104 mysql_query($q1);
-
Line 105
-
Line 106 $last = $lid
-
Line 107
-
Line 108 //send an email to NEIL AND SAM
-
Line 109
-
Line 110 $to = 'info@where2stay-southafrica.com';
-
Line 111 $subject = "Listing updated at W2Stay";
-
Line 112 $message = "Hi Neil and Sam - this is a quick note to let you know a listing has been updated at the W2Stay site, the id number is $last";
-
Line 113
-
Line 114 $headers = "MIME-Version: 1.0\n";
-
Line 115 $headers .= "Content-type: text/plain; charset=iso-8859-1\n";
-
Line 116 $headers .= "Content-Transfer-Encoding: 8bit\n";
-
Line 117 $headers .= "From: where2stay-southafrica.com<where2stay-southafrica.com>\n";
-
Line 118 $headers .= "X-Priority: 1\n";
-
Line 119 $headers .= "X-MSMail-Priority: High\n";
-
Line 120 $headers .= "X-Mailer: PHP/" . phpversion()."\n";
-
Line 121
-
Line 122 mail($to, $subject, $message, $headers);
-
there’s a missing ; just before that.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Wescotte |
last post by:
The error message Parse error: syntax error, unexpected $end in FILE on
line X is one I run into frequently and I know the cause is I missed an
ending quote.
Is there an easy way to determine...
|
by: SilvaZodiac |
last post by:
Hi everyone,
I'm still rather new to PHP code, and I have a syntax error. I've tried several different solutions, but it won't fix. It seems to suggest that I need a new bracket somewhere in the...
|
by: needhelp08 |
last post by:
I am getting the error Parse error: syntax error, unexpected T_VARIABLE on line 4 but I can't seem to find what is wrong. Could someone please help.
<?php
$conn = @mysql_connect("localhost",...
|
by: praclarush |
last post by:
I've just started php, and this is a class assignment, but my question is I’m getting this error PHP Parse error: syntax error, unexpected T_IF, expecting T_VARIABLE or '$' in...
|
by: fburn |
last post by:
I need some help with an error I'm getting using php 5.2.5 running on linux.
I receive an error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or...
|
by: Graviz |
last post by:
I am gettin a error message on this script can someone help me. I can't see what is wrong. Thanks in advance for any help you can give me.
here is the error and code.
Parse error: syntax error,...
|
by: brkseven |
last post by:
Looking for help with this Contact Form.
The error is on line 1, but that' doesn't mean a lot, I think. In fact, a php syntax check passed it, but I was hoping for an easy syntax error, it looks...
|
by: Mandyrjs |
last post by:
hi im new to php and i want to code a admin login page where i want to match the values from the login form with the values of the database table.....when i run the login page after entering the user...
|
by: 9139530 |
last post by:
Hey, I'm getting the error:
Parse error: syntax error, unexpected T_VARIABLE in Z:\home\baza\www\get2.php on line 7
with this code (have 2 pages , html-from page (reguser.php) and...
|
by: Carrie Kemp |
last post by:
I am having an error that reads
the code that is in question is:
$list_data->save($dataFile);
How would I fix this?
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| | |