Search found 4 matches

by marquischan
Fri Jul 21, 2006 4:15 am
Forum: PHP - Code
Topic: PHP Query Database
Replies: 7
Views: 474

The thing i want to point out here is When i put ALL rows into the ARRAY. If i just use START and LIMIT under SQL_query to contraint the number of returned rows, the array size will be decreased much. Method 1: SELECT * FROM ABC; return 1000000 rows, put all into array. and use LOOP , $START and $EN...
by marquischan
Thu Jul 20, 2006 12:48 pm
Forum: PHP - Code
Topic: PHP Query Database
Replies: 7
Views: 474

Let me point out more detail. The way i do before in PHP is LIMIT the results by using SQL Query such as SELECT * FROM ABC LIMIT 0,50 The 0 can be changed !! However, is there any different between the example below? SELECT * FROM ABC under PHP code, i will do for ($i = 0; $i < 50; $i++) { echo($sql...
by marquischan
Thu Jul 20, 2006 2:57 am
Forum: PHP - Code
Topic: PHP Query Database
Replies: 7
Views: 474

PHP Query Database

I am working on a program which will query the database and receive a list of data. about 100 to 1000 results. I know that I can use Session to store the arraylist of results in Java (Tomcat) So that I can process the data without query the database again. Like i want to show 10 results per page. I ...
by marquischan
Thu Jul 20, 2006 2:54 am
Forum: Regex
Topic: Preg_match exit abnormally
Replies: 1
Views: 1768

Preg_match exit abnormally

Dear all,

Sometimes, when i use Preg_match to search a html source, it will exit and without giving any warning message. Why is it so?


Thanks,
Marquis