Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem w/ search or searchresults.php after building pages from in-class example #17

Open
buhr3940 opened this issue Mar 8, 2015 · 1 comment

Comments

@buhr3940
Copy link

buhr3940 commented Mar 8, 2015

(NOTE: My code is in a separate repo called HW5-AJAX: https://github.com/buhr3940/HW5-AJAX) When I try to search for a name on the search.php page, I get lines 11-14 from searchresults.php showing up in my browser.

'.$row['name']."-".$row['username']; echo""; } mysql_close($con); ?>

Used the dev tools in Firefox and got this longwinded message:

"The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. searchresults.php"

I added "meta charset="UTF-8" to the head of both search and searchresults.php. But I still get the same error message. Any ideas as to what can resolve this?

@buhr3940
Copy link
Author

Have fixed the issue with setting UTF-8. But the error still shows in the browser after hitting search:

'.$row['name']."-".$row['username']; echo""; } mysql_close($con); ?>

When I used the developer tools now, it just tells me it has to do with element { inline }. It does not call out a specific line of code. It highlights most of the code in my searchresults.php in red including:

'//Not highlighting the rest of this line //not before //Not highlighting the rest of the line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant