Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Twango

  1. @Birbal that doesn't help me at all. I know what I need to do, but don't know how to go about doing it.
  2. I also can't figure out how to change the source of HTML5 audio with JS. Help?
  3. @boen_robot, I know that, but I'm saying how do I get it so every listener's on the same track?
  4. Ok, so I REALLY want to make an internet radio thing. I want there to be like a MySQL table with the file names for each audio file, and PHP echos the SRC of an HTML5 Audio Tag to that file. I have NO idea how to do that.The only thing I could think, would be like a table like follows:id: SRC: length:1 audio.mp3 30 And then another table that has the current song, like follows: currentsong: SRC: timestart: length:1 audio.mp3 14:25:20 30 And then a Cron Job that runs a file like CheckUpdate.php, that basically checks to see if the time is equal to the length +
  5. I didn't write this code... so what do you mean by If you don't see anything then you might need to add error checking to your mysql object. ?
  6. Hey, I need this program in the Ubuntu terminal to connect to MySQL.When I use $this->writeOutput("Connecting too MySQL database...", "INFO"); $this->mysql->connect("-----", "-----", "----"); $this->writeOutput("PAUSE"); $this->writeOutput("PAUSE"); $this->writeOutput("PAUSE"); It doesn't work, it echos "Connecting too MySQL database..." and then nothing else, it just goes back to wanting me to enter a command.Any ideas?Using XAMPP (LAMPP)
  7. This keeps generating a 504 error. while ($row = mysql_fetch_array(mysql_query("SELECT * FROM classes WHERE toclassid = '$classid'"))){echo "Yes";}The table "classes" has 8 columns, toclassid postbyuser postdate numstars reviewstructure unid isan teacherid It always gives the error: Gateway Time-outThe gateway did not receive a timely response from the upstream server or application.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. With that code, but when I remove it, it works fine. I can't figure out for the life of me why this
  8. And the parent thing didn't work, when I'm using it asdocument.getElementById('parent.document.bindex').rows="*,%20";I tried changing it to CSS3... with 2 second transition on rows, still not working.It says that document.getElementById('parent.document.bindex') is null.
  9. So far I have the following, as well as a button.<script type="text/javascript" src="jquery.js"></script><script type="text/javascript">$(document).ready(function(){$(".flip").click(function(){ $("parent.document.body.rows").slideToggle("slow"); });});</script>Still not working...
  10. Gah, I hate typos... sorry to bother you.
  11. I have a page with a frameset, let's say its frameholder.php, It has a frameset with Row1 at %100 and Row2 at %0.I want the frame at Row1 to have a button on it, that when you click it, in the parent, it slides frame 2 up to %50.I can't get this to work for the life of me. Please help!
  12. I want to have 2 buttons (One would be better, truthfully)One that turns on song 1, the other song 2. The code I have now: <embed id="musics" src="music.swf?auid=2" width="0px" height="0px"/><script type="text/javascript">function chagemusic(){document.getElementById('musics').src="music.swf?auid=2";}function chagemusic2(){document.getElementById('musics').src="music.swf?auid=3";}</script> <input type="button" value="Song 1" onclick="changemusic()"/><input type="button" value="Song 2" onclick="changemusic2()"/> It's not the swf, that's working fine.
  13. Twango

    5 Tds Then Tr?

    I have absoloutely no Idea what you mean. can't get it to work. please help. :3
  14. I actually removed it, I think I added var scdn=Math.floor(Math.random()*1000);if (scdn == 250){var specleaf = new Image();specleafe.src="SpeacLeaf.gif";rndPic=specleaf;}
  15. Hi, I want to make a script that has raining "Leaves" (Or any image...), but randomly it's a Special leave.When you click on that leaf it takes you to a URL. I want it to be like 1 in 100 leaves or so.I can't figure this out;Here's the script I have; I want to modify it to work. <h1>How to play? Look for a special Green leave, then click on it!</h1><!--Copy and Paste into <BODY> Just above the </BODY> tag. --><script type="text/javascript" language="JavaScript1.2"> //Pre-loads your images below//Configure below - change URL path to your imagesgrphcs=new
  16. Twango

    5 Tds Then Tr?

    Hi, I want to have something that basically generates 5 items in a table, then closes the TR and re-opens.Here's what I have: $cxnms = 1;function addtd($inc){if ($cxnms == 1){echo "<tr>";$cxnms++;}if ($cxnms > 1 && $cxnms < 5){$cxnms++;}echo "<td><b class='lt'>" . $inc['name'] . "</b><br/><div class='bgi'><img src=" . $inc['tnloc'] . " width='90px' height='90px'/></div><br/><p><a href=game.php?gid=" . $inc['gid'] . ">" . $inc['sdesc'] . "</a></p></td>";if ($cxnms == 5){echo "</tr>";$cxnms =
  17. I want to be able to go in my browser, I test PHP files... I did this a while ago, before a fresh windows installation, forgot how.I installed XAMPP for Windows and PHP, doesn't work.Any help?
  18. Ok, I've been working on this for ever, I can't get it to work.I've successfully created an IPN, that once it gets the payment, it does a MySQL query. My problem is, I need to store the username.So the way I did this, is on the page button.html, I have a small Ajax script that submits to addSession.php,addSession.php's source: <?phpsession_start();$_SESSION['valus'] = $_REQUEST['uid'];echo "Username currently set to <b>" . $_SESSION['valus'] . "</b>.<br/><br/>";?> AJAX Code: <script type="text/javascript">function showHint(){var xmlhttp;var str = documen
  19. function hasP($idx, $u){$dhas = mysql_query("SELECT * FROM hpowerups WHERE id = '$idx'");$dhas = mysql_fetch_array($dhas);$dhas = $dhas['has'];if ($dhas == "yes"){return $dhas;}else{return "no";}} Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/appattac/public_html/aadimensions/homepage.php on line 21
  20. I want ANY kind of PHP Barcode decoder.QR would be the preferred option. But any would be appreciated. I've searched high and low...
  21. the code require("attacklib.php?uta=" . $uta . "&lvl=" . $myudat['level'] . "&hgl=" . $myudat['gold']);is returning Warning: require(attacklib.php?uta=King Shadower&lvl=100&hgl=250) [function.require]: failed to open stream: No such file or directory in /home/appattac/public_html/aadimensions/attackmenu.php on line 19Fatal error: require() [function.require]: Failed opening required 'attacklib.php?uta=King Shadower&lvl=100&hgl=250' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/appattac/public_html/aadimensions/attackmenu.php on line 19 help!
  22. Twango

    Query not working?

    Hi, the code$result = mysql_query("SELECT usr, xp, hp, level, faction FROM aad WHERE usr LIKE %$rcu%");$row = mysql_fetch_array($result);returnsWarning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/appattac/public_html/aadimensions/rsq.php on line 15Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/appattac/public_html/aadimensions/rsq.php on line 27Help!
  23. Twango

    MySQL LIKE failing?

    I want a Simple user search for my game.So far I have:$result = mysql_query("SELECT usr, hp, xp FROM aad WHERE usr LIKE '%$rcu%'");then I use W3school's echo to table.So I have two users, both starting with "King"but it only returns one.And when i search the full user, neither do.Help!
  24. Is there any way so only the server can view files.For example, a Library of functions only accessible if my server uses Require and loads it?Like if a user typed in http://www.whatever.com/lib.php it would deny access?
  • Create New...