Quote:
Originally Posted by curtiss
Gil - I don't think I can really help you much more unless I understand what it is you're ultimately trying to do.
The way your code is written, it's not really going to do anything at all. Unfortunately, I don't really understand what the goal is, so I can't begin to try to rewrite it to make it work for you.
Can you give me a short description of what it is you ultimately are trying to do?
|
What happened was that I accidentally erased my db table. Fortunately I had a copy of the table in HTML. So I'm trying to reconvert it to a db table.
Another problem was that I don't know how to upload a db table to an online server and connect to it. But I know how to connect to a created db on the online server. So I need this technique in both cases. I'm almost done with this.
I need $strLine[$line] to equal to a function which would have:
PHP Code:
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("', ");
}
I came across something close to what I wanted:
PHP: create_function - Manual
The example:
PHP Code:
<?php
$newfunc = create_function('$a,$b', 'return "ln($a) + ln($b) = " . log($a * $b);');
echo "New anonymous function: $newfunc\n";
echo $newfunc(2, M_E) . "\n";
// outputs
// New anonymous function: lambda_1
// ln(2) + ln(2.718281828459) = 1.6931471805599
?>
Is that all that you need to know? Or you want me to explain further?