Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
Nije mi bas jasno:

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 03.02.2004 02:17    Post subject: Nije mi bas jasno: Add user to your forum ignore list Reply with quote

Zasto ovo ne valja (php)?
:

Code:
$users[3];
for ($i=0; $i<3; $i++)
{
    $users[i]="ime_".$i;
    echo "<br />$i<br />";
    echo " $users[i]<br />";
    echo "This is the user # $i<br />";
}


for ($i=0; $i<3; $i++)
{
    echo "This is the user # $i named $users[i] .<br />";
}
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 03.02.2004 08:10    Post subject: Add user to your forum ignore list Reply with quote

probaj ovak:

Code:

$users = array();
for($i = 0; $i < 3; $i++)
{
    $users[i] = "ime_$i"; // ili $users[] (bez indeksa u zagradama
}
Back to top
View user's profile Send private message
orange



Joined: 21 Sep 2003
Posts: 622
Location: ST

PostPosted: 03.02.2004 08:13    Post subject: Add user to your forum ignore list Reply with quote

zato jer ti ne znas programirat Smile

$users[3]; ubij jer to ne znaci nista...
$users=array(); ce ti jos progutat, ali ti ni to ne treba...
ne trebas sve predefinirat u php-u. a posebno ne duzinu polja.
a kada u kodu koristis, ispred svake varijable mora doc $ pa onda kad pises $users[i] ne prihvaca jer moras napisat $users[$i].

Code:
<?
$users=array();
for ($i=0; $i<3; $i++)
{
    $users[$i]="ime_".$i;
    echo "<br />$i<br />";
    echo " $users[$i]<br />";
    echo "This is the user # $i<br />";
}


for ($i=0; $i<3; $i++)
{
    echo "This is the user # $i named $users[$i] .<br />";
}
?>

_________________
pwned!
Back to top
View user's profile Send private message Send e-mail
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 03.02.2004 08:44    Post subject: Add user to your forum ignore list Reply with quote

oke, ja sam zaboravio dodat dollar sign u indeks polja..ali osim toga ne vidim razliku tvog i mog rjesenja... HELLO MR. SCIENTIST!!!111
Back to top
View user's profile Send private message
orange



Joined: 21 Sep 2003
Posts: 622
Location: ST

PostPosted: 03.02.2004 08:59    Post subject: Add user to your forum ignore list Reply with quote

maxy wrote:
oke, ja sam zaboravio dodat dollar sign u indeks polja..ali osim toga ne vidim razliku tvog i mog rjesenja... HELLO MR. SCIENTIST!!!111


pa tvoje ne radi Smile
ma ja sam poceja pisat reply prije nego sta si ti posla svoj...pa nisam uopce vidija tvoj...ono sve sta sam pisa bilo je upuceno edgaru Smile

_________________
pwned!
Back to top
View user's profile Send private message Send e-mail
maxy



Joined: 07 Sep 2003
Posts: 894
Location: Zagreb

PostPosted: 03.02.2004 09:04    Post subject: Add user to your forum ignore list Reply with quote

oukej Very Happy
Back to top
View user's profile Send private message
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 03.02.2004 10:01    Post subject: Add user to your forum ignore list Reply with quote

ma zaje*o sam taj dolar:), tesko se naviknut na tu glupost s tim dolarom..
ionako dolar pada.. mozda cemo morati s eurom mijenjat to:)


ma nisam puno radio s arrayima u php-u, navikao sam na C\C++ gdje treba alocirati polje:)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
orange



Joined: 21 Sep 2003
Posts: 622
Location: ST

PostPosted: 03.02.2004 10:23    Post subject: Add user to your forum ignore list Reply with quote

edgar wrote:
ma nisam puno radio s arrayima u php-u, navikao sam na C\C++ gdje treba alocirati polje:)


je, je...izvlaci se sad... Very Happy

_________________
pwned!
Back to top
View user's profile Send private message Send e-mail
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 03.02.2004 10:33    Post subject: Add user to your forum ignore list Reply with quote

orange wrote:
edgar wrote:
ma nisam puno radio s arrayima u php-u, navikao sam na C\C++ gdje treba alocirati polje:)


je, je...izvlaci se sad... Very Happy



Yes! You have A SIMPLE mind Laughing Razz Wink
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 03.02.2004 10:39    Post subject: Add user to your forum ignore list Reply with quote

na kraju je poanta da je jedini problem bio u govnu od ideje da treba gurat dolar sign pred varijable $$$$??? Confused Mad Evil or Very Mad

fakk that! Arrow

monopolisti... Smile Twisted Evil
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
orange



Joined: 21 Sep 2003
Posts: 622
Location: ST

PostPosted: 03.02.2004 11:00    Post subject: Add user to your forum ignore list Reply with quote

edgar wrote:
Yes! You have A SIMPLE mind Laughing Razz Wink


so what? Smile

_________________
pwned!
Back to top
View user's profile Send private message Send e-mail
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 03.02.2004 11:12    Post subject: Add user to your forum ignore list Reply with quote

Khm. This could escalate to middle earth war.Smile

Let it be.Smile

Ma šaljim se...
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group