Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 06:23:55 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155464 Posts in 21707 Topics by 7732 Members
Latest Member: DarrellDD
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: AJAX engine listings data with PHP and mySQL  (Read 1421 times)
Luckyluke

Offline Offline

Posts: 555



« on: November 15, 2008, 11:19:17 AM »

Hi,

Here is a message for all of you PHP coders.
On this site you will see an AJAX engine listings data with PHP and mySQL. What's in a name but it looks like powerful stuff.
Since I'm not a PHP coder, I want to know whether someone can fold this in a WB module or snippet?
Or, maybe it fits in the Address module from Aldus (look here).

Grtz,
Luc
« Last Edit: November 15, 2008, 06:56:06 PM by Luckyluke » Logged
Luckyluke

Offline Offline

Posts: 555



« Reply #1 on: November 17, 2008, 08:57:34 PM »

Nope, It doesn't work in the "code" section  cry
Hmmm....
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #2 on: November 17, 2008, 09:35:50 PM »

And if you "include" it via php?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Luckyluke

Offline Offline

Posts: 555



« Reply #3 on: November 17, 2008, 09:45:07 PM »

Thx for the response Klaus!

It didn't work with an include.
I put the php and js scripts in the map modules/lst/...
With the error messages on (E_ALL) it couln't connect to the database. The dbname, password etc are all correct.
Maybe the first module can't find the other modules but my php brain isn't that strong.

I know this is a very strong module for viewing data from a database. I hope it will work. But I'm not loosing my patience, so I look further for a solution  grin

Grtz,
Luc
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #4 on: November 17, 2008, 10:23:47 PM »

Remember if you use code wich make a connection to the database you need to reconnect to the database the WB way or WB won't know the database!
Code:
$database = new database;

I had simular done with datagrid -> http://phpbuilder.blogspot.com

What I did was copying the extracted datagrid to the modules dir
Made a code page and put the content of code_template.php in it and start modifying what I needed

Tips
- before you start using datagrid , try playing with the settings
- make sure you fetch the datagrid with the correct version php you have!
- test for the username to set editing on and off etc.
Code:
if ($wb->get_username()=="admin" ) {
 $admin=1;
}else {
 $admin=0;
}

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Luckyluke

Offline Offline

Posts: 555



« Reply #5 on: November 17, 2008, 10:36:41 PM »

Remember if you use code wich make a connection to the database you need to reconnect to the database the WB way or WB won't know the database!
Code:
$database = new database;

I had simular done with datagrid -> http://phpbuilder.blogspot.com
..............
..............

Have fun,
John

Hi John,

Thx for the response but all this is too heavy for me  embarassed
But I looked to the datagrid as well but It didn't work.

Can I see a running demo of the datagrid? The live demo's at the datagrid site doesn't work.
I just want a sortable grid with groups.
Aldus was making something but he's a busy man  wink

Grtz,
Luc
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #6 on: November 24, 2008, 12:40:02 PM »

Find another one wich seems easy enough

phpMyEdit -> http://www.phpmyedit.org/

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Luckyluke

Offline Offline

Posts: 555



« Reply #7 on: November 24, 2008, 04:30:36 PM »

Find another one wich seems easy enough

phpMyEdit -> http://www.phpmyedit.org/

John

It has some potential. However, there is no hoover for selecting the row.
But I have to test it. I've got some results in Wamp without WB running.

Luc
Logged
Luckyluke

Offline Offline

Posts: 555



« Reply #8 on: November 27, 2008, 02:16:30 PM »


I had simular done with datagrid -> http://phpbuilder.blogspot.com

What I did was copying the extracted datagrid to the modules dir
Made a code page and put the content of code_template.php in it and start modifying what I needed

Tips
- before you start using datagrid , try playing with the settings
- make sure you fetch the datagrid with the correct version php you have!
- test for the username to set editing on and off etc.
Code:
if ($wb->get_username()=="admin" ) {
 $admin=1;
}else {
 $admin=0;
}

Have fun,
John

Djeezes, Pfft... a lot of settings. I just want to view some data and I see the words "delete"  and "change". I just want to view data with a filter on a field. I'll test again but I think there is too much "gadgets" on this grid.

Luc
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #9 on: November 27, 2008, 02:38:16 PM »

If you can create a table form the db, try this one:

Next to these there are some smart ajax classes wich can turn any ordinary table into clientside filtering/search enabled lists etc
If you need some links for these, just ask.
Got some links somewhere... Wink
The nicest one I know is sortables -> http://free-javascript.all-faqs.info/sorttable2.html


Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Luckyluke

Offline Offline

Posts: 555



« Reply #10 on: November 27, 2008, 09:38:08 PM »

There are some nice table sort scripts in this link http://www.ajaxdaddy.com/ (and also other nice scripts).
But, none of them are good for me. I want a little popup-window with more info about the selected record.
I google some more  cheesy

Luc
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!