Jump to content

blankextacy

Members
  • Posts

    35
  • Joined

  • Last visited

    Never

Posts posted by blankextacy

  1. hey for some reason when some one logins they can edit their cookie and change thier username to nothing along with everything else giving them a mysql error and making it so they can screw with the game does any one know how i could fix this when i went to edit my cookies and looked up my site it said user/pass and let me edit.

  2. ya there it is im getting this error now

    /home/mitchell/public_html/cron_min/cron_minute.php: line 1: ?: No such file or directory
    /home/mitchell/public_html/cron_min/cron_minute.php: line 2: syntax error near unexpected token `"update turn set time_right=time_right-1"'
    /home/mitchell/public_html/cron_min/cron_minute.php: line 2: `mysql_query("update turn set time_right=time_right-1");'

    <? include "config.php";
    mysql_query("update turn set time_right=time_right-1");
    mysql_query("update turn set time_right=9 where time_right = -1");
    mysql_query("update turn set time_left=6 where time_right = 0 and time_left = 0");
    mysql_query("update turn set time_left=time_left-1 where time_right = 9");
    
    $spell1 = mysql_query("select * from spellc");
    while ($spell = mysql_fetch_array($spell1)) {
    mysql_query("update spellc set time=time-1 where id=$spell[id]");
    
    mysql_query("DELETE from spellc where id=$spell[id] and time<=1");
    
    }
    ?>

  3. ok im using cron tab 5 i guess well when ever i try to run a command it works fine but it doesnt run the file instead i get this error.

    /home/mitchell/public_html/cron_min/cron_minute.php: line 1: syntax error near unexpected token `('
    /home/mitchell/public_html/cron_min/cron_minute.php: line 1: `<? include("config.php");'

    and when i used to use free cronjob services it ran the files perfectly

     

  4. hey i got some one "GHOSTING" on my site or thats what theyre calling it and they keep adding stuff into the database some how is there away to prevent this its going on right now.
  5. ok say the list is
    1. 1000
    2. 500
    3. 300
    i want to add 1000 into another database as rank #1 and 500 in the same database as 1000 as a different row and then i want to add 300 in there as #3 just like i did with 1000 500.
  6. Ok, i figured out why it wasnt printing but it only prints one of the 2 ids i selected im trying to make it print all of the things ive checked. heres what ive got now.[code]print"<input type='checkbox' name='item[]' value='$item[id]'/>";
    if ($item[gem1] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn:

    $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP:

    $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem2] == 2 && $item[gem3] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img

    src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn:

    $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem3] == 2 && $item[gem4] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img

    src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn:

    $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img

    src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per

    Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";

    }
    if ($item[part] == Q) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>[QUEST ITEM]</center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    print"<br><br>";
    }
    print"</td>
    <td>";

    $item1 = mysql_query("select * from items WHERE owner=$stat[id] and status=0 and tb=0");
    while ($item = mysql_fetch_array($item1)) {


    print"<input type=checkbox name=item1[] value='$item[id]'/>";
    if ($item[gem1] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn:

    $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP:

    $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem2] == 2 && $item[gem3] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img

    src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn:

    $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem3] == 2 && $item[gem4] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img

    src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn:

    $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img

    src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per

    Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";

    }
    if ($item[part] == Q) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>[QUEST ITEM]</center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    print"<br><br>";
    }
    print"Offer <input type=text name=pts size=3> Points. ($stat[trans_points] available) </td>
    </tr>";
    print"<tr>
    <td colspan=2><center>
    <input type=submit value=\"SUBMIT TRADE\"></form></center></td></tr>";
    print"</table>";
    exit;
    }
    if ($action == offer) {
    $item = $_POST['item'];

    $items1 = mysql_query("select * from items WHERE id=$item");
    while ($items = mysql_fetch_array($items1)) {
    print"$items[name]";
    }
    }


    ?>[/code]
  7. Hi, im new to check boxes with php im trying to make it so players can trade items in my game but im not sure how they and check the boxes and make it insert the items checked into the database im trying to make it print all of the ids of the items.
    [code]if ($_GET['tbid']) {
    $user = mysql_fetch_array(mysql_query("select * from users where id='$tbid'"));
    print"<table border><tr><td width=350>
    <center>
    <font size=3>
    <b>$user[name]'s ITEMS</b>
    </font>
    </center>
    </td>
    <td width=350>
    <center>
    <font size=3>
    <b>YOUR ITEMS</b>
    </font>
    </center>
    </td>
    </tr>
    <tr>
    <td>
    <form method=post action=tradeblock1.php?action=offer>";
    $item1 = mysql_query("select * from items WHERE owner=$user[id] and tb=1 order by id");
    while ($item = mysql_fetch_array($item1)) {


    print"<input type=checkbox name=item value='$item[id]'/>";
    if ($item[gem1] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem2] == 2 && $item[gem3] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem3] == 2 && $item[gem4] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";

    }
    print"<br><br>";
    }
    print"</td>
    <td>";

    $item1 = mysql_query("select * from items WHERE owner=$stat[id] and status=0 and tb=0 order by id");
    while ($item = mysql_fetch_array($item1)) {


    print"<input type=checkbox name=item1 value='$item[id]'/>";
    if ($item[gem1] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem2] == 2 && $item[gem3] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem3] == 2 && $item[gem4] == 0) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";
    }
    if ($item[gem1] == 2 && $item[gem2] == 2 && $item[gem3] == 2 && $item[gem4] == 2) {
    print "<span onMouseover=\"ddrivetip('<center>$item[name]<br><img src=images/g1.png><img src=images/g2.png><img src=images/g3.png><img src=images/g4.png><br>Attack: $item[attack]<br>HP: $item[hp]<br>Exp Per Turn: $item[ept]<br>Rage Per Turn: $item[rpt]<br>Income: $item[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\">$item[name]</span>";

    }
    print"<br><br>";
    }
    print"Offer <input type=text name=pts size=3> Points. ($stat[trans_points] available) </td>
    </tr>";
    print"<tr>
    <td colspan=2><center>
    <input type=submit value=\"SUBMIT TRADE\"></form></center></td></tr>";
    print"</table>";
    exit;
    }
    if ($action == offer) {
    $it1 = mysql_query("select * from items WHERE id='$item'");
    while ($it = mysql_fetch_array($it1)) {
    print"$it[id]";
    }

    exit;
    }[/code]
  8. is it possible to make rows up and down like 5 rows to the left and then 5 rows down i know desc limit makes it # to the side. for querys like this
    [code]$CODE = mysql_query("select * from CODE WHERE CODE=$CODE order by CODE desc limit 5");
    while ($CODE = mysql_fetch_array($CODE)) {
    print"CODE";
    exit;
    }[/code]
  9. hey, i am working on a game and trying to make it so it shows the items you won from a attack in your crew vault but in if ($_GET['item']) { there is $user[FIELD] i cannot figure out how to carry that to if ($action == 'awarditem') { so the script can give the player the item.
    [code]
    <? $title = "Crew Vault"; include("header.php");
    print"<center>";
    print"<table width=100% class=stattabletitle>

    <tr width=100%>

    <td><b>Crew Vault</b></td>

    </tr>
    </table>

    <table width=100% cellpadding=0 cellspacing=0>

    ";


    $vault1 = mysql_query("select * from items WHERE crew=$stat[crewid] order by attack desc limit 50");
    while ($vault = mysql_fetch_array($vault1)) {
    print "<span onMouseover=\"ddrivetip('<center>$vault[name]<br>Attack: $vault[attack]<br>HP: $vault[hp]<br>Exp Per Turn:

    $vault[ept]<br>Rage Per Turn: $vault[rpt]<br>Income: $vault[mpt]<br></center>','#666666', 125)\";
    onMouseout=\"hideddrivetip()\"><a href=crewvault.php?item=$vault[id]><img src=$vault[img] width=50 height=50></a></span><br>
    ";


    }


    print"</table>";

    print"</center>";



    if ($_GET['item']) {

    print"<form method=post action=crewvault.php?action=awarditem&item=$item[id]";
    print"<select name=user>";
    $user = mysql_query("select * from users WHERE crewid=$stat[crewid]");
    while ($users = mysql_fetch_array($user)) {
    print"<option value=$users[id]>$users[name]</option>";

    }

    print"</select>";
    print"<input type=submit class=submit value=Award>";
    }
    if ($action == 'awarditem') {


    mysql_query("update `items` set `owner` = '$user[id]' and `crew` = '0' where `id` = '$item[id]'");
    echo mysql_error();
    print"<center>You have awarded $user[name] with $item[name].</center>";

    }
    ?>[/code]
  10. could some one tell me why this code isnt working the codes site is www.revo-online.net/gdmovies/submit.php

    [code]<?php include("config.php"); ?>

    Submit a video here


    <form method=post action=submit.php?action=submit>

    Video name:<input type=text name=name><br>
    Email:<input type=text name=email><br>
    Username:<input type=text name=user><br>
    Picture link:<input type=text name=pic>(Http://www.site.com/pic.jpg)<br>
    Video link:<input type=text name=link>(Http://www.site.com/link.vid)<br>
    Type:<input type=text name=type>(fight)<br>
    <input type=submit value=Submit><br>

    </form>

    <?php
    if ($action == submit) {
    if (!$name || !$email || !$user || !$pic || !$link ) {
    print "You must fill out all fields.";

    exit;
    }
    $dupe1 = mysql_num_rows(mysql_query("select * from videos where link='$link'"));
    if ($dupe1 > 0) {
    print "Someone is using that link!";

    exit;
    }
    $dupe2 = mysql_num_rows(mysql_query("select * from videos where name='$name'"));
    if ($dupe2 > 0) {
    print "That name is being used!";

    exit;

    }
    mysql_query("insert into players (name, email, user, pic, link, type, submitted)

    values('$name','$email','$user','$pic','$link','$type','date('m/d/Y') ')") or die("Could not Submit.");
    print "You're video has been submitted.";
    }
    ?>

    [/code]
×
×
  • 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.