Hi All,

I have been using a latest version of wamp daily for the last month on this PC and suddenly over the weekend it has stopped working.

I have tried the following:

I have restarted all services a number of times.
Restored back to earlier point on Friday when known working.
The Wamp icon is green
I can access PHPMyadmin
Wamp states server is online
Using long code structure <?php ?>
Using correct extention
no skype

Now I don't know why this has happend

Thanks in advance

David

Recommended Answers

All 3 Replies

The only thing I can think of:
make sure your url is: http://localhost/youfile.php
not c:\wampp\htdocks\yourfile.php (what you will get if just clicking on it)

Hi pzuurveen, thanks for your reply, I type the full url i.e localhost/db/index.php

if I just click on it, the file will open in DW.

http://localhost/db/index.php revert to localhost/db/index.php

and displays the following:

<?php
//dummy data

/*if(isset($_POST['title'], $_POST['post'])){
$UserFullName = htmlentities($_POST['UserFullName']);
$UserEmail = htmlentities($_POST['UserEmail']);
$UserLastPassword = htmlentities($_POST['UserLastPassword']);
$UserActive = htmlentities($_POST['UserActive']);

}*/

$UserFullName='Sam Smith';
$UserEmail ='email@sams';
$UserLastPassword ='15 Nov 2013';
$UserName= 'Sam Smith';
$UserActive='1';
require_once 'classes/db.php';
function Users(){
    $users = DB::getInstance()->query('SELECT UserID, UserFullName, UserEmail, UserLastPassword, UserName, UserActive FROM Users');
        if ($users->count()){
            foreach ($users->results() as $user){
            echo $user->UserLastPassword." ".$user->UserName." ". $user->UserActive,'<br />';
            }
        }
}
Users();

function UserInsert($UserFullName,$UserEmail,$UserLastPassword,$UserName,$UserActive){
 $usersinserts = DB::getInstance()->affected_rows("INSERT INTO Users (UserFullName, UserEmail, UserLastPassword, UserName, UserActive) VALUES ('$UserFullName','$UserEmail','$UserLastPassword','$UserName','$UserActive'");
}
UserInsert($UserFullName,$UserEmail,$UserLastPassword,$UserName,$UserActive);



UserInsert();

Thanks

David

Ok solved reinstated a backup of all the files from Friday. Still not sure why it happend.

Thanks again

David

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.