Jump to content

Xyphon

Members
  • Posts

    368
  • Joined

  • Last visited

Everything posted by Xyphon

  1. I stopped posting a long time ago. Anyway that's not really the focus of the issue.
  2. Well I don't use this account at all. Wouldn't mind getting it deleted even if these issues are fixed, I wanted a fresh account for freelancing. If that's not permitted that's fine but these issues are still present.
  3. I absolutely cannot login with facebook. Won't work. I have an account I use for freelancing and I can't use it. I tried signing up another account, verification won't work. It tells me I succeeded in putting the pieces together with a big green check mark, and then afterwards it tells me there was an error and I didn't enter in the code properly. No idea what to do. Been like this for a few days. What's going on?
  4. Hey, Xyphon here. I have known PHP now for over 5 years and I have been freelancing on and off for about 3. I've created many websites and am capable of doing nearly anything that PHP can do. I am experienced with MySQL and databases as well. I'm not much of a "designer" but I can design your website if you'd like as well. I also have some basic knowledge in JavaScript and jquery. I work for fairly cheap comparatively speaking and am pretty flexible as well. If you need to contact me either shoot me a pm or email me at dbgt525@gmail.com Thanks.
  5. if(statement) { result } else { result }
  6. Search up how to send variables from Flash to PHP. I've done it before, but I don't have the code on hand. You can use that, and AJAX, to update your page as soon as the video is finished. (correct me if I'm wrong, please, I am not very knowledgeable with AJAX, but I think it can work like that..)
  7. I'm pretty sure it's the as2 now, because I changed the as2 so that it would check if it successfully sent the vars. The first time we tried it, it successfully sent it, and then after that it never worked again. I guess this is an as2 question now, so it really doesn't belong in this forum, unless it really is the PHPs fault, which I doubt.
  8. The PHP is most definitely working, I've tried just running the script without the variables and it works, so if the variables were null it should still create an empty table. It seems to not be loading in the "sendandLoad", although I'm not positive that this is the problem. It has worked twice before, we have made minor changes since but nothing that should disable it from working properly.
  9. Sorry if this isn't the right forum, I wasn't sure where to post this. Alright, so I have a high score submit script, and it goes as follows... This is the actionscript: on (release) { var uscore:LoadVars = new LoadVars(); uscore.name = _root.suname; uscore.score = _root.suscore.stime; uscore.game = "alien"; uscore.mode = "survival"; uscore.sendAndLoad("linkhere", uscore, "POST"); play(); } Note: We have also tried: on (release) { var uscore:LoadVars = new LoadVars(); uscore.name = _root.suname; uscore.score = _root.suscore.stime; uscore.game = "alien"; uscore.mode = "survival"; var uscoresubmit:LoadVars = new LoadVars(); uscore.sendAndLoad("linkhere", uscoresubmit, "POST"); play(); } The PHP is: <?PHP include('Connect.php'); $name=$_POST['name']; $name=mysql_real_escape_string($name); $score=$_POST['score']; $score=mysql_real_escape_string($score); $game=$_POST['game']; $game=mysql_real_escape_string($game); $mode=$_POST['mode']; $mode=mysql_real_escape_string($mode); if(!empty($game)) { mysql_query("INSERT INTO scores(game, name, score, mode) VALUES ('$game', '$name', '$score', '$mode')"); } ?> I have also tried running a number of things on the "else" of that if(!empty($game)) and nothing has pulled through, so I'm under the notion that it isn't loading the page in sendAndLoad()? It was working before, but it appears to have just stopped, we're not sure what we changed. Any help would be greatly appreciated! Thanks, Xyphon
  10. I am getting this error: Warning: Cannot modify header information - headers already sent by on my pvp.php script, this is it: <?PHP include('top.php'); if(!isset($_SESSION['UsersID'])) { echo "You need to be logged into view this page."; include('bottom.php'); exit; } if(isset($_POST['battleplayer'])) { $battleplayer=$_POST['battleplayer']; if($_POST['battlepick']=="username") { $Battling_Result=mysql_query("SELECT * FROM users WHERE Username='$battleplayer'"); $Battling_Rows=mysql_fetch_array($Battling_Result); $battleplayer=$Battling_Rows['ID']; } elseif($_POST['battlepick']=="id") { $Battling_Result=mysql_query("SELECT * FROM users WHERE ID='$battleplayer'"); $Battling_Rows=mysql_fetch_array($Battling_Result); } if(!empty($Battling_Rows)) { $Enemy_ID=$Battling_Rows['ID']; $Enemy_Name=$Battling_Rows['Username']; $Enemy_Level=$Battling_Rows['Level']; $Enemy_HP=$Battling_Rows['HP']; $Enemy_MHP=$Battling_Rows['Max_HP']; $Enemy_Energy=$Battling_Rows['Energy']; $Enemy_MEnergy=$Battling_Rows['Max_Energy']; $Battling_Result2=mysql_query("SELECT * FROM items WHERE Owner='$battleplayer' AND Slot='1'"); $Battling_Rows2=mysql_fetch_array($Battling_Result2); $Battling_Result3=mysql_query("SELECT * FROM items WHERE Owner='$battleplayer' AND Slot='2'"); $Battling_Rows3=mysql_fetch_array($Battling_Result3); $Battling_Result4=mysql_query("SELECT * FROM items WHERE Owner='$battleplayer' AND Slot='3'"); $Battling_Rows4=mysql_fetch_array($Battling_Result4); $Battling_Result5=mysql_query("SELECT * FROM items WHERE Owner='$battleplayer' AND Slot='4'"); $Battling_Rows5=mysql_fetch_array($Battling_Result5); $Battling_Result6=mysql_query("SELECT * FROM items WHERE Owner='$battleplayer' AND Slot='5'"); $Battling_Rows6=mysql_fetch_array($Battling_Result6); $Enemy_Attack1=$Battling_Rows2['Name']; $Enemy_Attack2=$Battling_Rows3['Name']; $Enemy_Attack3=$Battling_Rows4['Name']; $Enemy_Attack4=$Battling_Rows5['Name']; $Enemy_Attack5=$Battling_Rows6['Name']; $Enemy_Power=$Battling_Rows['Power']; $Enemy_Defense=$Battling_Rows['Defense']; $Enemy_Magic=$Battling_Rows['Magic']; $Enemy_Race=$Battling_Rows['Race']; $Enemy_Class=$Battling_Rows['Class']; $Battle_Start="No"; $User_ID=$_SESSION['UsersID']; mysql_query("DELETE from battle_info WHERE User_ID='$User_ID'"); mysql_query("INSERT into battle_info(Enemy_ID, Enemy_Name, Enemy_Level, Enemy_HP, Enemy_MHP, Enemy_Energy, Enemy_MEnergy, Enemy_Attack1, Enemy_Attack2, Enemy_Attack3, Enemy_Attack4, Enemy_Attack5, Enemy_Power, Enemy_Defense, Enemy_Magic, Enemy_Race, Enemy_Class, Battle_Start, User_ID) VALUES('$Enemy_ID', '$Enemy_Name', '$Enemy_Level', '$Enemy_HP', '$Enemy_MHP', '$Enemy_Energy', '$Enemy_MEnergy', '$Enemy_Attack1', '$Enemy_Attack2', '$Enemy_Attack3', '$Enemy_Attack4', '$Enemy_Attack5', '$Enemy_Power', '$Enemy_Defense', '$Enemy_Magic', '$Enemy_Race', '$Enemy_Class', '$Battle_Start', '$User_ID')") or die(mysql_error()); header('Location: battle.php'); } else { echo "This user does not exist.<br />"; echo "Enter the Username/ID of the person you want to battle below:"; echo "<br /><form method='POST'><input type='text' name='battleplayer'><select name='battlepick'><option value='username'>Username</option><option value='id'>ID</option></select>"; echo "<br /><input type='submit' name='Submit' id='Submit' value='Submit' onclick='this.disabled=true; this.form.submit;'>"; echo "</form>"; } } else { echo "Enter the Username/ID of the person you want to battle below:"; echo "<br /><form method='POST'><input type='text' name='battleplayer'><select name='battlepick'><option value='username'>Username</option><option value='id'>ID</option></select>"; echo "<br /><input type='submit' name='Submit' id='Submit' value='Submit' onclick='this.disabled=true; this.form.submit;'>"; echo "</form>"; } include('bottom.php'); ?> and this is my top.php script: <?PHP include('connect.php'); $ID = $_SESSION['UsersID']; $ID = mysql_real_escape_string($ID); if (!isset($_SESSION['UsersID'])) { echo " <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <font face='verdana'> <head> <link rel='stylesheet' type='text/css' href='style.css'> </style> </head> <title>Shadow of the Eternal - Text Based RPG</title> <body> <div id='banner'><a href='index.php'><img src='banner.png'></a></div> <div id='quicklinks'>Test</div> <div id='leftmenu'> <ul> <li>Main <ul> <li><a href='index.php'>Home</a></li> <li><a href='login.php'>Login</a></li> <li><a href='signup.php'>Sign Up</a></li> </ul> </li> </ul></div> <div id='content'> </font>"; } else { echo " <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <font face='verdana'> <head> <link rel='stylesheet' type='text/css' href='style.css'> </style> </head> <title>Shadow of the Eternal - Text Based RPG</title> <body> <div id='banner'><a href='index.php'><img src='banner.png'></a></div> <div id='quicklinks'>Test</div> <div id='leftmenu'> <ul> <li>CryptoWare <ul> <li><a href='http://furiousflash.com'>Furious Flash</a></li> <li><a href='http://crypto-ware.com'>CryptoWare</a></li> </ul> </li> <li>Main <ul> <li><a href='index.php'>Home</a></li> <li><a href='viewcomments.php'>News Comments</a></li> <li><a href='logout.php'>Logout</a></li> <li><a href='http://furiousflash.com/forum'>Forums</a></li> </ul> </li> </ul></div> <div id='content'> </font>"; } ?> And just in case this is my connect.php script: <?PHP mysql_connect('localhost','*****','*****'); mysql_select_db('*****'); session_start(); ?> Any idea why?
  11. Here is my website link: http://furiousflash.com/shadowofeternal/ Now, if you see it in firefox, and see it in ie.. You'll notice the left menu is on the right side in IE.. I'll show you my CSS: a:link { color:#990000; text-decoration:none; font-weight:bold; } img { border:none; } a:visited { color:#990000; text-decoration:none; font-weight:bold; } .center { text-align: center; } .table_border1 { border: 1px solid black; } .table_border2 { border: 1px solid black; background-color: gray; } .quote { border: 1px solid black; background-color: #FFFFCC; margin:5px; } .table_replace { border: 1px solid black; } .hp_bar { border: 1px solid black; padding: 0px; width:100px; height:10px; } .mp_bar { width:100px; border: 1px solid black; float:right; } .table_replaceb { border: 0px solid black; word-wrap: break-word; background-color: #CCCCCC; padding-bottom: 1px; } .table_replace2 { border: 1px solid black; background-color: #CCCCCC; word-wrap: break-word; } .table_replacenc2 { border: 1px solid black; background-color: #777777; word-wrap: break-word; padding-bottom: 1px; } .table_replacenc3 { border: 1px solid black; background-color: #777777; word-wrap: break-word; padding-bottom: 1px; border-bottom:1px; } .table_replacenc4 { border: 1px solid black; background-color: #777777; word-wrap: break-word; padding-bottom: 1px; border-top:1px; } .table_replacenc { border: 0px solid black; word-wrap: break-word; overflow:auto; padding-bottom: 1px; } .table_replace3 { border: 1px solid black; float: left; word-wrap: break-word; background-color: #CCCCCC; padding-bottom: 1px; } .table_replaceb2 { border: 1px solid black; float:left; width:138px; height:60px; word-wrap: break-word; background-color: #777777; padding-bottom: 1px; } .table_replace4 { border: 1px solid black; float: left; word-wrap: break-word; background-color: #CCCCCC; padding-bottom: 1px; } .table_replaceml { border: 1px solid black; background-color: #CCCCCC; text-align:left; word-wrap: break-word; padding-bottom: 1px; } .table_replaceml2 { border: 1px solid black; float: left; background-color: #777777; text-align:left; word-wrap: break-word; padding-bottom: 1px; } .table_replace5 { border: 1px solid black; float: left; width: 50%; background-color: #CCCCCC; word-wrap: break-word; padding-bottom: 1px; } .table_replace6 { border: 1px solid black; background-color: #CCCCCC; width: 50%; word-wrap: break-word; padding-bottom: 1px; } a:hover { text-decoration: underline; } body { width:1024px; margin:0px auto; background:#000000; text-align:center; } #banner { border:1px solid #000000; width:1022px; height:148px; float:left; background:#222222; } #quicklinks { border:1px solid; border-top:0px; float:left; width:1012px; padding:0px 5px 0px 5px; background:#222222; } #leftmenu { float:left; width:219px; border:1px solid #000000; border-top:0px; font-family:verdana; } #leftmenu ul { margin:0; padding:0; list-style-type:none; font-family:verdana; } #leftmenu li { font-weight:bold; font-variant:small-caps; font-size:large; letter-spacing:1px; font-family:verdana; background-color: #CCCCCC; border-top:1px solid black; } #leftmenu li ul li { border:0px font-weight:normal; background:transparent; padding:0px 8px; font-size:small; font-variant:normal; letter-spacing:0px; font-family:verdana; background-color: #777777; padding-bottom: 1px; border-top:1px solid black; } #content { float:left; width:559px; border:1px solid #000000; margin:5px; padding:5px; background:#222222; padding-bottom: 1px; color:#CC0000; } #content2 { float:left; width:560px; border:1px solid #000000; margin:5px; padding:5px; background:#222222; padding-bottom: 1px; } #rightmenu { float:left; width:219px; border:1px solid #000000; border-top:0px; font-family:verdana; } #rightmenu ul { margin:0; padding:0; list-style-type:none; font-family:verdana; } #rightmenu li { font-weight:bold; font-variant:small-caps; font-size:large; letter-spacing:1px; font-family:verdana; background-color: #CCCCCC; border-top:1px solid black; } #rightmenu li ul li { border:0px font-weight:normal; background:transparent; padding:0px 8px; font-size:small; font-variant:normal; letter-spacing:0px; font-family:verdana; background-color: #777777; padding-bottom: 1px; border-top:1px solid black; } textarea { background:#FFFFFF; width:100%; height:200px; text-align:center; } #footer { width:386px; border:1px solid #000000; margin-left:145px; float:left; padding:5px; background:#5C5C5C; } .Container { float:center; width:440px; margin: 0 auto; } .ContainerL { text-align:right; float:left; width:200px; height:30px; font-variant:small-caps; font-size:22px; } .ContainerR { text-align:left; } #submit { border:1px solid black; } If you want to see the html, look at the source. Thanks for any help..
  12. I messed around with yours a bit and it seems to work. Thanks!
  13. I never once said Topicname, in fact every single time I said topicid(please reread my post...) See, never said Topicname. I have an array, for example if the user viewed topics 3, 4, and 103, it'd be 3-4-103 in the database. What I want to know is how would I go about making it so when a new post is made, it draws everyone who has the ID in their database(I've gotten that far), then REMOVE that ID from their array and update it again, so to turn 3-4-103 into 3-4 when someone makes a new post in topic 103.
  14. Err.. Make a separate table altogether called "Usernames", and store the originally typed in username there, along with the UserID, as long as no fields connect to this table, it should be fine.. And if you want to stop injects, use mysql_real_escape_string.. You don't need to go through encrypting to stop injects, encrypting is to protect passwords if someone manages to get database information. :\
  15. So, I am making a system that shows if there are new posts or not. How I have it done is a singular array called "Read" will have all of the IDs of the read posts. It is entered in the database like so: $ID2= $_SESSION['UserID']; $ID2 = mysql_real_escape_string($ID2); $Readornot=mysql_query("SELECT * FROM forum_read WHERE Reader_ID='$ID2'"); $Readornot2=mysql_fetch_array($Readornot); if($ID2==0) { } else { if(empty($Readornot2)) { $Read1= array("Read" => $Get_TopicID); $Read2 = implode('-',$Read1); mysql_query("INSERT INTO forum_read (Reader_ID,`Read`) values ('$ID2','$Read2')") or die(mysql_error()); } else { $cr_topicid=$Readornot2['Read']; if(strpos($cr_topicid,'-')) { $cr_topicid=explode('-',$cr_topicid); if(!in_array($Get_TopicID,$cr_topicid,true)) { $Read0=implode('-',$cr_topicid); $Read1= array("Read" => $Read0, $Get_TopicID); $Read2= implode('-',$Read1); mysql_query("UPDATE forum_read SET`Read`='$Read2' WHERE Reader_ID='$ID2'") or die(mysql_error()); } } else { if($cr_topicid==$Get_TopicID) { } else { $Read1= array("Read" => $cr_topicid, $Get_TopicID); $Read2= implode('-',$Read1); mysql_query("UPDATE forum_read SET`Read`='$Read2' WHERE Reader_ID='$ID2'") or die(mysql_error()); } } } } It all works fine and dandy to the point where if it's in the database an icon will be black and white, and if its not it wont, signifying read or unread. What I need to do, however, is make it so when there is a new post, it takes all of the entries in the database with the topic ID out of the database, and strips the one part. What I thought of at first was to use str_replace to replace "-" . $TopicID . "-" with "-" But of course, that won't work, because the very first entry could be the topic ID, so it would just be $TopicID- and not -$TopicID- in the database. So, how would I go about doing this?
  16. Never mind, I figured it out, sorry for wasting your time.
  17. In IE its fine but in firefox the two menus are pushed to the left and right edges, when normally they are spaced out a bit(Like the banner is, and no, no margins) EDIT: NvM, works now.
  18. I have two menus, right and left, that are 200px each. I want to have a content div in the middle that is 100% of the page - 400px so that it takes up the rest of the page. How do I do this?
  19. Yeah, in my date column its set up as Y-m-d, but how do I order them by it? That's the confusing part.
  20. I'm making forums, how do I make it so when someone replies to a topic, it goes to the top of the page? I know it's a simple question, I want a simple answer.
×
×
  • 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.