Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I echo a variable
#1
I've been learning how to make a table, but how can i echo a variable over and over? Thanks guys
Reply
#2
Well, your account is closed, but I'll be of assistance, anyway.

PHP Code:
while(1) {
    echo 
$var;

Reply
#3
(07-27-2010, 02:02 AM)Orgy Wrote: Well, your account is closed, but I'll be of assistance, anyway.

PHP Code:
while(1) {
    echo 
$var;


Does not quite answer his question though.
He wanted to repeat an echo from a table.
It does not matter. He is banned so i expect this thread to be closed.
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply
#4
(07-27-2010, 02:10 AM)DAMINK™ Wrote: Does not quite answer his question though.
He wanted to repeat an echo from a table.
It does not matter. He is banned so i expect this thread to be closed.

He asked how to echo a variable over and over.

And so what if he is banned? What if someone else comes along with the same question?
Reply
#5
You would need to connect to the database in question before you could pull said variable from the table though yes?
Ultimately i wonder why someone would want to do this. I can only think for harm not good? Might be wrong though.
PHP and sql are not my strongest points.
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply
#6
Well, he's never said anything about a MySQL table. He could just mean a regular table ;)

But no, its used in common practice, to echo rows of a MySQL table into columns. Take for example the forum we're currently using. Its using a while loop to get the rows of the posts and echo them out into a table appropriately, one at a time, and in the correct order.

Same with threads, etc.
Reply
#7
But it in a continuous loop.

Code:
while (true)
{
echo ($VARIABLE);
}
Reply
#8
(07-30-2010, 10:40 AM)PurpleHaze Wrote: But it in a continuous loop.

Code:
while (true)
{
echo ($VARIABLE);
}

This is the exact same thing I already posted.
Reply
#9
Seems he is unbanned and problem solved. Thread probably should be closed. Unless he comes back and posts.
Reply
#10
(12-06-2010, 01:22 AM).Shannon Wrote: Seems he is unbanned and problem solved. Thread probably should be closed. Unless he comes back and posts.

Why close the thread?
[Image: TYzKF.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP echo contents of folder help DAMINK™ 3 1,247 06-01-2012, 04:07 PM
Last Post: DAMINK™
  [NEED HELP] PHP Form post, get, echo Đενɨаηсε™ 5 2,074 02-06-2012, 01:16 PM
Last Post: ★Cooldude★
  PHP Echo HTML From MySQL Value? iMr 7 3,765 03-19-2011, 09:41 AM
Last Post: ★Cooldude★
  Noob's doubt on echo function in php mandi 5 1,734 12-09-2010, 06:00 AM
Last Post: Orgy

Forum Jump:


Users browsing this thread: 1 Guest(s)