PHP is automatically adding quotes and won't allow '<'
Posted: Sun Jan 30, 2011 2:41 am
I have a site up and running just fine with plenty of functions that echo html form elements and work successfully, but today I added a couple more functions to a class and on one of the feedback pages after a user adds an entry to the database I was trying to echo variables the same exact way i have on other pages (which are still working) and variables in an array that were names of SQL column fields were being returned as 0's.
I also noticed that php started automatically adding quotes around anything i echoed.
So if i had a line: echo "Hello World"; it would output "Hello World" (displaying the quotes as if it were part of the string).
I created an entirely new php page with only the following code on it:
and it keeps on giving me the following error:
Parse error: syntax error, unexpected '>' in filename on line ##
Does anybody have any idea what could be causing this to happen?
I would greatly appreciate any suggestions on where to start to look to figure this out.
I also noticed that php started automatically adding quotes around anything i echoed.
So if i had a line: echo "Hello World"; it would output "Hello World" (displaying the quotes as if it were part of the string).
I created an entirely new php page with only the following code on it:
Code: Select all
<?php
echo "<form></form";
?>
Parse error: syntax error, unexpected '>' in filename on line ##
Does anybody have any idea what could be causing this to happen?
I would greatly appreciate any suggestions on where to start to look to figure this out.