PHP - Have No Clue!? Please Help!
Similar TutorialsThis wont work for some reason and its begining to get to me, any chance of some help? Code: [Select] <?php /* Calculator */ if($submit) { echo $numa / $numb / $numb2; { } else { ?> <form method="POST" action="<?php $_SERVER['PHP_SELF']; ?>"> <p>number 1: </p> <p> <input type="text" name="numa" size="10"> </p> <p>number 2: </p> <p> <input type="text" name="numb" size="10"> </p> <p>number 3: </p> <p> <input type="text" name="numb2" size="10"> </p> <p> <input type="submit" value="Calculate output!" name="submit"> </p> </form> <?php } ?> I've got: Quote /A/index.html /A/1/index.listing /A/2/index.listing /A/3/index.listing In index.html, I've got the following PHP code: Quote <?php $files = glob('./*/*.listing'); foreach ($files as $file) { include $file; } ?> As you can see, what PHP code does is include()'s all the index.listing files. I then create a clone of the A directory and alter the HTML in the .listing files so can tell the difference between A & B when they render: Quote /B/index.html /B/1/index.listing /B/2/index.listing /B/3/index.listing The issue I am having is "/B/index.html" is ()including the .listing files from the /A/*/ directory, when it should be including them from the /B/*/ directory. I can't understand why this is happening and hoping someone could shed some light on the issue? Howdy ya'll . . .
I am a new member here. My background with html & css is all self-taught, but I have no knowledge of PHP so I am here looking for some expert help with a problem I am having with a comments script that I have on some of the pages of my new website. So, because of my ignorance when it comes to PHP, please be gentle with me. LOL
So here is my problem:
I am using the comments script from Script Mills in the sidebar of my website.
I have overcome the first big obstacle - got it installed and working.
I posted a test comment and it worked, but I do not like the way the posted comment shows on the page.
I have searched all the script folders for a style sheet and can't find one. So my question is: how does one go about styling/changing the way the output of a script like this posts to the page?
If you need to see what I am talking about, the page http://pickmysmoker....smoker_1280.php and if it will help to understand what I am trying to do, feel free to post anything to the comment and see how it posts.
In particular, I would like to move the comments further down in the sidebar and utilize more of the sidebar area so that the comments take up more of the width.
I hope my question makes sense and there is someone here that can offer me some help/advice/guidenance in getting this squared away.
Thanks in advance . . .
|