View Single Post
  #6 (permalink)  
Old 07-24-2008, 08:40 PM
gilgalbiblewhee gilgalbiblewhee is offline
Registered User
 
Join Date: Jul 2004
Posts: 249
I see what's going on.
PHP Code:
function recValues(){
    
$contents_of_page file_get_contents('../bible1.html');
    
preg_match_all("#<td.*>(.+)</td#Ui"$contents_of_page$tdInnerHTML);
    
$totaltds count($tdInnerHTML[1]);
    
$line 0;
    
$strLine = array();
    for(
$k=0$k $totaltds$k++){
        if(
$k 10 == 0){
            print(
"line ");
            
$strLine[$line] = '
            if($k % 10 != 0){
                $j = 0;
                $tdValues = array();
                $tdValues[$j] = $tdInnerHTML[1][$k];
                print("\'");
                print("<span style=\'font-weight: bold; color: red\'>".$tdValues[$j]."</span>");
                //print($tdInnerHTML[1][$k]);
                if($k % 10 == 9){
                    print("\'<br />\n");
                }else{
                    print("\', ");
                }'
;
            }
            print(
$strLine[$line]);
            
//return $tdValues[$j];
            
$j++;
            
$line++;
        }
    } 
print($strLine[$line]); is printing the code on the page. But I need the result of the code inside the single quotes.
Reply With Quote