Jump to content

MasterACE14

Members
  • Posts

    2,687
  • Joined

  • Last visited

About MasterACE14

  • Birthday 07/21/1992

Profile Information

  • Gender
    Male
  • Location
    Sydney, Australia

MasterACE14's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Good Day Everyone, I recently was looking for a decent framework to build a new website on and at a glance Yii Framework (http://www.yiiframework.com/) seemed to suit my needs. But after starting to work with I noticed it is perhaps a little too user friendly. I am now tossing up between CodeIgniter (http://ellislab.com/codeigniter) and PHPDevShell (http://www.phpdevshell.org/). If anyone has any prior experience with either frameworks I would love to hear your thoughts. While Yii generates a lot of code for you, providing a base to work off. I have always preferred building functionality myself in conjunction with a framework that doesn't provide a base for you. Any thoughts, ideas are welcome. Kind Regards, Ace
  2. I'm trying to validate a string so it can only be alphanumeric characters 0-9, a-z, A-Z and the following characters " ", "-", "!", "(", ")", "/", ".", "," Looking at the php manual and a few different tutorial sites I'm not having much luck, I can get the alphanumeric part, but not those other characters. I currently have... $string = "FN#*F#)@)"; // should be invalid if(!preg_match('/^[a-zA-Z0-9]+$/i', $string)) echo "Invalid Input"; Not sure where to go from here. Any help is very much appreciated. Kind Regards, Ace
  3. If you need to wear glasses at the SAME time as you have contact lenses in, then you don't have the right contact lense strength.
  4. There is of course, plenty of free material online. Like the one on this very site... http://www.phpfreaks.com/tutorial/oo-php-part-1-oop-in-full-effect That way you save some coin.
  5. you could of course, make sure you have everything nice and secure so it is unlikely(but not impossible) that you will be hacked in the first place. As for DB admins viewing stuff they shouldn't... if they can't be trusted, why would they be a DB admin in the first place? My two cents. -Ace
  6. should add some error checking, rather than assuming that the query will ALWAYS return one or more results. if(mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { echo '<option value="'.$row["username"].'">'.$row["username"].'</option>'; } } else { echo '<option>No Usernames</option>'; } EDIT: It's probably not displaying any usernames because either the query isn't working as expected, or you have no records in that table.
  7. wouldn't really say there's a 'proper' way. More a matter of preference. What you have there is fine.
  8. this would be a good place to start: http://au2.php.net/manual/en/function.imagecreate.php
  9. quick question, how do you block w3schools from coming up in search results? browser extension? Google search settings?
×
×
  • 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.