
gaogier
Members-
Posts
84 -
Joined
-
Last visited
Profile Information
-
Gender
Not Telling
gaogier's Achievements

Member (2/5)
0
Reputation
-
That gives this error Warning: require_once(./initdata.php) [function.require-once]: failed to open stream: No such file or directory in/disk3/gaogier/public_html/community/ssi.php on line 79 Fatal error: require_once() [function.require]: Failed opening required './initdata.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /disk3/gaogier/public_html/community/ssi.php on line 79
-
the file is there though, http://runehints.com/community/ssi.php?a=newsnew&show=9&f=2,99 If I make the line <?php include("http://runehints.com/community/ssi.php?a=newsnew&show=9&f=2,99"); ?> I get no errors no news
-
First lets deal with the news warning found here, http://runehints.com/ Here is my php code <div id="contenttitle">RuneHints News<?php include("includes/newsfeed.php"); ?></div> <?php include("community/ssi.php?a=newsnew&show=9&f=2,99"); ?>
-
Why do I get the following error? and How to fix? Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in/home/gaogier/public_html/pages/monsters.php on line 217 Here is my code http://pastebin.com/vrEamahn If i add the or die part, I get this message. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 What do I do?
-
Need Help Explaining Where I Go Wrong In My Theories
gaogier replied to gaogier's topic in Application Design
Thank you, I am not going to PM you the code don't worry. I am however not designing a game, its a calculator so players of an existing game knows what levels they need to level up to gain combat levels - an combat calc. I am very bad/new to php and never progressed pass basic skills. I sort of know what I am doing, but also don't have a clue - I am making it up as I go along. I know this is a forum, the only problem is it takes programmers a while to read posts, hence things take a while to get done, I just wanted to see if anyone wanted to help me speed this up. I am comfortable to do this myself, but just need a guide. I am happy to do this here. -
Need Help Explaining Where I Go Wrong In My Theories
gaogier replied to gaogier's topic in Application Design
I am glad. function combatLevel($attack, $defence, $strength, $hp, $prayer, $ranged, $magic, $summoning) {$base = ($defence + $hp + floor($prayer / 2) + floor($summoning / 2)) * 0.25; $melee = ($attack + $strength) * 0.325;$ranger = floor($ranged * 1.5) * 0.325;$mage = floor($magic * 1.5) * 0.325; return $base + max($melee, $ranger, $mage);} function combatLevelF2p($attack, $defence, $strength, $hp, $prayer, $ranged, $magic) {$base = ($defence + $hp + floor($prayer / 2)) * 0.25; $melee = ($attack + $strength) * 0.325;$ranger = floor($ranged * 1.5) * 0.325;$mage = floor($magic * 1.5) * 0.325; return $base + max($melee, $ranger, $mage);} The new formula is simpler now. Its just Defence + highest level out of Strength, Ranged, Magic, Attack and Summoning. So, would this work, if not why? function combatLevel($attack, $defence, $strength, $hp, $ranged, $magic, $summoning) {$base = ($defence + 2); return intval($base + max($attack, $strength, $ranged, $magic, $summoning)); -
If your willing to help me sort things out like calculators for a game, or generate a hiscore lookup (a future project), please can you either help me here, or help me via msn, skype, AOL messenger or other device. I can't pay for your advise, but I am a complete novice and this is the only way I will learn. If you post here, I will send you my code via a PM if thats possible. Basically, I need to recalculate, using a different formula, which I think I would just need to change the order of things but I am not sure.
-
I commented out the connect and poll now works for some unknown reason.
-
The same file connect to the same database for everything on the site. which all works.
-
Hello I am looking to redesign an old poll system what approved to work effeciantly, however I now need to get the poll to work on my new site. I am getting these errors. Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/gaogier/public_html/includes/polls.php on line 4 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/gaogier/public_html/includes/polls.php on line 4 Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/gaogier/public_html/includes/polls.php on line 52 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/gaogier/public_html/includes/polls.php on line 52 Code is on pastebin - 24 hours. http://pastebin.com/1u19Xwwk Now here is where my files are located includes/connect.php includes/polls.php pages/ - my pages.php - displayed as a new folder almost using mod rewrite. tpl/sidebar.tpl - where my poll will be displayed using php - include.
-
Hello First of all, my code is old, modified etc, I know. I can't afford for someone to reprogram it from scratch. So, with your help I think a novice like me can progress the script into the next stage. http://pastebin.com/580vaMFa Current code - http://pastebin.com/580vaMFa Current url http://runehints.com/calculators - use gaogier Test page - not set up yet. What I need this to work and look like, http://runehints.com/images/calclayout.png If your username can't be found for that skill, RuneScape Name should become Current Exp What should I do first shortern the URL? Make the script from 3 pages to just 1?
-
Problem Resolved
-
Okay, sorry. So, I have managed to set up part 1 okay. I want this, url to show .:RuneHints:. Quests - All Fired Up Guide If its any help the site uses tinymce. I am not sure if that helps or this should be in php code. As I didn't code the site I post here.
-
Hello If I have 1 header page I edit and it changes on all the pages on the website. However the title is the same on every page and I am trying to make the site more SEO friendly. I was thinking of adding an <?php echo $title; ?>, and have the rest of the code on the relevant pages. I would need to add the following code to the correct pages right? <?php $title = "New title!"; ?>< or would that be too complex? Is there an easier way? So, if I don't have a title on the page set up, I can create an if statement. Is the following code correct? <?php if ($title): echo $title; else { echo $standard title; } ?> I am a novice at php. Sorry and thanks for your help. MOD EDIT: [m] . . . [/m] tags changed to . . . tags.
-
Sorry, I have no idea where to start this. The idea is to add new calculators, add items, edit items and delete them. If you look at my calculators Found here, http://runehints.com/calculators you may understand it better.