Search found 9 matches

by jojonage
Mon Nov 30, 2009 6:55 pm
Forum: PHP - Code
Topic: php and .dbf
Replies: 2
Views: 136

Re: php and .dbf

thanks for your advise
by jojonage
Sun Nov 29, 2009 9:55 pm
Forum: PHP - Code
Topic: php and .dbf
Replies: 2
Views: 136

php and .dbf

I have read about dbase and odbc . I can print out the records in one table(one .dbf file) with both methods but I am wondering if PHP can join 2 or more .dbf tables together? I've been googleing for a few days, still have no idea on it, It would be very nice if anyone can give me some advises Thank...
by jojonage
Wed Nov 25, 2009 7:55 pm
Forum: PHP - Code
Topic: Problems to get variables
Replies: 1
Views: 74

Re: Problems to get variables

can you post also your code from showpdf_2.php?
by jojonage
Wed Nov 25, 2009 7:46 pm
Forum: PHP - Code
Topic: problem with echo for image
Replies: 10
Views: 610

Re: problem with echo for image

did you forgot the extension of your pic?

try change

Code: Select all

 
function user($val) {
     if (is_numeric($val)) {
           echo '<img src="mypic.jpg" />' ;
     }
}
 
by jojonage
Wed Nov 25, 2009 7:18 pm
Forum: Databases
Topic: PHP + .dbf
Replies: 0
Views: 298

PHP + .dbf

I have read about dbase.
I can print out the records in one table with PHP

but I am wondering if PHP can join 2 or more .dbf tables together?
I've been googleing for a few days, still have no idea on it,
It would be very nice if anyone can give me some advises

Thank you!
by jojonage
Sun Nov 15, 2009 7:10 pm
Forum: PHP - Code
Topic: PHP array sorting problem
Replies: 6
Views: 266

Re: PHP array sorting problem

it works great!thanks! Here is the example <?php function cmp($a, $b) {     $a = ereg_replace('^(a|an|the) ', '', $a);     $b = ereg_replace('^(a|an|the) ', '', $b);     return strcasecmp($a, $b); }   $a = array("John" => 1, "the Earth" => 2, "an apple" => 3, "a ba...
by jojonage
Fri Nov 13, 2009 10:24 pm
Forum: PHP - Code
Topic: PHP array sorting problem
Replies: 6
Views: 266

Re: PHP array sorting problem

thanks for the advise!!
I will check with the examples
by jojonage
Fri Nov 13, 2009 9:57 pm
Forum: PHP - Code
Topic: PHP array sorting problem
Replies: 6
Views: 266

Re: PHP array sorting problem

thanks for your reply,

but how the function should look like to sort 2 items??
by jojonage
Fri Nov 13, 2009 9:13 pm
Forum: PHP - Code
Topic: PHP array sorting problem
Replies: 6
Views: 266

PHP array sorting problem

Hello, I have a problem on sorting an array list for instant, the array list is as follow: $testing = array("AB1", "AC4", "DE3", "HG2"); how can I sort the array list, so that it looks like this: AB1 HG2 DE3 AC4 What I would like to do is to ignore the first 2...