Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Getting Started code have problem
12/12/2008
07:25
Avatar
ekid
Member
Members
Forum Posts: 16
Member Since:
12/12/2008
sp_UserOfflineSmall Offline

Warning: Division by zero in C:\\wamp\\www\\example.php on line 45
Couldn t execute query.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

my 45 line

 $total_pages = ceil($count/$limit);

i am copy from jqgrid_demo Getting Started code

16/12/2008
02:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Copyng in many cases is wrong since of bad characters.

Try to explain yourself what is this.

Every line is commented

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

18/12/2008
16:03
Avatar
hankhepler
Member
Members
Forum Posts: 6
Member Since:
19/12/2008
sp_UserOfflineSmall Offline

check out the path for the js folder in your jqgrid.js file. I was using the grid in a different directory and had the same error until I changed the path in the file (should be the third line)

function jqGridInclude()
{
    var pathtojsfiles = "/pathtothejqGrid JS folder/js/"; // need to be ajusted

19/12/2008
13:48
Avatar
daveyoi
daveyoi
Member
Members
Forum Posts: 8
Member Since:
18/12/2008
sp_UserOfflineSmall Offline

I would guess that your $count or $limit value is 0 - check that your query is actually returning rows.

27/06/2009
08:11
Avatar
ivanhalen
Member
Members
Forum Posts: 3
Member Since:
26/06/2009
sp_UserOfflineSmall Offline

I just gave an answer here, hope it can help:

http://www.trirand.com/blog/?p...../post-7488

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
156 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information