I want to be happy, just happy and that's what I can't be today. Life sucks sometimes.
I want to be happy, just happy and that's what I can't be today. Life sucks sometimes.
I sang of leaves, of leaves of gold, and leaves of gold there grew.
I wish dear pensy would stop feeling Pensive..
maybe you could look at the very funny lol thread or the joke thread.
What I'm thinking right now:
"I wanna take a bath."
Dreams! adorations! illuminations! religions!
the whole boatload of sensitive!
— Allen Ginsberg, Howl II.
I sang of leaves, of leaves of gold, and leaves of gold there grew.
I know exactly what ya mean..
You sound like you're feeling better now!
Glad to hear it!![]()
Dreams! adorations! illuminations! religions!
the whole boatload of sensitive!
— Allen Ginsberg, Howl II.
should get back to trying to get this stupid decsion function to work I mean can anyone see anything wrong with this function?
I cant it infuriating I need the php angels to come and save me!Originally Posted by nights stupid programme
My mission in life is to make YOU smile![]()
![]()
~~~~~~~~~~~~~~~~~~~~~~~~~
"The time has come," the Walrus said,"To talk of many things:
Forum Rules- You know you want to read 'em
|Litnet Challange status = 5/260
|currently reading
“As Kingfishers catch fire, dragonflies draw flame . . .”
Why disqualify the rush? I'm tabled. I'm tabled.
hey they are in order....arent they oh no have I got it all wrong is that why its not working?![]()
My mission in life is to make YOU smile![]()
![]()
~~~~~~~~~~~~~~~~~~~~~~~~~
"The time has come," the Walrus said,"To talk of many things:
Forum Rules- You know you want to read 'em
|Litnet Challange status = 5/260
|currently reading
$catstat=explode(';',$catin[$i])//thisseperates them
The above statement doesnt show '$catstat' as an array
print "$catstat[0]is $catstat[1] years old";//what to do if it works
In this statement you are trying to use '$catstat' as an array using [0] and [1]
I think here is the problem, the variable '$catstat' has two different usage - one as a simple variable and in the IF loop as an array.
If you make the variable type the same this program might work.
no thats part of the program youll have to excuse the rammbling comments to myself butits in an array but whenever I try to run it it starts objecting to the line with if($i==5){<?php
/*find out why the next section of code doesnt work...that is WHY oh why is it printing regardless*/
//$cats='13';
//if($cats>=10){
//print'cat lady!!!';
//}
//yay its working!! next task get file!!
$catin=file('catsparty.txt');
print"$catin[5]<br>";
print"$catin[3]<br>";
print"$catin[7]<br>";
/* combine a loop with an if/elseif statement so get a for loop going making it explode then get it to if the exploded answer to print out certain results.*/
for($i=0;$i<25;$i++){ //this makes the loop go round should calculat $i asn mber of lines!!
$catstat=explode(';',$catin[$i])//thisseperates them
if($i==5){
print "$catstat[0]is $catstat[1] years old";//what to do if it works
}
elseif($i==3){
print "$catstat[0]is $catstat[1] years old";
}
elseif($i==7){
print "$catstat[0]is $catstat[1] years old";
}
}
?>
My mission in life is to make YOU smile![]()
![]()
~~~~~~~~~~~~~~~~~~~~~~~~~
"The time has come," the Walrus said,"To talk of many things:
Forum Rules- You know you want to read 'em
|Litnet Challange status = 5/260
|currently reading
Another thing I would like to add is that every IF has to have an ELSE.
In the construct, ONE Else is missing.
if($i==5)
elseif($i==3)
elseif($i==7)
ELSE This will end the loop.
Ofcourse, I dont know php, but I know C and C++ and this is how the loop works in these languages. I think the concept will be the same here as well.
EDIT -- as per php syntax you will also have to check the number of curly braces '{}' that are required. Sometimes, small errors like these will not allow the program to work, eventhough the logic is correct.
Last edited by Madhuri; 11-29-2006 at 02:52 PM.
ah right thankswell back too cursing the program...
My mission in life is to make YOU smile![]()
![]()
~~~~~~~~~~~~~~~~~~~~~~~~~
"The time has come," the Walrus said,"To talk of many things:
Forum Rules- You know you want to read 'em
|Litnet Challange status = 5/260
|currently reading
How shallow my attempts for writing must have been today, in order my writing classes' fellows to allow themselves to praise me, which they usually do when they are not afraid someone's writing is better than their
Se puede matar el hombre
Pero no mataran la forma
En que se alegraba su alma
Cuando souaba ser libre
......
They can kill a man/but they cannot kill the way /his soul rejoices/when it dreams/that it is free
....
A folklore song from Venecuela
Dunno
Last edited by Therapy?; 02-17-2007 at 03:31 PM. Reason: :p