Forum
Topic RSS
20:04
08/07/2011
OfflineHi… Im tring to create the "myfirst grid" but when im running the script something goes wrong with xml file.
here is the output
XML Parsing Error: junk after document element
Location: http://localhost/SpDatabase/res/grid/
Line Number 62, Column 1:<br />
^
and here is the code of file index.php
What do you think is going wrong ?
Thanks.
20:50
08/07/2011
OfflineI made two changes and the error changed :
change 1
$sord = $_GET['sord'];
INTO
$sord = 'invid';
change 2
$SQL = "SELECT invid, invdate, amount, tax,total, note FROM invheader ORDER BY $sidx $sord LIMIT $start , $limit";
INTO
$SQL = "SELECT invid, invdate, amount, tax,total, note FROM invheader ORDER BY $sidx , $sord LIMIT $start , $limit";
The XML error now be this :
XML Parsing Error: junk after document element
Location: http://localhost/SpDatabase/res/grid/
Line Number 62, Column 1:<?xml version='1.0' encoding='utf-8'?><rows><br><page>1</page><total>1</total><records>1</records><row id='1'><cell>1</cell><cell>2001-01-10</cell><cell>103.00</cell><cell>45.00</cell><cell>149.00</cell><cell><![CDATA[This is record 1]]></cell></row></rows>
^
Most Users Ever Online: 994
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home