Iank1968 Posted February 6, 2009 Share Posted February 6, 2009 my last post I made an error and I couldnt edit it. I have a game created and the database is intact, I just dont know how to create a common.php file to query mysql. If anyone could please help me it would be greatly appreciated. Thanks in advance Quote Link to comment Share on other sites More sharing options...
peranha Posted February 6, 2009 Share Posted February 6, 2009 vague question Can we see some code, what it is supposed to do, more details would be helpful, and why is this in the sql section, it should be in the php section? Quote Link to comment Share on other sites More sharing options...
Iank1968 Posted February 6, 2009 Author Share Posted February 6, 2009 I wasnt sure where to post considering this is a mysql question and php lol. ok here is the code, its 400 lines long. is it ok to post something that long? If this needs to be moved to php I will do that too. Quote Link to comment Share on other sites More sharing options...
peranha Posted February 6, 2009 Share Posted February 6, 2009 You cant move things, only mods can but only display the code you are having problems with, give us an example of what you want done, and then explain what doesnt work, what you expect it to do that way we have something work work off of. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 6, 2009 Share Posted February 6, 2009 Unless you have a specific problem, a specific error, or a specific question that you need help with (and "how to create a common.php file to query mysql" is not a specific question), posting multiple-hundred lines of code will be pointless. You need to narrow down what you need help with and only post the code that is relevant. Quote Link to comment Share on other sites More sharing options...
Iank1968 Posted February 6, 2009 Author Share Posted February 6, 2009 Thanks so much. ok here is the code <? if ($_GET['prizes'] == "100") { ?> <table cellspacing="8"> <tr colspan="7"> <h1 class="quotetop1">Visit North American Landmarks to up your Login!</h1> </tr> <tr> <td valign='top'> <img src="http://www.appserved.com/~ianapps/globetrotters/images/north%20america/NA%20BRIDGE.gif"/> <h1 class="subtitle"><font size="2"><font color="#C6D4FF"><font size="2"><font color="#C6D4FF"><b><?=GetPrizeProperty ($user, "win_golden_gate"); ?>Golden Gate Bridge, USA</b></h1> </td> <td valign='top'> <img src="http://www.appserved.com/~ianapps/globetrotters/images/north%20america/NA%20GRAND%20CANYON.gif"/> <h1 class="subtitle"><font size="2"><font color="#C6D4FF"><font size="2"><font color="#C6D4FF"><b><?= GetPrizeProperty ($user, "win_grand_canyon"); ?> Grand Canyon, USA</b></h1> </td> <td valign='top'> <img src="http://www.appserved.com/~ianapps/globetrotters/images/north%20america/NA%20HOOVER%20DAM.gif"/> <h1 class="subtitle"><font size="2"><font color="#C6D4FF"><font size="2"><font color="#C6D4FF"><b><?= GetPrizeProperty ($user, "win_hover_dam"); ?> Hover Dam, USA</b></h1> </td> <td valign='top'> <img src="http://www.appserved.com/~ianapps/globetrotters/images/north%20america/NA%20MOUNT%20RUSHMORE.gif"/> <h1 class="subtitle"><font size="2"><font color="#C6D4FF"><font size="2"><font color="#C6D4FF"><b><?= GetPrizeProperty ($user, "win_mount_rushmore"); ?> Mount Rushmore, USA</b></h1> </td> <td valign='top'> <img src="http://www.appserved.com/~ianapps/globetrotters/images/north%20america/NA%20LIBERTY%20BELL.gif"/> <h1 class="subtitle"><font size="2"><font color="#C6D4FF"><font size="2"><font color="#C6D4FF"><b><?= GetPrizeProperty ($user, "win_liberty_bell"); ?> Liberty Bell, USA</b></h1> </td> <td valign='top'> <img src="http://www.appserved.com/~ianapps/globetrotters/images/north%20america/NA%20NIAGARA%20FALLS.gif"/> <h1 class="subtitle"><font size="2"><font color="#C6D4FF"><font size="2"><font color="#C6D4FF"><b><?= GetPrizeProperty ($user, "win_niagra_falls"); ?> Niagra Falls, Canada</b></h1> </td> </tr> </table> <? if (Gotlandmark1setRank ($user)) { ?> <fb:success message="AMAZING!!! you completed the '<?=$rank_main_travel_set1;?>' set you get AF$ 5 more per login" /> <? } } ?> On the page when you click the tab to view I get Fatal error: Call to undefined function getprizeproperty() in /home/ianapps/public_html/globetrotters/prizes.php on line 79 Thanks again for your help. Quote Link to comment Share on other sites More sharing options...
peranha Posted February 6, 2009 Share Posted February 6, 2009 That error means that the function getprizeproperty() does not exist. also use [ code] tags (without the space) it colors things and makes it easier to read. Quote Link to comment Share on other sites More sharing options...
Iank1968 Posted February 6, 2009 Author Share Posted February 6, 2009 this is what I need help with, creating someting in a common.php file so getprizeproperty exist. If thats what I have to do. can you help please? Quote Link to comment Share on other sites More sharing options...
peranha Posted February 6, 2009 Share Posted February 6, 2009 Where did you get that script from? We have no idea what that function is supposed to do, so there really isnt much that we can help with. I'd say contact the company you got the script from and get that function from them. I can make a function, but I can also guarantee that it wont do what it is supposed to do, or what you expect it to do. Quote Link to comment Share on other sites More sharing options...
Iank1968 Posted February 6, 2009 Author Share Posted February 6, 2009 I got the code from another developer which I cant get ahold of anymore. What its supose to do is count each prize the first 2 are commons next 2 are semi rares and the last is a rare. After I figure out how to get that function working I have to do the odds for each prize. each cycle will be 10,000 clicks, so I will figure out the odds after. hope this helps a little or at all lol. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 6, 2009 Share Posted February 6, 2009 Ugh... use code blocks next time. This seems like a php issue... please confirm, and I'll move it. Quote Link to comment Share on other sites More sharing options...
Iank1968 Posted February 6, 2009 Author Share Posted February 6, 2009 Ugh... use code blocks next time. This seems like a php issue... please confirm, and I'll move it. any help would be greatly appreciated. Thank you so much. Quote Link to comment 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.