First off, I am pretty much a PHP nub. I can read and understand the language (most of the time) so I figured I could get this to work.
So, my plan was to make a simple SQL server with a PHP bullitin board on it. No Problem, that's done. Now, I want to make a submit form and eventually work with GD2 to do a little bit of graphical stuff. I am working with templates on top of templates in this phpBB... of course.. So I copied a page and started to change the body of that page to reflect the simple form that I would like to make.
The form is simple, it has a drop down box which is supposed to pull just 13 different names off of the server (which is already set up correctly on the server). Then under that drop down box there is an input box where you can type a name as well. After that, a submit button. Simple
Here's the problem:
1. When I name it *name.php, and upload it and recache the website from the administration section, I only see a dropdown box with nothing inside of it to select and a sumbit button.
2. When I name it *name.html, and upload, recache, I see a dropdown box with nothing in it, the input box and the submit button.
3. When I make a regular php page without the template with the same code, I can see the dropdown box with all of the names from the server and the input box and the submit button. It all works, it just doesnt match the page.
are these templates preventing this form to connect to the SQL server correctly? I would assume no, since the entire website is built on it. am I putting my "" $dbc = mysql_connect "" code on the right page? (which one should it be, if it should even be in there at all
Here is the code for the form. Like I said, it is very simple.
Code:
<form>
<p align="center">Select your Army:
<select name="br_Armies">
<?
$query="SELECT * FROM br_Armies ORDER BY br_Army_Name";
$r=mysql_query($query);
while($row=mysql_fetch_array($r)){ ?>
<option value="<? echo $row['ID'] ?>"><? echo $row['br_Army_Name'] ?></option>
<? } ?>
</select>
</p>
<p align="center">Please type your Personal Army / Chapter Name
<input type="text" name="firstname" />
<br />
</p>
<div align="center">
<input type="submit" value="Submit your Army" />
</div>
</form>
I hope this forum is meant for things like this. I tried to search for this problem on google and other php sites, but I don't exactly know what to even search for! This seems like a pretty specific problem. I am extremely sorry if this has been answered before!
Thank you all in advance
Help on query replacing the date
Hi Pals,
mySQL and PHP search
Hello,I am trying to code a project and ran into a brick wall with one of my pages. I am pretty new at php/mySQL and can not figure this out. Now I know that you are not going to sit there and type my
DirectoryIterator and Hacked Website
Hi Everyone.My problem:Some one has been sneaking in to my website hidden Iframes. I've changed passwords & reset permissions to read, but then the permissions get changed to include write and
Is it possible to put an entire 500-page book in a database with PHP?
I am working on an intranet and I was wondering if its possible to code php with mysql to enter a full-text 500 page book into a database since I will be doing lots of updates to the pages? thanks
very easy question about SQL info
Hello,I think that I have a very easy question.I know how to create a form using php SQL and display the info.BUT the only problem that I have is:In my website, I am linking all the pages with the
Downloading file (Headers)
I'm trying to make users download a file, but they must wait 60 seconds before it begins.But, I'm stuck - the file isn't downloading, and no error is being shown (I've enabled E_ALL error
Curl & sessions PLS HELP
Hello,I have a problem with curl and sessions and i will try to explain the best i could.01. I want to download a file from (http://subdomain.example.com/name-13075.html) with curl.02. The problem is:
Quick fix: Conditional statement with an array
Hi, I'm getting the temperature value off of the Environment Canada website along with the icon filename, so I can display my own icons and temperature on my site. All this works and I can display the
Production Order Enterprise Service to Manufacturing Exctn Sys (MES) ???
Hello Experts,
Mysterious Timeouts
I've deployed a few simple AJAX-enabled web page to a local server that is accessed through the Internet by just two people: Me & one client.When running in VS2008 it works perfectly fine but when