Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Last bit of coding help...
Old 12-13-2009, 10:17 PM Last bit of coding help...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
I just want to get this right, and it will be case closed for the this entire flare up of coding help:

UPDATE:

The <img src part is not echoing the image, instead it's echoing a 'broken image' and the path to the image is now: http://localhost/scripts/images/%3E and if I remove the extra > in the img src path than the path is just http://localhost/scripts/images/ and doesn't display the actual image from the db.

HTML Code:
<td align="center" valign="top">
<table border="0" align="center">

<tr><td align="center"><img src="http://www.webmaster-talk.com/images/<?php echo $row['element_5']?>>" border="1"/></td></tr>
<tr><td align="center" valign="middle"><?php echo $row['element_1']?></td></tr></table><td>
Just curious if anyone has a solution to this?
Thanks guys!
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-13-2009, 11:22 PM Re: Last bit of coding help...
Experienced Talker

Posts: 36
Name: Brian Pekarek
Trades: 0
I dont think you can put php in the middle of html... I would suggest making the whole statment in php and then make the variable there...

I hope that helps
__________________
Owner:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Co/Founder: Do Follow
Please login or register to view this content. Registration is FREE

Co/Founder:
Please login or register to view this content. Registration is FREE
brp002 is offline
Reply With Quote
View Public Profile
 
Old 12-13-2009, 11:53 PM Re: Last bit of coding help...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by brp002 View Post
I dont think you can put php in the middle of html... I would suggest making the whole statment in php and then make the variable there...

I hope that helps
In any case, could you fix it up? I have enough of changing code for awhile...I have done nothing but code around the clock for a couple of weeks straight...This code alone, nothing else.

Sorry for the excuse, but I'd appreciate the help if it's not too much to ask

Thanks alot!
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 12-14-2009, 08:52 AM Re: Last bit of coding help...
Super Talker

Posts: 139
Name: John Davis
Trades: 0
You can use php statements within html as you wish and so much how you wish.

The source code of resulted page would helpful.
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 12-16-2009, 03:15 PM Re: Last bit of coding help...
Novice Talker

Posts: 5
Name: losangelescarrental
Trades: 0
there is a error in your code:
error: <tr><td align="center"><img src="http://www.webmaster-talk.com/images/<?php echo $row['element_5']?>>" border="1"/></td></tr>
<tr><td align="center" valign="middle"><?php echo $row['element_1']?></td></tr></table><td>

correct:
<tr><td align="center"><img src="http://www.webmaster-talk.com/images/<?php echo $row['element_5']?>" border="1"/></td></tr>
<tr><td align="center" valign="middle"><?php echo $row['element_1']?></td></tr></table><td>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
losangelescar is offline
Reply With Quote
View Public Profile
 
Old 12-17-2009, 01:11 PM Re: Last bit of coding help...
Defies a Status

Posts: 1,606
Trades: 0
Quote:
Originally Posted by brp002 View Post
I dont think you can put php in the middle of html... I would suggest making the whole statment in php and then make the variable there...

I hope that helps

You can put the PHP in the middle of the html part of a parsed page. The page extension must be php or the .htacess file must dierect that html pages be parsed as php.

You can drop out of php and into html on any parsed page as often as you like.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Last bit of coding help...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.14751 seconds with 12 queries