473,382 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Parse error: syntax error, unexpected T_VARIABLE on line 110

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.
Attached Files
File Type: txt Error Code.txt (4.0 KB, 466 views)
Mar 15 '11 #1
3 3836
code green
1,726 Expert 1GB
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
Mar 15 '11 #2
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.

Expand|Select|Wrap|Line Numbers
  1. Line 72   $q1 = "UPDATE listings set 
  2. Line 73                
  3. Line 74                member_id         = '$_POST[mem]',
  4. Line 75                venuename         = '$venu',    
  5. Line 76                contactname         = '$_POST[contactname]',
  6. Line 77                contactnumber     = '$_POST[contactnumber]',
  7. Line 78                province         = '$_POST[province]',
  8. Line 79                town                = '$_POST[town]',
  9. Line 80                suburb                = '$_POST[suburb]',
  10. Line 81                address             = '$_POST[address]',
  11. Line 82                postcode         = '$_POST[postcode]',
  12. Line 83                type             = '$_POST[type]',    
  13. Line 84                type2             = '$_POST[type2]',        
  14. Line 85                intro             = '$intro',    
  15. Line 86                activities         = '$_POST[activities]',    
  16. Line 87                services         = '$Servstr',
  17. Line 88                activities2         = '$Actstr',
  18. Line 89                facilities         = '$facil',    
  19. Line 90                petpolicy         = '$_POST[petpolicy]',    
  20. Line 91                offers             = '$offs',
  21. Line 92                paydetails           = '$Paystr',
  22. Line 93                bedrooms         = '$_POST[bedrooms]',
  23. Line 94                parking             = '$_POST[parking]',
  24. Line 95                price             = '$_POST[price]',
  25. Line 96                stars             = '$_POST[stars]',
  26. Line 97                edited             = '$edited',
  27. Line 98
  28. Line 99             image              = '$ImageStr'
  29. Line 100
  30. Line 101
  31. Line 102   WHERE listing_id=$lid";
  32. Line 103
  33. Line 104   mysql_query($q1);
  34. Line 105
  35. Line 106   $last = $lid
  36. Line 107    
  37. Line 108   //send an email to NEIL AND SAM
  38. Line 109    
  39. Line 110        $to = 'info@where2stay-southafrica.com';    
  40. Line 111        $subject = "Listing updated at W2Stay";
  41. 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";
  42. Line 113
  43. Line 114        $headers = "MIME-Version: 1.0\n"; 
  44. Line 115        $headers .= "Content-type: text/plain; charset=iso-8859-1\n";
  45. Line 116        $headers .= "Content-Transfer-Encoding: 8bit\n"; 
  46. Line 117        $headers .= "From: where2stay-southafrica.com<where2stay-southafrica.com>\n";     
  47. Line 118        $headers .= "X-Priority: 1\n"; 
  48. Line 119        $headers .= "X-MSMail-Priority: High\n"; 
  49. Line 120        $headers .= "X-Mailer: PHP/" . phpversion()."\n"; 
  50. Line 121
  51. Line 122        mail($to, $subject, $message, $headers);
  52.  
Mar 15 '11 #3
Dormilich
8,658 Expert Mod 8TB
there’s a missing ; just before that.
Mar 15 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
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...
3
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...
4
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",...
5
praclarush
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...
2
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...
4
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,...
3
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...
5
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...
4
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...
1
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?
1
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...
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.