Any php genious's? - DFWstangs Forums
 
LinkBack Thread Tools Display Modes
post #1 of 6 (permalink) Old 06-13-2006, 04:24 AM Thread Starter
Time Served
 
Join Date: Nov 2004
Location: Oak Carrollton
Posts: 191
Any php genious's?

I'm not very good with PHP but I know a bit, I have a piece of code I need help with if someone wouldnt mind helping me out real quick. Here is the code


PHP Code:

            <?php
        
}
        echo 
"<img src=\"http://www.xxxxxxx.com/mn34.gif\">";
        echo 
'<h1 id="SOBI_name">' $row->name '</h1>';
        echo 
'<p id="SOBI_address">' 
            
$row->address '<br/>' 
            
$row->city ' ' $row->federal_state ' '$row->country;
        echo 
'<br/>';


Where the image is, I want it on the same line as the name. If someone can put the code together for me where there isnt a line break, I would appreciate it.
94JeepYJ is offline  
Sponsored Links
Advertisement
 
post #2 of 6 (permalink) Old 06-13-2006, 04:55 AM
¯\(º_o)/¯
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
Wrong forum, no answer.

AbecX is offline  
post #3 of 6 (permalink) Old 06-13-2006, 07:07 AM
Lifer
 
Shemmy's Avatar
 
Join Date: May 2003
Location: in van by river
Posts: 1,080
Try replacing the h1 tag with a span tag. You'll have to add some code to make the font correct though.

Shemmy is offline  
 
post #4 of 6 (permalink) Old 06-13-2006, 11:53 AM
Warden
 
Join Date: Mar 2000
Location: McKinney, TX
Posts: 3,174
I would put it in a table to make sure you can control where breaks are if its that big of a deal.
chris is offline  
post #5 of 6 (permalink) Old 06-13-2006, 01:52 PM Thread Starter
Time Served
 
Join Date: Nov 2004
Location: Oak Carrollton
Posts: 191
Quote:
Originally Posted by AbecX
Wrong forum, no answer.
Sorry about that, it was late and I was getting really pissed off at this code. I just went ahead and removed the image, I'll come back to it later on.
94JeepYJ is offline  
post #6 of 6 (permalink) Old 06-13-2006, 05:14 PM
¯\(º_o)/¯
 
AbecX's Avatar
 
Join Date: Nov 2001
Location: Las Colinas
Posts: 25,373
Instead of echoing out html it would be much eaiser to just close php and reopen it.

PHP Code:
<h1 id="SOBI_name"><img src="http://www.xxxxxxx.com/mn34.gif"><? $row->name?></h1><p id="SOBI_address"> <? $row->address?><? $row->city$row->federal_state$row->country?>

AbecX is offline  
Sponsored Links
Advertisement
 
Reply

Bookmarks

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the DFWstangs Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome