473,387 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

why cant img tag pick up a .php src

i wrote a script like this

<img src="picview.php?picid=<?=$ids?>"> but it wont go to this file..... note the php variable has already been declared....the picview.php contains my php script to receive value from the url and return an image, ok i decided to cause an error on this page to see if actually it comes there but nothing, so pls what do i do
Oct 14 '10 #1
1 1332
Atli
5,058 Expert 4TB
Does the output look like it should? By that I mean, if you look at the HTML in the browser, does the <img src="picview.php?picid=<?=$ids?>"> tag look right? Is the <?=$ids?> replaced with the expected value?

If you go directly to the picview.php?picid=1 URL (replacing the 1 with a real value) does it show the picture like it is supposed to? The <img> tag expects and image, and nothing but an image. If there are errors or warnings in there, it won't show properly.

If you show us the relevant parts of your code, we can take a look and see if we can spot any problems.

P.S.
The syntax <?=$ids?> is only valid on servers that have enabled the short_tags directive. It is not enabled by default. You are usually better of using the <?php echo $ids; ?> syntax. That one will work on all PHP servers.
Oct 14 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Aaron Brockhurst | last post by:
Hi Can anyone help? I cant get my php script to insert or delete records into a mysql table. I can view them all fine but that's about it. I've checked the user permissions on mysql and...
5
by: Gary Mayor | last post by:
Hi, If I have the ' character within the javascript:pick command it doesn't work. Is there some sort of way of escaping these characters like in server side languages. function pick(symbol) {...
6
by: Rich | last post by:
Hello, When I copy a VB web app from my workstation to my laptop (which has the exact same software as the workstation) or to a different virtual directory on the same workstation and then try...
2
by: Mike Curry | last post by:
I have run into a problem, I have 2 fields in my database, both key fields: Table 1 ===== Field X <key> Field Y <key> In field X, there are say about 3 records for each unique Field Y. I...
2
by: Rico | last post by:
Hello, I have an ASP web app with an SQL back end. I am currently migrating to a new Windows 2003 Server machine and SQL Server 2005 Express. When I import the old database, I'm trying to...
10
by: Mark Winter | last post by:
Hello, I am wondering if someone could point me in the right direction to figure out how to create a dynamic form. I have been developing programs in perl and oracle and have recently switched...
0
by: U S Contractors Offering Service A Non-profit | last post by:
ALOT of them to pick from... Inbox Reply Craig Somerford to uscosoct24, Matthew, B-eing-I-nstru., Ed, me, New, mw, Natural, (bcc:USA), (bcc:Letters), (bcc:lvargas), (bcc:Le), (bcc:staff),...
9
by: Steve Richter | last post by:
in a generic class, can I code the class so that I can call a static method of the generic class T? In the ConvertFrom method of the generic TypeConvert class I want to write, I have a call to...
1
by: SpaceMarine | last post by:
hello, i am attempting to attach a debugger to the "aspnet_wp,.exe" process. this is how i normally debug my ASP.NET apps, and i dont have a problem debugging at any other time. however, when...
2
by: mikael3432 | last post by:
okay, I got this problem: I know how to import tables and simple queries to excel from acess. But queries that requrie the user to type in for example a date are not possible to import. They are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.