Jump to content

stuffradio

Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by stuffradio

  1. It involves storing the information in an mysql database. You would then just retrieve the info for that specific user.
  2. You could simply insert the value in to a table called view or something... the view table would contain the view_number. $number = $_GET['p']; if (!is_numeric($number)) { echo "Not a valid number!"; exit; } $check = mysql_query("SELECT view_number FROM `table` WHERE `view_number`='$number'"); $query = mysql_num_rows($check); if ($query > 0) { echo "This page has already been viewed!"; } ?>
  3. Well you could just use basic PHP if staments... $value1 = "one"; $value2 = "two"; if ($value1 !== $value2) { // Mysql Query here } You would also use the Where statement as posted above.
  4. Several ways... CSS, HTML, etc. #submit { text-align: center; } <input type='submit' name='blah' value='blah' id='submit' /> <center><input type='submit' name='blah' value='blah' /></center>
  5. Try $top_id = mysql_fetch_array(mysql_query("SELECT id FROM mail_table ORDER BY id DESC LIMIT 1")); echo "$top_id[id] is the last fetched id selected!";
  6. This is a dangerous thing to do. Just thought you should know. Try and make it so the script is very limited in who can use it, or stick to PHPmyAdmin
  7. Did you try something like: $sql = "select * from tblexdetails where intexID='$treid' ORDER BY `intexID` DESC"; ??
  8. Glad you got it! Mind hitting topic solved?
  9. I'm also puzzled how he did this, but I love the look of it!
  10. I think this is what you meant: $display = new Template(); $display->getTheme();
  11. Sorry I didn't post again, what do you mean by calling code?
  12. That's weird Thorpe... I tried exactly what you said but it outputs nothing. Oh well, I'll just use echo for now.
  13. So can you explain to me when I should use the ob functions?
  14. I have this code that I'm starting to work on. When I try and return it, it won't print anything. When I echo it, everything is echoed. <?php class Template { private $theme; private $themeContents; function getTheme() { if (!$_GET['theme'] || $_GET['theme'] == "default") { ob_start(); $theme = file_get_contents(STYLE_DIR . "default/index.tpl"); $themeContents = ob_get_contents(); ob_end_clean(); return $themeContents; } } } ?>
  15. third, although the flash looks nice
  16. In my Java class we're supposed to step through the code by hand and write the output of the text in order that it is executed. Got any tips for doing this quickly and efficiently?
  17. So you want the opacity number to be returned, or what is it you want exactly?
  18. Ok so just check for the browser type, if the browser is IE than change the browser to Windows Media Player. Google Windows Media Player embed
  19. I think this will work for you http://www.sitepoint.com/article/mash-up-music-zend-framework
  20. Would this work for you? http://www.cgi-interactive-uk.com/php_gd2_imagecopymerge.html
  21. Ok sure, in the page that gets opened up just use this code: <OBJECT id="VIDEO" width="320" height="240" style="position:absolute; left:0;top:0;" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <PARAM NAME="URL" VALUE="your file or url"> <PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> <PARAM NAME="AutoStart" VALUE="True"> <PARAM name="uiMode" value="none"> <PARAM name="PlayCount" value="9999"> </OBJECT> That embeds a video player in to the page. Just change the line <PARAM NAME="URL" VALUE="your file or url"> change the value to the url of the video you're playing.
×
×
  • 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.