Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am having a really hard time trying to figure this out, I have finally made my wapsite wap, but the validator found errors when parsing, this script also contains php which makes it even harder, anyway you are guys are able (willing) to look throught this code, and clean it up a bit I would greatly appreciate it... here is the snippet of the code that I am having trouble with...
// This begins the results pageif ($E) {
$url=($f_rich /*and $mode=='books' and $locale=='us'*/)?"$norserver/exec/obidos/ASIN/".$E['Asin'].'/ref=nosim/'.$Aassociates_id[$locale].'?dev-t='.$dev_token:$E['url'];
echo "<td valign='left'>";
if ($d=$E['Isbn']) {
echo "$d<br />";
}$dx=$E['ListPrice'];
if ($dx) {
echo "".xl('Price:')." $dx
</br>";
}$do=$E['OurPrice' ];
$du=$E['UsedPrice'];
if ($du) {
echo "".xl('Used:')." $du
</br>";
}
if ($do and $du) print ' ';
if ($do) {
echo "".xl('New:')." $do
</br>";
}
$ds=$E['SalesRank'];
if ($ds) {
// $english_format_number = number_format($ds); //work on this
echo xl('Rank').": $ds";
}
if ($ds) print " ";
if ($da or $ds) print '<br />';
echo xl('')."";if ($d=$E['ProductName']) {
echo "$d<br />";
}
if (is_array($dd=$E['Authors']['Author'])) {
echo xl('by').": ";
foreach ($dd as $i=>$d) {
if ($i) print ' ';
//echo " echo "$d";
}
echo '<br />';
}
else if ($d=$dd) {
echo xl('by').": ";
echo "$d<br />";
}
$dm=$E['Manufacturer'];
$dr=$E['ReleaseDate' ];
if ($d=$E['Manufacturer']) {
echo xl('publisher').": $d
</br>";
}
if ($dm and $dr) print ' ';
if ($d=$E['ReleaseDate']) {
echo xl('released').": $d";
}
if ($dm or $dr) print '<br />';if ($do or $du) echo '<br />';
echo "</td>";
}
}// This ends the results page
$mtime3=getmicrotime(); //time at end
function getmicrotime() {
list($us,$s)=explode(' ',microtime());
return (float)$us+(float)$s;
}echo "</card>\n";
echo "</wml>\n";
//
Its mostly the html part that is giving me problems, there is not need to congifure the php!

Are there supposed to be inconsistances? Your code is pretty much alien to me but in html or wml I'm sure there is no </br> or <br/> tags only br (within tags)
M

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |