stuffradio
Members-
Posts
253 -
Joined
-
Last visited
Everything posted by stuffradio
-
It involves storing the information in an mysql database. You would then just retrieve the info for that specific user.
-
Please check for vulnerabilities/mistakes!
stuffradio replied to imperialized's topic in Beta Test Your Stuff!
Username/pass is not working -
checking values of database if its already viewed
stuffradio replied to dvayne's topic in PHP Coding Help
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!"; } ?> -
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.
-
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>
-
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!";
-
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
-
[SOLVED] displaying the last updated entry
stuffradio replied to shadiadiph's topic in PHP Coding Help
Did you try something like: $sql = "select * from tblexdetails where intexID='$treid' ORDER BY `intexID` DESC"; ?? -
Glad you got it! Mind hitting topic solved?
-
I'm also puzzled how he did this, but I love the look of it!
-
Awesome stuff man, you da man
-
I can't even access it right now.
-
I think this is what you meant: $display = new Template(); $display->getTheme();
-
Sorry I didn't post again, what do you mean by calling code?
-
That's weird Thorpe... I tried exactly what you said but it outputs nothing. Oh well, I'll just use echo for now.
-
So can you explain to me when I should use the ob functions?
-
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; } } } ?>
-
third, although the flash looks nice
-
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?
-
How can I get the alpha value of a pixel?
stuffradio replied to tibberous's topic in PHP Coding Help
So you want the opacity number to be returned, or what is it you want exactly? -
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
-
I think this will work for you http://www.sitepoint.com/article/mash-up-music-zend-framework
-
How can I get the alpha value of a pixel?
stuffradio replied to tibberous's topic in PHP Coding Help
Would this work for you? http://www.cgi-interactive-uk.com/php_gd2_imagecopymerge.html -
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.