Re: Shops Item Quantity?
Oh ok. Nice idea. ? steps to do it;
1. Add 2 fields to the shop items table, defaultQTY and also add QTY.
2. Edit the shops to work arrround this; buying would need to take the buy qty from the shop item.
3. add a cron to reset the QTY to default QTY.
Re: [mccode] Small mod (getting back into coding)
if you look at the statement though...
$error = (blah...
that is declaring and assigning a value to the error variable so a few lines down when it says isset it will have all ready been set.
Re: How to use sprintf?
why does everyone do crazy spacing on something as simple as formatting a string. Wont it will take longer to process? why not just on 1 line?
$db->query(sprintf("SELECT userid FROM users WHERE (userid = '%u')",abs(@intval($id))):
Also, at karlos' insert string example you are entering a value into an auto incremental field, it should be left out.
Re: [mccode v2] Annoucements Upgrade!
$Order = sprintf(
"SELECT * FROM " .
"`mod_announcements` " .
"ORDER BY `annouce_ID` DESC"
);
why is that in a sprintf?
Re: Include or Require?
Include and require are the same but the difference is the way they handle errors. They will both give a warning/error but require will return a fatal error.
Why use DIRNAME(__FILE__)? globals.php will most probably be in the same directory..
Re: [REVIEW] Crime-Network.com - Please review!
dreamweaver and php, what a strange comparison...
dreamweaver = Web page editing software.
PHP = server side programming language.
it is obvious it is GRPG, bad choice...