DieSucker Posted June 22, 2006 Share Posted June 22, 2006 So I am also new to this PHP stuff, but I have written a script and need help with the outputthe 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 outputthe 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 scripthe 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 Quote Link to comment https://forums.phpfreaks.com/topic/12614-need-alittle-help-with-outputting/ Share on other sites More sharing options...
shortj75 Posted June 22, 2006 Share Posted June 22, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/12614-need-alittle-help-with-outputting/#findComment-48392 Share on other sites More sharing options...
DieSucker Posted June 23, 2006 Author Share Posted June 23, 2006 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} ectyou 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 uponif u can help and dont wanna reply here u can MSN me @ diesucker@evilbunnytracks.net Quote Link to comment https://forums.phpfreaks.com/topic/12614-need-alittle-help-with-outputting/#findComment-48698 Share on other sites More sharing options...
DieSucker Posted June 24, 2006 Author Share Posted June 24, 2006 any help from anyone would be greatly appreciated Quote Link to comment https://forums.phpfreaks.com/topic/12614-need-alittle-help-with-outputting/#findComment-48987 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.