Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
A little bit help in this PHP code
Old 10-21-2010, 09:52 AM A little bit help in this PHP code
Novice Talker

Posts: 3
Name: Prateek Gupta
Trades: 0
Have a look at the following PHP code
This PHP code .It runs a MYsql querry and
extracts all the Personal messages from the table dle_pm

This helps me(admin) to stop spamming inside Personal Messages
The PHP code can be found here

This is the install.php
www.download123.in/code/install.txt

THis is the main code
www.download123.in/code/engine/inc/userspm.txt


The output comes like this (see this image)
http://img512.imageshack.us/img512/107/userpm.jpg



And the problem is
I have a huge database having lots and lots of personal messages
and this php code gives the output into a single page resulting in heavy Mysql data transfer

SO if any one can edit the code and make such changes so that the result comes page wise .. for example 50 messages per page
This will be a great help for me
Prateekgupta is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-21-2010, 11:01 AM Re: A little bit help in this PHP code
Skilled Talker

Posts: 52
Trades: 0
Hi,

You should use pagination by adding "LIMIT $start,$end" to your query.

You cand find an example here: blog.alexhanin.info/2009/09/21/php-pagination-made-easy/

If do you need further assitance don't hesitate to post or send a pm.
webmastertalker is offline
Reply With Quote
View Public Profile
 
Old 10-22-2010, 07:30 AM Re: A little bit help in this PHP code
Novice Talker

Posts: 3
Name: Prateek Gupta
Trades: 0
Quote:
Originally Posted by webmastertalker View Post
Hi,

You should use pagination by adding "LIMIT $start,$end" to your query.

You cand find an example here: blog.alexhanin.info/2009/09/21/php-pagination-made-easy/

If do you need further assitance don't hesitate to post or send a pm.


Thanks a lot brother .
I will be very very thankful to you if you will do pagination for me in this code .. thanks
god bless you
Prateekgupta is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A little bit help in this PHP code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11808 seconds with 12 queries