adhere


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need PHP help!
Author Message
David Offline
Moderator
*******

Moderators
Posts: 533
Joined: Aug 2011
Reputation: 28
White Hat Angel
Given 12 thank(s) in 10 post(s)
Post: #1
Thread Need PHP help!
Looking for some php help. I know what Im doing but I dont know alot of PHP, anyone know a fairly good amount of PHP?
02-29-2012 01:09 PM
Find all posts by this user Quote this message in a reply
Advertisement
envyus
nick200287 Offline
Bronze Member
*

Posts: 80
Joined: Oct 2011
Reputation: 6
Given 0 thank(s) in 0 post(s)
Post: #2
Thread RE: Need PHP help!
i know about a ton of php i know every piece of the basics and a lot of the extra and hard parts.
02-29-2012 01:47 PM
Find all posts by this user Quote this message in a reply
David Offline
Moderator
*******

Moderators
Posts: 533
Joined: Aug 2011
Reputation: 28
White Hat Angel
Given 12 thank(s) in 10 post(s)
Post: #3
Thread RE: Need PHP help!
(02-29-2012 01:47 PM)nick200287 Wrote:  i know about a ton of php i know every piece of the basics and a lot of the extra and hard parts.

ok.

Code:
$searches = file('audio/includes/search.txt');

echo 'Last 20 Searches:<br />';
$i = 1;
foreach($searches as $lines){
    if($i <= 20){
        echo $lines.' | ';
        $i++;
    }
}

Thats my code. My question is how do I place it on the page? I want to place it in the middle of the page inside a nice looking box/border. How would I do that?
02-29-2012 08:34 PM
Find all posts by this user Quote this message in a reply
iPorn Offline
VIP Donor Status
******

VIP Donor Status
Posts: 247
Joined: Jun 2011
Reputation: 12
G Ruby
Given 8 thank(s) in 7 post(s)
Post: #4
Thread RE: Need PHP help!
I'm really tired right now but if that code gets what you want to display in a plain format then you should either.
1.
Open&Close the php tags and insert the HTML code between it.
Example:
PHP Code:
<?php
$username 
"iPorn";
?>
<a href="http://emillionforum.com/Thread-need-php-help">
<h1>
<?php 
echo $username;
?>
</h1></a>
<br>
^^ Yay 

Or use echo to call html..
PHP Code:
<?php
$username 
"iPorn";
echo 
"<h1>";
echo 
$username;
echo 
"</h1>";
?>
Or like this?
PHP Code:
<?php
$username 
"iPorn";
echo 
"<h1>".$username."</h1>";
?>


Maybe I'm heading in the wrong direction? O.o

I LIKE PIE!!!
[Image: showthread.php?tid=197]
(This post was last modified: 02-29-2012 09:56 PM by iPorn.)
02-29-2012 09:55 PM
Find all posts by this user Quote this message in a reply
David Offline
Moderator
*******

Moderators
Posts: 533
Joined: Aug 2011
Reputation: 28
White Hat Angel
Given 12 thank(s) in 10 post(s)
Post: #5
Thread RE: Need PHP help!
(02-29-2012 09:55 PM)iPorn Wrote:  I'm really tired right now but if that code gets what you want to display in a plain format then you should either.
1.
Open&Close the php tags and insert the HTML code between it.
Example:
PHP Code:
<?php
$username 
"iPorn";
?>
<a href="http://emillionforum.com/Thread-need-php-help">
<h1>
<?php 
echo $username;
?>
</h1></a>
<br>
^^ Yay 

Or use echo to call html..
PHP Code:
<?php
$username 
"iPorn";
echo 
"<h1>";
echo 
$username;
echo 
"</h1>";
?>
Or like this?
PHP Code:
<?php
$username 
"iPorn";
echo 
"<h1>".$username."</h1>";
?>


Maybe I'm heading in the wrong direction? O.o

No that actually helps. I will keep playing around with it.
02-29-2012 10:10 PM
Find all posts by this user Quote this message in a reply
iPorn Offline
VIP Donor Status
******

VIP Donor Status
Posts: 247
Joined: Jun 2011
Reputation: 12
G Ruby
Given 8 thank(s) in 7 post(s)
Post: #6
Thread RE: Need PHP help!
Skype me tomorrow some time ~inboxed.

I LIKE PIE!!!
[Image: showthread.php?tid=197]
02-29-2012 10:18 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Navigation
adhere
Sponsors
afil
Alexa Rank