WAMP wouldn't spit an error at you if their wasn't an error in your database in the first place.
The common things that could be wrong are:
***I'd recommend getting notepad++ it's an awesome free tool that can really help with coding***
Open your sql file in notepad++ and look for any errors you may have in their.
Another thing you could try would be to import each table one by one.
You may not be connected to the server.
you may not be creating tables the correct way in your code.
I'm not saying any of these are the problems or the solutions to your situation but, they are the most common problems I've run into when I've been importing sql into a WAMP server and usually how I fix them.
This is how to connect to your database:
Code: Select all
<?php
$db = mysql_connect("localhost","root","") or die("Database could not be found");
if(!$db)
die("no db");
if(!mysql_select_db("tutorial",$db))
die("No Database Selected");
?>
save that as
connect.php
And if you wanted to test the connection to the database all you'd have to do is add this to the top of your code:
and if you wanted to learn more about how the connection between php and mysql I'd recommend reading Kevin Yank's tutorial on it which can be found here:
http://articles.sitepoint.com/article/p ... tutorial/2
It helps out a lot if you have a better understanding of the connection between the two even if you're a skilled coder.
Advanced:Html(XHTML), CSS, Writing
Intermediate: php, MYSQL, Level Design, C++, JavaScript
Beginner:Java, C-Lite, 3D modeling
The difference between me and you:
You:

Me:
