Category : xampp

Want to unit test connection with database, if it retrieves hardcoded test users. What I have is Test class "DatabaseQueryHandlerTest" <?php use PHPUnitFrameworkTestCase; require_once ‘DatabaseQueryHandler.php’; class DatabaseQueryHandlerTest extends TestCase { public function testShouldFindAdminDataRow() { require("dbconnection.php"); $databaseHandler = new DatabaseQueryHandler(); $result = $databaseHandler->SelectFromAdmin("UnitTestAdmin", "UnitTestPswAdm"); $this->assertEquals(true, $result != null); } } ?> Then I have "DatabaseQueryHandler" itself. ..

Read more

I’m using XAMPP to create a project that will implemented in a proper server (in future). So i’m trying to learn how to create vHosts and to run html,php ecc.. code in them. Until now I’m not having problems with the creation of the website, the problem is that, after configuring the vHost i tried ..

Read more

I am trying to print data from a database for a project I have been working on. The data print out just fine, but it prints out twice. I have searched for a way to resolve this problem but found nothing. Here’s my code: <?php require (‘config.php’); /* ob_start(); session_start();*/ ?> <?php $stmt = $conn->prepare("SELECT ..

Read more

I am working on magento so, i need xampp setup to do so. when i installed xampp its working fine but, after some days of working when i try to start mysql it’s not starting. I tried so many solutions on the internet but nothing works, i wind up like reinstall xampp (its very time ..

Read more