Ok, now that I have raged at my debugging failure (I could see that problem but not see it ~_~)
I had a bug where the import occurred twice, But out of self debugging fixed it,
Thanks for all the help
Sorry, Im still kinda new at php so I have 1 problem that has arose This is the code i used:
<?phpinclude $_GET['q'] . '.php';if(!isset($_GET['q']) { // $q=$_GET["q"]; $_GET['q'] = '';}switch($_GET['q']) { case ''; case 'home': include 'home.html'; break; case 'about': include 'about.php'; break; case 'contact': include 'contact.php'; break; default: // Send a 404 Not Found header header('HTTP/1.0 404 Not Found'); include '404.php';}?>
And this is the error (DreamWeaver said syntax error aswell)
Parse error: syntax error, unexpected '{' in /home/someone1/public_html/index.php on line 3
Any help please?
btw: this file is currently hosted at http://www.someonespecial99.com/index.php
Im trying to create a index file for my site that receives arguments like this: "someonespecial99.com/?p=pagenamehere"
The thing i need help with is getting the ?p= function, Can anyone help me with this please? thx