Jump to content

karimali831

Members
  • Posts

    436
  • Joined

  • Last visited

Everything posted by karimali831

  1. Okay, I'm not sure where to put this. Here is the code: $result2 = safe_query("SELECT * FROM ".PREFIX."cup_clan_members WHERE userID = '$userID' && clanID = '$clanID'"); if(mysql_num_rows($result2)==3) echo '<center><b>You already are in 3 teams!</b><br>Please leave a team first.</center>'; ================== ADD HERE? ================== else{ $result = safe_query("SELECT * FROM ".PREFIX."cup_all_clans ORDER BY name ASC"); $clan .= '<option value="0" selected="selected"> - Please choose a Team - </option>'; while($ds=mysql_fetch_array($result)) { $clan .= '<option value="'.$ds[iD].'">'.$ds[name].'</option>'; } Thanks for help.
  2. Hi, Can someone tell me the elseif code that disallows a user joining a team if their userID is already in clanID. Hope this makes sense. Take a look at the attatchment, it shows when user (ID -> 325) joins a team (ID -> 187), it allows it multiple of times. (two rows queried) [attachment deleted by admin]
  3. yes and with: if(mysql_num_rows($ergebnis2)==2) echo '2 results'; it counts 2, but I want this value to be retrieved from a table? still no understand?
  4. Hi, I want to use: if(mysql_num_rows($ergebnis2)==2) how can the value 2, be retrieved from the database? example, lets say I have if (mysql_num_rows($ergebnis2)==$limit) $limit = $ds['limit']; also query: safe_query("SELECT limit FROM ".PREFIX."settings WHERE limit = '$limit'")); but this is wrong. I'm php beginner. Can someone help me please build this together? thanks for any help at all.
  5. I'll say if my thread is on the 2nd/3rd page, it's is very likely that I wouldn't get a response. The thread goes to the 2nd page in just a day.
  6. Sorry I didn't know I had to pay for advice, thought this is a forum where you can get help. Maybe by paying changes to the website can be done?
  7. The correct code for <? include("sc_files.php"); ?><onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image41','','Bilder/gallery1_47.jpg',1)"><img src="Bilder/gallery_47.jpg" name="Image41" width="167" height="15" border="0"></a></td>
  8. Where can I get help elsewhere then? My topic is already on the second page.
  9. I'll try explain 1 again with codes. I am able to use this fine -> <td width="196" height="42" valign="top"><? include("sc_files.php"); ?></td> BUT When using this code, it doesn't work. The "index.php?site=gallery will just point to the homepage. <a href="index.php?site=gallery" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image41','','Bilder/gallery1_47.jpg',1)"><img src="Bilder/gallery_47.jpg" name="Image41" width="167" height="15" border="0"></a></td> I tried <? include("sc_files.php"); ?><onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image41','','Bilder/gallery1_47.jpg',1)"><img src="Bilder/gallery_47.jpg" name="Image41" width="167" height="15" border="0"></a></td> But I know this is soo wrong
  10. I'm new to this and need help with 2 things. You'll maybe not understand, hope you do though 1) I setup a website @ http://team-300.net/templates/1/index.php and for any php page I create it would show the contents of the first page from http://team-300.net/templates/1/index.php?site=news and for example, if I do create a link "awards.php" http://team-300.net/templates/2/index.php?site=awards would still point to index.php?page=news showing the contents of that page (No redirection) the page itself 2) Also have 5 designs of that website, trying to show the contents of news.php for each news.php for each design e.g. http://team-300.net/templates/1/index.php?page=site the same as http://team-300.net/templates/2/index.php?page=site I have no clue of doing this, seems a little complicated. I do not want to do this manually for each theme as this will take very long and as I know there's another way but I just don't know how I can't point http://team-300.net/templates/2/index.php?page=news to templates/1/index.php?page=news as it would show template 1 and can't do the same for templates/2/index.php?page=news to point to templates/1/news.php as this will just show the contents, not the design/index.php iteslf. Also, try not to comment on frames if you can BUT if that's the only way, then I got no choice. Yeah, problem 1 is the main thing so if you can help I'll appreciate it. Thanks! Karim
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.