Problem with PDO wamp and CentOS
Posted: Thu May 22, 2008 6:44 am
Hi There,
Im having problem getting my code to work on our test server which uses CentOS,
Its the old story of 'It Works on My Machine' I am running a wamp server on windows,
This is the code that is falling over on the server yet working fine locally
It seems to be something with PDO, we have pdo turned on the machine as other functions work,
Any Help Appreciated,
Chris
Im having problem getting my code to work on our test server which uses CentOS,
Its the old story of 'It Works on My Machine' I am running a wamp server on windows,
This is the code that is falling over on the server yet working fine locally
Code: Select all
function getSurveyInfo($numberofUsers,$userInfo)
{
echo $numberofUsers;
for ($x=0;$x<$numberofUsers ;$x++)
{
$y=0;
$stmt = $this->dbh->prepare("SELECT `sid` FROM `lime_surveys` WHERE `owner_id` = '".$userInfo[$x][uid]."'");
if ($stmt->execute(array($_GET['name']))) {
while ($row = $stmt->fetch()) {
$results[$x][$y] = $row;
$y=$y+1;
}
}
if (count($results[$x])==null)
{
}
else
{
}
}
print_r($results);
return $results;
}
Any Help Appreciated,
Chris