| View previous topic :: View next topic |
| Author |
Message |
CaptainPasty
Joined: Sat Aug 28, 2010 11:00 am Posts: 5 Location: Manchester
|
Posted: Sat Oct 09, 2010 11:21 pm Post subject: PHP Coding Academy Project 4 - missing something? |
|
|
Hi all,
Finally made it to the last project in the mini book but seem to have hit a snag. MySQL seems to be doing everything it should and I've created the "testing" database with no problems, but when I get as far as running project4.php in my browser I get a blank page. I've taken out the PHP bit and run it with just the HTML code and it displays the forms correctly, so I'm assuming I've either missed something in the PHP section or my setup might be missing something (this happened in another post I made for a problem I had in Project 3). Would anybody mind having a look over my code and checking that I'm not missing anything in it? If all looks ok any suggestions would be great:
<?php
//change "password" to your MySQL password!
mysql_connect("localhost","root","anyoldpassword");
mysql_select_db("testing");
?>
<h1>Add new task</h1>
<form method="post" action="project4.php">
<p>Name it:<input type="text" name="task_name"/></p>
<p>Describe it:<input type="text" name="task_description"/></p>
<input type="submit" value="Add"/>
</form>
Thanks in advance |
|
| Back to top |
|
 |
CaptainPasty
Joined: Sat Aug 28, 2010 11:00 am Posts: 5 Location: Manchester
|
Posted: Sun Oct 10, 2010 11:23 am Post subject: Nevermind... |
|
|
| Started up my netbook this morning and it's working fine. I think I must have added or replaced some SQL component before I started and forgot to reset...Doh. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|