Færdiggjort

Images from table in html2fpdf, also in table

Hello,

For a website I need the following:

We have a working script which collects data from the database and builds a pdf file from it. It also has to fetch images from the database and put in in the pdf file. So far so good.

What does not work is the placement of the images. In the main pages it is handled like so:

<? if($_GET['extraid']) { $fetcha = mysql_fetch_array(mysql_query("SELECT * FROM huizen WHERE id = '$_GET[extraid]'"));

$num = 1;?>

<div id="aanbod">

<table border="0" cellspacing="2" cellpadding="2" width="630" align="left">

<div align="center"><a href="javascript:[url removed, login to view]()">Terug naar de overzichtspagina</a></div>

<? $query = mysql_query("SELECT * FROM foto WHERE huizen = '$_GET[extraid]' ORDER BY volgorde");

while($fetch = mysql_fetch_array($query))

{

if(is_odd($num)) echo "<tr><td width=50%>";

if(!is_odd($num)) echo "<td valign=top>";?>

<div align="center"><a title="<? echo $fetcha['woonplaats'];?>, <? echo $fetcha['adres'];?>" rel="lightbox[rel]" href="huizen/foto/origineel/<? echo $fetch['id'];?>.jpg"><img src="huizen/foto/origineel/<? echo $fetch['id'];?>.jpg" width="300" height="200" border="0"><br />Klik om te vergroten</a></div>

<? if(is_odd($num)) echo "</td>";

if(!is_odd($num)) echo "</td></tr>";

$num++;

} ?>

</table>

<? } ?>

The details are in the is_odd statements.

In the pdf file it is handled like so:

$docnaam = $foto_fetch['naam'].$foto_fetch['woonplaats'];

$foto_query = mysql_query("SELECT * FROM foto WHERE huizen = '$_GET[id]' ORDER BY volgorde");

$foto = "";

while($foto_fetch = mysql_fetch_array($foto_query))

{

$size = getimagesize("foto/origineel/$foto_fetch[id].jpg");

$width = $size[0] * 0.5;

$height = $size[1] * 0.5;

$foto = $foto."<img src=\"foto/origineel/$foto_fetch[id].jpg\" border=\"1\" width=\"$width\" height=\"$height\">";

}

But this only collects the images and puts them in a single row, I would like to have them placed in a double row. Who is capable of fixing this?

Færdigheder: MySQL, PHP

Se mere: html2fpdf table, html2fpdf, html2fpdf img, html2fpdf jpg, html2fpdf images, top query, php fpdf mysql, html 5 table, html 5 img, html 5 align, border html 5, 300 images, html2fpdf table img, width table html2fpdf, html2fpdf database, html2fpdf img src, html2fpdf img table, html2fpdf img center, img center html2fpdf, top te, table, table top, query table, php te, om

Om arbejdsgiveren:
( 2 bedømmelser ) Nieuwe Pekela, Netherlands

Projekt-ID: #614386

Tildelt til:

codeguru786

ready to start, 100% guarantee of PDF according to your needs, let me know

$50 USD på 1 dag
(222 bedømmelser)
8.2

11 freelancers are bidding on average $70 for this job

zub

Hello Sir, Please see the PM. Thank you. With regards Zub

$100 USD in 3 dage
(39 bedømmelser)
5.8
asarfraz

Please check PMB

$30 USD på 1 dag
(28 bedømmelser)
5.5
twr1965

Please see pm

$40 USD in 0 dage
(8 bedømmelser)
4.5
developer99

Lets start

$99 USD in 2 dage
(10 bedømmelser)
4.4
Rady

Hi I can help you with this i will need the entire script , files and database. Thanks

$150 USD in 2 dage
(17 bedømmelser)
4.0
sat12345

Plz check PMB...

$70 USD på 1 dag
(51 bedømmelser)
3.9
sunsriinfosys

I have over 10.5 years of Experience in software design, development and implementation of various commercial applications in Client/Server environment, Web designing using Photoshop, Flash, Web and ERP applications us Mere

$100 USD in 2 dage
(6 bedømmelser)
3.6
phpquick

Please check PM

$50 USD på 1 dag
(7 bedømmelser)
3.3
aswathysooraj

hello sir, i am ready to do the project. I have experience in the same field. I will be available 4-6 hours per day.

$30 USD på 1 dag
(0 bedømmelser)
0.0
xywmcse

Hello, I am good at pdf. Thanks.

$50 USD på 1 dag
(0 bedømmelser)
0.0