Jump to content
MakeWebGames

cjelliott

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by cjelliott

  1. doesnt work for me every page seems to work until the donator.php i would post the error that comes up but there is a few
  2. #1064 - 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 6 i got that error when running that sql code in phpmyadmin
  3. thanks ^_^ you've helped alot
  4. where would i put the code if i wanted it displayed on the index page? im guessing the code would be $ir not $r? or am i wrong? heres my index .php page <?php $housequery=1; include "globals.php"; print "<h3>General Info:</h2>"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); print "<table><tr><td><b>Name:</b> {$ir['username']}</td><td><b>Crystals:</b> {$cm}</td></tr><tr> <td><b>Level:</b> {$ir['level']}</td> <td> <b>Rank:</b> $rank </tr><tr> <td><b>Exp:</b> {$exp}%</td> <td><b>Money:</b> $fm</td> </tr><tr> <td><b>HP:</b> {$ir['hp']}/{$ir['maxhp']} <td><b>Property:</b> {$ir['hNAME']}</tr></table>"; print "<hr><h3>Stats Info:</h3>"; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); print "<table><tr><td><b>Strength:</b> {$ir['strength']} [Ranked: {$ir['strank']}]</td><td><b>Agility:</b> {$ir['agility']} [Ranked: {$ir['agirank']}]</td></tr> <tr><td><b>Guard:</b> {$ir['guard']} [Ranked: {$ir['guarank']}]</td><td><b>Labour:</b> {$ir['labour']} [Ranked: {$ir['labrank']}]</td></tr> <tr><td><b>IQ: </b> {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td><td><b>Total stats:</b> {$ts} [Ranked: $tsrank]</td></tr></table>"; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr><b>Personal Notepad Updated!</b>"; } print "<hr>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea><br /> <input type='submit' value='Update Notes' /></form>"; $h->endpage(); ?>
  5. cant believe i didnt notice that xD thanks alot really helped
  6. didnt work for me tho not many codes seem to be working for me lately any1 know why this wont work?   if ($r['level'] < 10) {$rank="rank 1";} else if ($r['level'] < 25) {$rank="rank 2";} else if ($r['level'] < 50) {$rank="rank 3";} else if ($r['level'] < 100) {$rank="rank 4";} else if ($r['level'] < 250) {$rank="rank 5";} else if ($r['level'] < 1000) {$rank="rank 6";} else {$rank="rank 7";} im on v2 if u any1 gets this to work or knows whats wrong with it please tell me how to fix it thanks ps i got a feeling its just that ive placed the code in the wrong place within viewuser.php
×
×
  • Create New...