-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
blank pages usually mean a MySQL error
-
What is it doing? haha...nice
-
So what IS it doing then? instead
-
Have you tried using another monitor? If another monitor works fine then it is your monitor that is "broken" If another monitor works the same way then it is your video card. At what point do you have to plug the monitor back in? At Windows boot? At POST?
-
I could point you in the right direction but I'm clueless as to what you're asking. Your code doesn't make any sense. $photoName = $_POST['photoT']; $picCaption = $_POST['captionT']; shouldn't even be in the foreach loop. and where is picT coming from. is it a radio button list? what is it. explain more what you are trying to do.
-
What is your code so far that tells the page that it is "Banana"
-
buy a good PHP book. Writing plugins for CMSs isn't a bad idea and it is probably a profitable...scheme. The only problem is that people will only be using Wordpress, Joomla, Drupal, etc for so long. Eventually something will come along to knock all those out too. I remember when phpNuke was the biggest thing on the streets. But you won't get anywhere diving into code you know nothing about. Learn to code some simple thing. Other than Hello World examples. Check out the tutorials here on phpfreaks. Create a sample database...make buttons on a page to delete, update, and insert data to it. You don't have to make anything fancy. The best practice is to make a user membership/login system. If you can make this...using sessinos and cookies and a database,etc,etc...then you are doing good. You also will want to know basic AJAX since AJAX is sweeping the web away. Well, I guess I should say Javascript. Learn Javascript. I'm starting to get contradicting now..so I'll lay it all out. You need to know -HTML -CSS -PHP -JavaScript (and AJAX abilities) once you have these down pat...diving into a CMS like Joomla, drupal, SMF or vbulletin will be a lot easier....even though it is still extremely difficult.
-
so......what's your question
-
going out on a limb here but try using if(!$row['ban']) instead of if(!$ban)
-
if($row['userip] = $_SERVER['REMOTE_ADDR']) { if(!$banned) { echo "The page is shown"; } }
-
well..PHP has nothing at all to do with layout...whatsoever. so it's definitely the CSS. You forgot the beginning span tags echo ""; echo ""; echo ""; echo ""; also you need to specify span in your CSS .image span { float:left; } and tell it to float:left.
-
use instead of like thorpe said... shouldn't be used with CSS
-
what exactly is your question...
-
404 means that the file your are trying to access does not exist maybe you mispelled it or it is in the wrong folder.
-
when and where are you getting these errors.... if you are getting any kind of HTTP error, then Apache is doing its job. i.e. 403 404 501 ..etc etc etc.. unless you have IIS installed and running too...then that would be your problem also...this is Apache installation....not PHP I'll move this for you
-
yes you do....
-
DocumentRoot is the ROOT folder of your localhost anything in this folder is what will come up when people type your IP address/domain into the address bar.. ServerRoot is the ROOT folder of your webserver itself.....AKA Aoache people do not see the contents of this folder....it is solely the backbone of Apache.....although you can route folders from it to a VirtualHost...which IS accessible by the public. Just set accordingly.
-
well it should be there should be near the top....below LoadModules DocumentRoot "E:/xampp/htdocs" # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # Options FollowSymLinks AllowOverride None Order deny,allow Deny from all # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks Includes ExecCGI # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all
-
This is your server root ServerRoot "c:/wamp/bin/Apache/apache2.2.11" and THIS is your DocumentRoot ServerRoot "c:/wamp/bin/Apache/apache2.2.11/htdocs"
-
use an array $string = "The dog is chasing the cat who eats fish and chases a mouse"; $search = array('dog','fish','cat','mouse'); $replace = array('bear','shark','lion','deer'); $string = str_replace($search, $replace, $string); echo $string; Yeilds The bear is chasing the lion who eats shark and chases a deer.
-
use $_GET['username'] instead of $username
-
say what? If you aren't going to select it then why does it matter if it's ascending or descending... Apparently you want to sort something that no one will ever noticed is sorted.... ..correct?