aksd
Forum Replies Created
-
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadethanks, motin! 🙂
this is the code i put in games_score.php<? require('config.php'); $game = stripslashes($_POST['game']); $name = stripslashes($_POST['name']); $score = stripslashes($_POST['score']); $databaseLink = mysql_connect($databaseHost, $databaseUser, $databasePassword); mysql_select_db($databaseName, $databaseLink); $game = addslashes($game); $name = addslashes($name); $score = addslashes($score); $query = "INSERT INTO $databaseTableName (game, name, score, <code>date</code>) VALUES('$game', '$name', '$score', NOW())"; $result = mysql_query($query, $databaseLink); ?>success=truethis is the code i added in the last frame of the game, the one with the scores table :
getURL("/games/scores.php", "_blank"); gotoAndPlay(1);and this is the code from the scores.php :
<? //connect to mysql //change user and password to your mySQL name and password mysql_connect("mysql_host","db_user","db_pass"); //select which database you want to edit mysql_select_db("db_name"); //select the table $result = mysql_query("SELECT * FROM <code>highscores</code> WHERE game = 'snake3' && score !=0 order by score desc limit 0, 10"); echo "<table border='1'> <tr> <th>Name</th> <th>Score</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['name'] . "</td>"; echo "<td>" . $row['score'] . "</td>"; echo "</tr>"; } echo "</table>"; ?>Forum: Plugins
In reply to: Flash Games with high scores database like Arcadehttp://amsite.z1.ro/?page_id=45
this is the page with the gamesForum: Plugins
In reply to: Flash Games with high scores database like ArcadeTHANKS A LOT, Foreel! the world needs more people like you 🙂
i didn’t give up
i finally did it, the scores are stored in the database, and displayed in a phpForum: Plugins
In reply to: Flash Games with high scores database like Arcadei quit
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadeok, thanks
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadei hate doing this, but i guess i’ll have to give up.. 🙁 there’s no way i’ll find the original games_score.php
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadethat’s what i was afraid of..
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadei’m very inclined to learn!
yesterday i got a head ache from this
i found something…
the data that is sent to games_score.php from the swf:
game=snake3&url=http%3A%2F%2Fwww%2Eneave%2Ecom%2Fgames%2Fsnake%2Fsnake%2Eswf&name=asdddsadasdasda&score=64
on my site is similar, except the adress, of course (it should work, right?) but somehow the data is not written in games_score.php (the chmod is 777)
i’m getting closer :))Forum: Plugins
In reply to: Flash Games with high scores database like Arcadecan you? 😀
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadecan you help me, please, if you know flash
i found this script in the swf, and i know now that the scores are kept in games_score.php. i’ve replaced that adress with the adress of my site, and created a games_score.php, but it doesn’t work.. there’s something more, but i don’t know what, can you help me?
this is the adress of the game http://www.neave.com/games/snake/snake.swfand bellow is the code of the script
[moderated: too much code. Please use a pastebin service such as http://wordpress.pastebin.ca or a link to the code in a txt file instead]
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadewhat am i supposed to do? i don’t know any flash, php and other web related stuff 😀
i’m 18Forum: Plugins
In reply to: Flash Games with high scores database like Arcadei only want to be able to keep the highscores, i don’t need an interface.. i’ve searched in neave snake with a flash decompiler, but i didn’t find anything about database and highscores
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadethis is wack…
Forum: Plugins
In reply to: Flash Games with high scores database like Arcade🙁
Forum: Plugins
In reply to: Flash Games with high scores database like Arcadecom on, people.. there must be someone who knows.. 🙁