Search found 18 matches

by cheerio
Fri Dec 16, 2005 3:00 pm
Forum: PHP - Code
Topic: Parsing a string
Replies: 1
Views: 517

Parsing a string

Hey, i need help parsing a string that i am receiving from mysql. Here is the code $result = mysql_query("SELECT * FROM `content` WHERE name='current' LIMIT 1"); while($row = mysql_fetch_array($result)) { echo $row['categories']; } This is what it should echo, parsed. <div id='head'> Tutor...
by cheerio
Mon Oct 17, 2005 7:40 pm
Forum: PHP - Code
Topic: Simple AIM profile script...
Replies: 10
Views: 478

urlencode() ?? Note: I don't think I have the foggiest idea what the problem is though (and where the %n is being used in PHP) in AIM profile, aim replaces any instance of %n with the viewers Screen Name. this way, if you have ?sn=%n, aim will replace it to something like ?sn=[VIEWER'S SCREENNAME H...
by cheerio
Mon Oct 17, 2005 7:36 pm
Forum: PHP - Code
Topic: using URL for navigation
Replies: 1
Views: 362

using URL for navigation

hi all, i've been wondering this for a real long time now, and couldn't find any search results(i'm bad at coming up with search terms) but, how do you use the URL for sort of navigation on your site, like Wikipedia.org, or textpattern Wikipedia.org uses like site/image:image.jpg I saw this "si...
by cheerio
Mon Oct 17, 2005 7:30 pm
Forum: PHP - Code
Topic: Simple AIM profile script...
Replies: 10
Views: 478

I have an AIM profile script also, but mine is pure flat files.
it will ever work though, because i think AIM strips the spaces...unless it opens in a browser maybe..but dunno
by cheerio
Fri Sep 30, 2005 9:21 pm
Forum: PHP - Code
Topic: Moving elements of an array?
Replies: 3
Views: 256

thanks guys :)
by cheerio
Mon Sep 26, 2005 7:22 pm
Forum: PHP - Code
Topic: Moving elements of an array?
Replies: 3
Views: 256

Moving elements of an array?

how do i move an element of an array to a different location? for example,

i have an array array(1,2,3,4,5,6)
and i want to move the 3 after the for so it ends up as array(1,2,4,3,5,6)

how is this done???
by cheerio
Sun Sep 04, 2005 10:39 am
Forum: PHP - Code
Topic: Help with sorting something
Replies: 10
Views: 225

oh 8O
by cheerio
Sat Sep 03, 2005 8:57 pm
Forum: PHP - Code
Topic: Help with sorting something
Replies: 10
Views: 225

$rows = explode("|line|",$contents_old); ?> <table class="old"> <?php $i = 0; while($i < count($rows)) { foreach($rows as $row => $data) { $rows[$row] = explode("|#|",$row[$i]); list($name,$contact,$subject,$date,$comment,$ip) = $data; echo ' <tr> <td rowspan="2&q...
by cheerio
Sat Sep 03, 2005 8:34 pm
Forum: PHP - Code
Topic: Help with sorting something
Replies: 10
Views: 225

so now how would i be able to echo like name, contact, comment, etc???? is it still possible for me to use the list command?
by cheerio
Sat Sep 03, 2005 3:43 pm
Forum: PHP - Code
Topic: Help with sorting something
Replies: 10
Views: 225

the code. I got confused at like the $rows[$row] line
by cheerio
Sat Sep 03, 2005 3:39 pm
Forum: PHP - Code
Topic: Help with sorting something
Replies: 10
Views: 225

:'( i'm dont follow that too well..i don't know what to do next now :'(
by cheerio
Sat Sep 03, 2005 3:19 pm
Forum: PHP - Code
Topic: Help with sorting something
Replies: 10
Views: 225

Help with sorting something

hey i'm just making a comment board heres the function that displays the old entries: function showold($file,$badwordsarray,$cleanword) { switch($_GET[badlang]) { case off: $filter = 0; break; default: $filter = 1; break; } $contents_old = file_get_contents($file); if($filter) { echo "<font cla...
by cheerio
Mon Aug 29, 2005 4:24 pm
Forum: PHP - Code
Topic: Class Schedule type script
Replies: 1
Views: 196

Class Schedule type script

hi emm i'm trying to make a script that shows a class schedule. I have a text file with the different periods with a seperator: |line| classes.txt: 1,spanish,sendon,24 |line|2,CADrockets,monaco,35 |line|2,GR artsweb,convery,44 |line|2,multimedia,verger,2 |line|3,LA,horn,29 |line|4,SS,degen,40 |line|...
by cheerio
Sat Aug 13, 2005 7:33 pm
Forum: PHP - Code
Topic: how to get a picture of a website?
Replies: 8
Views: 545

oh i see, thanks for the quick reply :)
by cheerio
Sat Aug 13, 2005 5:38 pm
Forum: PHP - Code
Topic: how to get a picture of a website?
Replies: 8
Views: 545

how to get a picture of a website?

can someone please post the PHP code to getting a screen shot of a website...i've seen it on like some domain search engines and would really like to know how this is done i've searched lots of different things but didn't really find what i was looking for i wasn't to sure exactly where to post this...