rilleman Posted April 22, 2010 Share Posted April 22, 2010 Hi there! I need your help.. I've been starting to script a game-site, that provides you with Free flash games and shot movies. Thing is; Im new to PHP - And i need to make a script. Its about updating the site, atm im doing every site for each game, manuelly. Its like 300pages to do... Its sucks, so ... please can someone help me ? :/ Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/ Share on other sites More sharing options...
MadTechie Posted April 22, 2010 Share Posted April 22, 2010 And what exactly is the question and what are you stuck on ? Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046511 Share on other sites More sharing options...
rilleman Posted April 22, 2010 Author Share Posted April 22, 2010 Need a script so I can easy update all new games/movies from the website not do it manuelly with AP divs and so on in dreamweaver.. And my question is, How? Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046671 Share on other sites More sharing options...
monkeytooth Posted April 22, 2010 Share Posted April 22, 2010 PHP mySQL, OOP, through a series of scripts created to do specifically the tasks you want (Which mind you we have no idea what your doing specifically ). Running through a template to maintain the general look of the site otherwise.. Vast Question "How?" equally vast answer.. Hope that helps :-) Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046695 Share on other sites More sharing options...
ignace Posted April 22, 2010 Share Posted April 22, 2010 How? You start with <?php and end with ?> (although this is not required, you can not end at all, at infinitum) and all brain activity in between. Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046705 Share on other sites More sharing options...
plznty Posted April 22, 2010 Share Posted April 22, 2010 PHP mySQL, OOP, through a series of scripts created to do specifically the tasks you want (Which mind you we have no idea what your doing specifically ). Running through a template to maintain the general look of the site otherwise.. Vast Question "How?" equally vast answer.. Hope that helps :-) This is the right idea, I cannot believe you haven't considered dynamic pages before, do a bit of research into dynamic webpages and we will help you if you get stuck on the way. Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046736 Share on other sites More sharing options...
rilleman Posted April 23, 2010 Author Share Posted April 23, 2010 I dont get it.. aff Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046858 Share on other sites More sharing options...
callesson Posted April 23, 2010 Share Posted April 23, 2010 What you need is one page were you can "store" all your games/movies, for exampel you put all your 300 pages into one, kinda. Then instead of having 300 pages you have one page with like 300 IDs. like yourwebsite.com/index.php?id=1 yourwebsite.com/index.php?id=2 and if id==1 you show your thirst game/movie. elseif id==2 you show your second game/movie. So go learn about dynamic pages and the GET,if, else functions like they other said! Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046868 Share on other sites More sharing options...
PFMaBiSmAd Posted April 23, 2010 Share Posted April 23, 2010 The id values that callesson mentioned would in fact relate to entries in a database table that you would simply retrieve and output for that specific id value. You would in fact not use any if/else logic for each id value. Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1046962 Share on other sites More sharing options...
callesson Posted April 23, 2010 Share Posted April 23, 2010 Ty for correcting me PFMaBiSmAd ! Now when you mention it I realysed that if/else is wrong. I checked in my own php codes and I do not use them, dont know why I said so. ex: $game= $_GET["id"]; $getgames= mysql_query ("SELECT * FROM games WHERE id='$game'") or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/199402-new-sites-for-everygame-please-look/#findComment-1047007 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.