Jump to content
php.lv forumi

pārsniegšana


airbus

Recommended Posts

Esmu izdarījis šadi

if(($cup['team'] == 5)){
echo 'Nav brīvu vietu!';
}

else{
echo '<input type="submit" value="Pievienoties" />';
}

Viss iet, tikai viņš neko neraksta kad ir parsniegts 5komandas, bet vienkarši atļauj turpināt pievienoties

Edited by airbus
Link to comment
Share on other sites

kas tajā cup['team'] ir? no kurienes izdabū rezultātu?

 

uzraksti īsu tabulas aprakstu... tad varēs precīzāk palīdzēt

 

P.S. es vēl iesaku uztaisīt pārbaudi servera pusē, jo tā es varu mierīgi bez tās pogas submitot caur kādu citu lapu utt.. .

Edited by Indian
Link to comment
Share on other sites

1) Kāpēc tur ir 2 iekavas?

if(($cup['team'] == 5))

 

2)

$skaits = mysql_query("SELECT something FROM table WHERE a='e'");
if (mysql_num_rows($skaits) >= 8) {
echo 'Nav brīvu vietu!';
} else {
echo '<input type="submit" value="Pievienoties" />';
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...