Forum Moderators: coopster

Message Too Old, No Replies

UwAmp | Php Script not run in local, but run on webhosting

UwAmp | Php Script not run in local, but run on webhosting

         

azocomposto

9:32 am on Feb 28, 2014 (gmt 0)

10+ Year Member



Hi, I have install Uwamp server on my windows7 OS. This software is beautiful and easy to use and include php 5.3+apache+mysql. The same problems hope on xampp and easyphp.

But I have this script. This script work fine on webhosting, but on Uwamp not working.

Why?


<?php
include("connect.php");
$result = mysql_query("SELECT me_id FROM ms_etichette ORDER BY me_descrizione asc");
$rows=mysql_fetch_array($result);
?>
<?=$rows['me_id']; ?>


Thanks

incrediBILL

9:16 pm on Mar 1, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You didn't include the contents of "connect.php" but I'll assume that's your code to connect to your database which is failing.

Are the passwords and path to your database the same on hosting and UWamp?

If you enable PHP debugging on your page it'll spit out a bunch of messages telling you what errors occur and what lines they happen on, try adding this to the top of your code:

error_reporting(E_ALL);

Try that and let us know what it says!