Current location: Hot Scripts Forums » Programming Languages » PHP » Twenty Million DB Entries


Twenty Million DB Entries

Reply
  #1 (permalink)  
Old 02-10-04, 10:55 AM
UKSwift UKSwift is offline
Newbie Coder
 
Join Date: Jul 2003
Location: Doncaster, UK
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Twenty Million DB Entries

Hi,

I am currently in the middle of trying to get a system working for a registration plate website. At the moment i am trying to use OsCommerce, but due to the number of rows in the database things grind to a dramatic hault whenever you query it with a search.

Does anyone know of any other system that is already released that may help me?

I also a slight grasp of PHP and MySQL and am able to write basic enter data into database then retrieve it using a search function and output this data on a page scripts very easily, is this something i could look into doing as opposed to using a big system such as OsCommerce. The only i would struggle on is sending the data to the payment system in place. At the moment we are using paypal.

here is an example of what I would like the site to look like and more importantly the sort of speed i will ultimatley be aiming for..

http://www.right-reg.co.uk

Would a simple search on a table containing 20 million rows surfice or do i need to look in alot more detail at searching a database on such a scale?

Any help on this matter would be greatly appreciated.

Regards

Tim
__________________
Roar!
Reply With Quote
  #2 (permalink)  
Old 02-10-04, 12:56 PM
perleo perleo is offline
Coding Addict
 
Join Date: Jul 2003
Location: Ireland
Posts: 269
Thanks: 0
Thanked 0 Times in 0 Posts
Problem with variables in functions

Hi, i have a function, that creates the code for a HTML table. Within that function i have a variable, called $title. This contains text, which is declared on each page, that is shown in the table, i have put
PHP Code:

global $title
in the function, but it doesnt show.

This function is used for blocks for a menu, each block has its own file, which is included, and within the file, is the declaration for the variable.

Heres the code for the function

PHP Code:

function block_open() {

global 
$title;
        echo 
"<table align=\"center\" bgcolor=\"#000000\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\">";
        echo 
"<tr bgcolor=\"#009999\">";
        echo 
"<td class=\"content-menu-cat\" bgcolor=\"#008080\"><span class=\"content-menu-cat\"><font face=\"Arial, Helvetica, sans-serif\" color=\"#FFFFFF\"><img src=\"images/icon.gif\" alt=\"\" align=\"left\" />";
        echo 
$title;
        echo 
"</font></span></td>";
        echo 
"</tr>";
        echo 
"<tr bgcolor=\"#FFFFFF\">"
        echo 
"<td>";
                       }
            
           
//close table                      
function block_close() {
        echo 
"</td>";
        echo 
"</tr>";
        echo 
"</table>";
        echo 
"<table><tr><td></td></tr></table>";
                       } 
Then a typical block file looks like this

PHP Code:

$title 'Navigation';

block_open();


block_close(); 
But the $title doesnt show!!

Last edited by perleo; 02-10-04 at 12:58 PM.
Reply With Quote
  #3 (permalink)  
Old 02-11-04, 01:25 AM
nd2 nd2 is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 128
Thanks: 0
Thanked 0 Times in 0 Posts
the indexes on the tables may be all that needs changing but at the same time i have no idear how many querys OsCommerce makes what you should be looking for with such a large database is a very small.

perleo he means a database table and not a html table.
__________________
IonCMS (Coming Soon.)
http://ioncms.com
--
Ncaster (Free php/mysql cms)
http://ncaster.cjb.net
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM
Deleting older mysql entries mdhall Script Requests 0 11-02-03 01:17 PM
Linking between db table entries Peter2xxy PHP 2 08-14-03 02:53 AM
LOTS of duplicate entries KingSky HotScripts Site Bug Reports 0 06-17-03 10:09 AM


All times are GMT -5. The time now is 08:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.