PDA

View Full Version : php database result = Ext.fly(...)' ist Null oder kein Objekt



robertdbuckley
17 Aug 2011, 1:28 PM
Hi,

In Firefox and Chrome the results of my simple database query are shown fine in a panel. In IE7 I get the following error..

'Ext.fly(...)' ist Null oder kein Objekt

Can anyone tell me what I have to do to get this working in IE?

yours,

Rob


var Panel = new Ext.Panel({ id: 'panel',
title: 'panel',
width: 200,
minWidth: 150,
border: false,
baseCls: 'x-plain',
//contentEl: 'content'
autoLoad:{
url:'autoload-content.php'
}
});


<?php
$host = 'xxx';$port = 'xxx';$database = 'xxx';$user = 'xxx';$password = 'xxx';
$connectString = 'host=' . $host . ' port=' . $port . ' dbname=' . $database . ' user=' . $user . ' password=' . $password;

$link = pg_connect ($connectString);


if($link){ echo "Connected";}else{ die('Error: Could not connect: ' . pg_last_error());}
$query = 'select * from eeg_metadata';
$result = pg_query($query);
if(!$result){ echo "no result";}
$i = 0;echo '<html><body><table><tr>';while ($i < pg_num_fields($result)){ $fieldName = pg_field_name($result, $i); echo '<td>' . $fieldName . '</td>'; $i = $i + 1;}echo '</tr>';$i = 0;
while ($row = pg_fetch_row($result)) { echo '<tr>'; $count = count($row); $y = 0; while ($y < $count) { $c_row = current($row); echo '<td>' . $c_row . '</td>'; next($row); $y = $y + 1; } echo '</tr>'; $i = $i + 1;}pg_free_result($result);
echo '</table></body></html>';?>