I look in my DB for a CODE. I find it and now I want to show the jpg
corresponding to this CODE in html. Here is my piece of code, however
the photo will not be shown....
<?php
-
-
-
$posavaso=mysql _fetch_field($r esult,CODE);
while ($row = mysql_fetch_ass oc($result)) {
$posavaso= $row["CODE"].".jpg"; //here I create my jpg
}
}
?>
<img src="../Fotos/<? $posavaso?> width="215" height="108">
....
any tips??? 7 1980
there is a " missing after <? $posavaso?> which appends "width=" to
all of your fiel names
micha
chotiwallah schrieb: there is a " missing after <? $posavaso?> which appends "width=" to all of your fiel names
micha
I tried but it doesn't work.......
Bettina
*** be*****@coaster .ch wrote/escribió (26 Jun 2005 12:58:53 -0700): <img src="../Fotos/<? $posavaso?> width="215" height="108">
any tips???
Two troubleshooting techniques that will help you in the future:
* PHP is not everything: do check the generated HTML!
IE: View-> Source
Mozilla: View-> Page Source (or Ctrl+U)
* Use the W3C Validator to test the validity of your HTML and CSS: http://validator.w3.org
This way you would have found that
<img src="../Fotos/foo.jpg width="215"
is invalid HTML, thus noticing the missing quote :)
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
*** be*****@coaster .ch wrote/escribió (26 Jun 2005 12:58:53 -0700): <img src="../Fotos/<? $posavaso?> width="215" height="108">
any tips???
Two troubleshooting techniques that will help you in the future:
* PHP is not everything: do check the generated HTML!
IE: View-> Source
Mozilla: View-> Page Source (or Ctrl+U)
* Use the W3C Validator to test the validity of your HTML and CSS: http://validator.w3.org
This way you would have found that
<img src="../Fotos/ width="215"
is invalid HTML, thus noticing the missing equal and quote :)
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Gracias Alvaro por tu ayuda, voy a tener en cuenta el troubleshooting .
Pero aún cuando escribo las comillas antes de width no funciona:
<img src="images/<?php $a ?>" width="48" height="30">
Bettina
*** be*****@coaster .ch wrote/escribió (27 Jun 2005 03:27:25 -0700): Gracias Alvaro por tu ayuda, voy a tener en cuenta el troubleshooting . Pero aún cuando escribo las comillas antes de width no funciona: <img src="images/<?php $a ?>" width="48" height="30">
Te falta un echo.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
<img src="images/<?php echo $a; ?>" width="48" height="30">
//OENS
"Alvaro G Vicario" <al************ ******@telecomp uteronline.com> skrev i en
meddelelse news:23******** *************** ******@40tude.n et... *** be*****@coaster .ch wrote/escribió (27 Jun 2005 03:27:25 -0700): Gracias Alvaro por tu ayuda, voy a tener en cuenta el troubleshooting . Pero aún cuando escribo las comillas antes de width no funciona: <img src="images/<?php $a ?>" width="48" height="30">
Te falta un echo.
-- -- Álvaro G. Vicario - Burgos, Spain -- http://bits.demogracia.com - Mi sitio sobre programación web -- Don't e-mail me your questions, post them to the group -- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: PT |
last post by:
I got a problem. And thats.....
First of all, I got these three tables.
------------------- ------------------ ----------------------
tblPerson tblPersonSoftware tblSoftware
------------------- ------------------ ----------------------
PID PName PID* SID* SID SWName
--- ----- --- --- --- ------
1 Thomas 1 1 ...
|
by: serge |
last post by:
I have a scenario where two tables are in a One-to-Many relationship
and I need to move the data from the Many table to the One table so
that it becomes a One-to-One relationship.
I need to salvage the records from the many table and without going
into detail, one of the reasons I can't do the opposite as
there are records in the ONE table that I need to keep even if they
don't have any child records in the MANY table.
Below I created...
|
by: Philip Boonzaaier |
last post by:
I want to be able to generate SQL statements that will go through a list of
data, effectively row by row, enquire on the database if this exists in the
selected table- If it exists, then the colums must be UPDATED, if not, they
must be INSERTED.
Logically then, I would like to SELECT * FROM <TABLE>
WHERE ....<Values entered here>, and then IF FOUND
UPDATE <TABLE> SET .... <Values entered here> ELSE
INSERT INTO <TABLE> VALUES <Values...
|
by: YFS DBA |
last post by:
How do I use VBA to insert a *new* record into a subform?
I have a master form with client information, and a sub form with billing
information. I want to click on a button ("Add Data") and have a record
inserted into the subform's table, with date created and some information
from the main table inserted into the proper fields in the subform.
After the record is inserted, the data entry operator enters a Date Of
Service and a billing...
|
by: Andrew |
last post by:
Hi, friends,
In ASP, we use
obj = CreateObject("com.dll")
obj.GetHTMLText(inVal, outHTMLTxt1, outHTMLTxt2)
to get different HTML strings based on input values.
Then, we insert them into proper location of HTML something like the
following:
<table>
| |
by: Marcel Hug |
last post by:
Hi all !
I have a table in my database, which has 3 attributes. IDFailureControl,
ControlDate and ControlVersion.
In the following function I test, if the date of today allready exists.
Then I would like to write the new ControlDate or Version into the
database. First i update the dataset, then i create a Insertcommand and
call the update-methode. All datas are in the database, but....
1.) If I only use the InsertCommand, without...
|
by: Giggle Girl |
last post by:
Can someone show me how to insert a row at any given row index of an
already created table? It only has to work in IE6 (used on intranet at
work).
Specifically, if a table is 20 rows in total (thought his will vary),
and someone wants to insert a new row at row 5, i need for one row to
be added, and each of the rows from 5-20 to be "cloned" to 6-21.
The contents of row 5 may vary as well; it is not a straight copy of an
exisiting row.
|
by: assgar |
last post by:
Hi
Developemnt on win2003 server. Final server will be linux
Apache,Mysql and PHP is being used.
I use 2 scripts(form and process).
The form displays multiple dynamic rows with chechboxs, input box for units of service, description of the service and each row has its own dropdown list of unit fees that apply.
Each dynamically created row will return 3 values fee1_choice, fee1_unit and fee1_money.
Note The above informaton is...
|
by: Lawrence 007 |
last post by:
Hi,
I am pretty new to HTML programming and I am stuck in one location at the moment. I created a web page where users can enter information and add it to a table in my SQL database. I am running into a problem where my table does not allow the insert of null rows and I don't know how to create the insert statement to skip the text boxes that does not have any information in them.
Can someone please help me?
Lawrence
|
by: ak1dnar |
last post by:
There is a Error getting while i am entering records using this jsp file.
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="../Connections/conn.jsp" %>
<%
// *** Edit Operations: declare variables
// set the form action variable
String MM_editAction = request.getRequestURI();
if (request.getQueryString() != null && request.getQueryString().length() > 0) {
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |