Jump to content

Need alittle help with outputting


DieSucker

Recommended Posts

So I am also new to this PHP stuff, but I have written a script and need help with the output
the code below is sloopy i know, but best i can do.

So I am also new to this PHP stuff, but I have written a script and need help with the output
the code below is sloopy i know, but best i can do.

script here, too big to put on here [a href=\"http://www.evilbunnytracks.net/recs.txt\" target=\"_blank\"]PHP Script[/a]

The last few lines are the output. I actually would like to get these to output on a tpl file that I have but i am totally lost when it comes to the Template class and such. If anyone can help I know this will take alot of work but it would be much appreciated and i will give credit for help on script

he last few lines are the output. I actually would like to get these to output on a tpl file that I have but i am totally lost when it comes to the Template class and such. If anyone can help I know this will take alot of work but it would be much appreciated and i will give credit for help on script
Link to comment
https://forums.phpfreaks.com/topic/12614-need-alittle-help-with-outputting/
Share on other sites

try changing this

[code]
if (strlen($rec5) >= 1) {
    echo "<img src=/records/images/$rec1.jpg width=40 heigth=40>".$rec1."\n".duration($time)."\n". $rec4.date("m/d/Y", $rec14)."\n"."at"."\n".date("h:ma T", $rec14)."<br>";
    }          
    if (strlen($rec5) >= 3) {
    echo "<img src=/records/images/$rec5.jpg width=40 heigth=40>".$rec5."\n".duration($time1)."\n". $rec7.date("m/d/Y", $rec15)."\n"."at"."\n".date("h:ma T", $rec15)."<br>";
    }
    if (strlen($rec8) >= 3) {
    echo "<img src=/records/images/$rec8.jpg width=40 heigth=40>".$rec8."\n".duration($time2)."\n". $rec10.date("m/d/Y", $rec16)."\n"."at"."\n".date("h:ma T", $rec16)."<br>";
    }
    if (strlen($rec11) >= 3) {
    echo "<img src=/records/images/$rec11.jpg width=40 heigth=40>".$rec11."\n".duration($time3)."\n".$rec13.date("m/d/Y", $rec17)."\n"."at"."\n".date("h:ma T", $rec17)."<br>";
    }
       }
[/code]

to this

[code]

if (strlen($rec5) > 1) {
    echo "<img src=/records/images/$rec1.jpg width=40 heigth=40>".$rec1."\n".duration($time)."\n". $rec4.date("m/d/Y", $rec14)."\n"."at"."\n".date("h:ma T", $rec14)."<br>";
    }          
    if (strlen($rec5) > 3) {
    echo "<img src=/records/images/$rec5.jpg width=40 heigth=40>".$rec5."\n".duration($time1)."\n". $rec7.date("m/d/Y", $rec15)."\n"."at"."\n".date("h:ma T", $rec15)."<br>";
    }
    if (strlen($rec8) > 3) {
    echo "<img src=/records/images/$rec8.jpg width=40 heigth=40>".$rec8."\n".duration($time2)."\n". $rec10.date("m/d/Y", $rec16)."\n"."at"."\n".date("h:ma T", $rec16)."<br>";
    }
    if (strlen($rec11) > 3) {
    echo "<img src=/records/images/$rec11.jpg width=40 heigth=40>".$rec11."\n".duration($time3)."\n".$rec13.date("m/d/Y", $rec17)."\n"."at"."\n".date("h:ma T", $rec17)."<br>";
    }
       }
[/code]

when i was a noob to php i did almos the same thing but i was calling from a db mine looked like this if($getname['user'] <=1){ echo"user doesnt exist";} and at first it didnt work so i removed the = and then it worked fine but it took me about four days of trying different things to figure that out sorry for the story but i thought it might help
Thanks for the reply shorty, the output is perfectly ok, cause the file from where I am pulling the names a blank line is 2 long accrding to sterlen, my problem is getting the output in varibals so that way I can get it to be called to in a tpl file like {USERNAME] {MAP} ect
you can see the output @ [a href=\"http://www.evilbunnytracks.net/records\" target=\"_blank\"]http://www.evilbunnytracks.net/records[/a]
but what I would like is for it to output into a 4colum table in a template like the base one @ [a href=\"http://www.evilbunnytracks.net\" target=\"_blank\"]http://www.evilbunnytracks.net[/a] (where the updates are is where the tables would go) i can make the template fine, just can't figure out how to set them to varibals to call upon
if u can help and dont wanna reply here u can MSN me @ [email protected]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.