- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
This plugin is rather funky, but you have to turn off the WYSIWYG editor off in Wordpress:
http://fredfred.net/skriker/index.php/iimage-browser/ And this plugin is more basic, but probably better to use at the end of the day: http://wordpress.org/extend/plugins/flexible-upload/ Both are free. I like free! ====================================================== Please rate me if you found this helpful. Thanks.
You might want to note that this is not the most effective manner of creating a counter in PHP. On a few of my websites, I find it is much more effective to simply create a text file, eg. counter.txt and have PHP read that every time the page is loaded, instead of running a MySQL query. Then, have PHP also update the counter.txt file by adding 1 to the number already listed in the file and read to the user.
just create a logout.php script with the following
<?php session_start(); session_destroy();
header("Location: index.php"); ?>
Have your logout button/link/whatever just open that page which connects to the session with session_start. Session destroy does exactly what it sounds like... it unsets all session data and tells the server to end the session. The header request then just re-directs the user to whatever page you want after (just change out index.php)
This error means that the program doesn't understand the code you wrote.
If you are lucky the error points to the file and the line number where PHP got confused. Sometimes PHP points directly at the error, but other times PHP is confused as a result of an earlier error in the script.