Jump to content

Philip

Staff Alumni
  • Posts

    4,665
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Philip

  1. Mysqli is an improved class of mysql. It is more OOP style, and provides a few extra features (such as multi query and prepared statements)
  2. I'd imagine this fits your needs: http://www.rwscripts.com/
  3. I really like those stars, but it also depends on what the style of his website looks like and if there is any kind of theme or look to it. 100% agree with that statement (both liking + style and placement) -- colorful/energetic - use more vibrant colors instead of pastel colors. Heck you don't even have to use stars! here are some examples (just a quick google): http://wordpress.org/extend/plugins/gd-star-rating/screenshot-6.png http://www.econsultant.com/images/wordpress-plugin-post-star-rating.jpg http://www.webresourcesdepot.com/wp-content/uploads/image/mootools-star-rating.gif
  4. That link won't allow me to see the content. I get this instead: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. You don't have permission to access the requested object. It is either read-protected or not readable by the server. I have found this link on warm vs cool colours. Granted, I'm no colour expert. just click your address bar and hit enter (not refresh) - it's a hotlinking protection (sees where you referring from) Honestly, I'd stick with gold stars. Its tried and true, but if you want color do something more exciting and vibrant
  5. Personally, I use mysqli object orientated style.... <?php session_start(); $postid = $_GET["id"]; if(!ctype_digit($postid)) { header("Location: http://www.mysite.com"); } include("caneck.inc"); $cxn = mysqli_connect($host,$user,$passwd,$dbname) or die ("Couldn't connect"); $quer = "SELECT * FROM test WHERE eventid = $postid LIMIT 1"; // Run query $rsult = $cxn->query($quer) or die ("Couldn't execute: ".$cxn->error); // cant recall if the following line is needed in this case. weird times that it is needed $rsult->store_result(); // check row count if($rsult->num_rows==0){header("Location: http://www.mysite.com");} // fetch the row $row = $rsult->fetch_assoc(); $rsult->free_result(); ?>
  6. number_format()
  7. echo '<input type="checkbox" name="featured['.$counter.']" checked="'.$value.'">'; edit: my bad
  8. http://www.chami.com/html-kit/ (HTML-Kit) http://www.chami.com/html-kit/plugins/ (Plugins for HTML-Kit -- very useful :D)
×
×
  • 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.