php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2004-2

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 10.11.2004, 12:56  
Gast
 
Beiträge: n/a
Standard Bild will die größe nicht nehmen.

hallo zusammen. ich habe ein kleines problem wo ich anstehe. ich check das heute nicht. hoffe es kann mir wer helfen.

Ich möchte in diesem script <img border=0 src=\"".$row_rs['Filepfad']."\"> das das bild in 108x83 angezeigt wird. ich habe euch mal den ganzen script reingemacht.

danke mal im vorraus. blax




<?php require_once('connections/toscanadb.php'); ?>
<?php
mysql_select_db($database_toscanadb, $toscanadb);
$query_Recordset1 = "SELECT * FROM copyright";
$Recordset1 = mysql_query($query_Recordset1, $toscanadb) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<?PHP
mysql_select_db($database_toscanadb, $toscanadb);
$query_rs = "SELECT Objekt, gebietname, Wohnung, Personen, HS, NS, VS, ER, Kaution, Strom, Heizung, Tiere, Pool, Bettwäsche, Sonstiges, Ortsnamen, Filepfad FROM anwesen, gebiet, hauser, haeuserinanwesen, ort WHERE anwesen.g_id = gebiet.g_id AND gebiet.gebietname = '".$gebiet."' AND anwesen.a_id=haeuserinanwesen.a_id AND haeuserinanwesen.h_id=hauser.h_id AND ort.o_id = anwesen.o_id";
$rs = mysql_query($query_rs, $toscanadb) or die(mysql_error());
$row_rs = mysql_fetch_assoc($rs);
$totalRows_rs = mysql_num_rows($rs);
?><html>
<head>
<title><?php echo $row_Recordset1['titel']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.Stil1 {color: #A4BC83}
.Stil4 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Stil5 {font-size: 16px}
.Stil8 {
font-size: 14px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000000;
}
-->
</style>
</head>

<body>
<table cellpadding="0" cellspacing="0" align="center" border="0" bgcolor="#000000" width="800">
<tr>
<td width="1096"><table border="0" cellspacing="0" cellpadding="0" width="800">
<tr>
<td width="982" bgcolor="#F8C471"><table width="850" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="958" bgcolor="#F8C471"> <div align="center">Â*
<?include("modules/head.php");?>
</div></td></tr>
<tr>
<td bgcolor="#F8C471"></td>
</tr>
<tr>
<td bgcolor="#FFDB8F"><div align="center">
<?include("modules/top_leiste.php");?>
</div></td>
</tr>
<tr>
<td bgcolor="#F8C471"></td>
</tr>
</table>
<table width="766" height="84" cellpadding="0" cellspacing="0">
<tr>
<td width="168" height="38" valign="top" background="../img/tab_l1.jpg"><table width="200" border="0">
<tr>
<td><?include("modules/navigation/navigation.php");?></td>
</tr>
<tr>
<td></td>
</tr>
</table></td>
<td style="background-repeat: repeat-y; background-position:513px;
" width="792" valign="top"><table align="right" width="566">
<tr>
<td width="696" align="center" valign="top"><p align="left" class="Stil1">
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F8C471">
<tr>
<td><table width="638" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td><span class="storytitle Stil4 Stil5"></span><span class="title Stil1 Stil4 Stil5"><span class="title Stil1 Stil4"></span></span>
<table width="434" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="328" height="19" bgcolor="#A4BC83"><span class="Stil8"><?php echo $gebiet;?></span></span></td>
<td width="106">[img]images/pixel0.gif[/img]</td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>

<table width="637" border="0" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
<tr>
<td width="100%"><div align="center">
<table width="635" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber5" style="border-collapse: collapse">
<tr bgcolor="#A4BC83">
<td width="129" align="center" style="color: #000000"> <font face="Tahoma" size="2">( Details - Click )</font></td>
<td width="90" align="left" style="color: #000000">
<p align="center"><font size="2" face="Tahoma"> Wohnung</font></td>
<td width="58" align="center" style="color: #000000">
<div align="center"><font face="Tahoma" size="2">Pers.</font></div></td>
<td width="61" align="center" style="color: #000000"> <font size="2" face="Tahoma"> Pool</font></td>
<td width="32" align="center" style="color: #000000"> <font size="2" face="Tahoma"> Tiere</font></td>
<td width="50" align="center" style="color: #000000"></td>
<td width="51" align="center" style="color: #000000"> <font face="Tahoma" size="2">HS &euro;</font></td>
<td width="50" align="center" style="color: #000000"> <font face="Tahoma" size="2">NS &euro;</font></td>
<td width="49" align="center" style="color: #000000"> <font face="Tahoma" size="2">VS &euro;</font></td>
<td width="32" align="center" style="color: #000000"> <b class="boxcontent"><font face="Tahoma" size="2">ER &euro;</font>[/b]</td>
</tr>
<?php
$gruppe="";
$span=0;
?>
<?php do {
if ($gruppe != $row_rs['Objekt']) {
if ($gruppe != "") {
echo "<tr height=15><td></td></tr>";
echo "<tr></tr>";
}
$gruppe=$row_rs['Objekt'];
$query_rs = "SELECT Wohnung FROM anwesen, gebiet, hauser, haeuserinanwesen, ort WHERE anwesen.g_id = gebiet.g_id AND gebiet.gebietname = '".$gebiet."' AND anwesen.a_id=haeuserinanwesen.a_id AND haeuserinanwesen.h_id=hauser.h_id AND ort.o_id = anwesen.o_id AND anwesen.Objekt = '".$gruppe."'";
$rs_anz = mysql_query($query_rs, $toscanadb) or die(mysql_error());
$span = mysql_num_rows($rs_anz)+1;
if ($span == 2) $span=3;
echo "<tr onClick=\"window.open('/detail.php?anwesen=".$gruppe."','','status=yes,scr ollbars=yes,width=666,height=615')\"><th width=\"50\" rowspan=".$span." valign=top bgcolor=\"#FFDB8F\" style=\"color: #000000\">
<img border=0 src=\"".$row_rs['Filepfad']."\">
</th><th colspan=9 align=left bgcolor=\"#FFDB8F\">".$gruppe." (".$row_rs['Ortsnamen'].")</th></tr>\n";
}
?>
<tr height=20>
<td width="129" align="left" bgcolor="#FFDB8F" style="color: #000000">
<p align="left" style="margin-left: 5; font-family: Tahoma; font-size: 12px; font-weight: bold;"> <span style=""><?php echo $row_rs['Wohnung']; ?></span></td>
<td width="90" align="center" bgcolor="#FFDB8F" style="color: #000000"><div align="center"><span class="boxcontent"><?php echo $row_rs['Personen']; ?> </span></div></td>
<td width="58" align="center" bgcolor="#FFDB8F" style="color: #000000"><span class="boxcontent"><?php echo $row_rs['Pool']; ?></span></td>
<td width="61" align="center" bgcolor="#FFDB8F" style="color: #000000"><div align="center"><span class="boxcontent"><?php echo $row_rs['Tiere']; ?></span></div></td>
<td width="32" align="center" bgcolor="#FFDB8F" style="color: #000000"></td>
<td width="50" align="center" bgcolor="#FFDB8F" style="color: #000000"><span class="boxcontent"><?php echo $row_rs['HS']; ?></span></td>
<td width="51" align="center" bgcolor="#FFDB8F" style="color: #000000"><span class="boxcontent"><?php echo $row_rs['NS']; ?></span></td>
<td width="50" align="center" bgcolor="#FFDB8F" style="color: #000000"><span class="boxcontent"><?php echo $row_rs['VS']; ?></span></td>
<td width="49" align="center" bgcolor="#FFDB8F" style="color: #000000"><span class="boxcontent"><?php echo $row_rs['ER']; ?></span></td>
</tr>
<?php } while ($row_rs = mysql_fetch_assoc($rs)); ?>
</table>
</div></td>
</tr>
</table>


</p>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#F8C471"></td>
</tr>
<tr>
<td bgcolor="#F8C471"><div align="center">
<table width="845" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#F8C471"></td>
</tr>
<tr>
<td bgcolor="#F8C471"><div align="center">
<?include("modules/copyright.php");?>
</div></td>
</tr>
<tr>
<td bgcolor="#F8C471"></td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 10.11.2004, 13:05  
Erfahrener Benutzer
 
Registriert seit: 21.05.2008
Beiträge: 2.150
Guradia befindet sich auf einem aufstrebenden Ast
Standard Re: Bild will die größe nicht nehmen.

Zitat:
Zitat von blax

Ich möchte in diesem script <img border=0 src=\"".$row_rs['Filepfad']."\"> das das bild in 108x83 angezeigt wird.
http://de.selfhtml.org/html/grafiken...m#breite_hoehe
Guradia ist offline  
Alt 10.11.2004, 13:11  
Gast
 
Beiträge: n/a
Standard das problem liegt daran

wenn ich es <img border=0 src=\"".$row_rs['Filepfad']."\"width="108" height="72"> schreibe dann kommt die fehlermeldung.

Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';' in /home/toscana-traum-fewo_com/www/liste.php on line 120

thx. blax
 
Alt 10.11.2004, 13:56  
Gast
 
Beiträge: n/a
Standard

wtf .. was macht das bei den fortgeschrittenen .. nimm die ".." um width und height
weg ..
 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Es erscheint das alte Bild (cache problem) !! mac PHP-Fortgeschrittene 12 18.05.2011 11:23
Bild onMouseOver einblenden rocco HTML, Usability und Barrierefreiheit 8 22.02.2008 12:52
Transparentes Bild über Bild legen *update gelöst* Broadcast PHP-Fortgeschrittene 11 04.02.2008 15:27
Dynamische Bildgenerierung: Bild ändert sich nicht Jacks Rache PHP Tipps 2006 1 03.09.2006 10:01
[Erledigt] Nächstes Bild, Vorheriges Bild in PHP mit MySQL Datenbanken 2 15.05.2006 20:50
[Erledigt] Bild immerwieder holen PHP Tipps 2006 2 18.02.2006 01:24
Designproblem: Text und Bild Sirke HTML, Usability und Barrierefreiheit 2 08.09.2005 14:59
[Erledigt] Bild aus Datei in Bild einfügen PHP Tipps 2005-2 1 07.08.2005 23:36
[PHP«Image] Bild in ein anderes Bild einsetzen PHP Tipps 2005-2 4 07.08.2005 19:39
bild na variable holen... md5hash PHP Tipps 2005-2 5 16.06.2005 01:07
[Erledigt] Bild neu laden. HTML, Usability und Barrierefreiheit 1 08.02.2005 21:59
[Erledigt] [JS]Neues Bild in neuem Fenster öffnen HTML, Usability und Barrierefreiheit 1 04.01.2005 11:39
Bild aus Server anzeigen lassen flual2000 PHP Tipps 2004 4 26.10.2004 16:33
Bild größe hat prob mit umbenennung. JEGO PHP Tipps 2004 1 08.07.2004 16:30

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
<table width=\1096\ border=\0\ cellspacing=\0\ cellpadding=\0\>

Alle Zeitangaben in WEZ +2. Es ist jetzt 23:32 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.