Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. DB::Query is essentially a static method call of the DB Class..
  2. my php skills brings all the boys to the yard.. and they're like.. wanna do a job? damn right! I'll do a job, I can do it.. But I'll have to charge!
  3. RussellReal

    PECL

    pecl install memcache
  4. RussellReal

    PECL

    pecl install extension run that notw if you're on windows pecl doesn't work for us
  5. ticketing system, create a unique id insert it into a database, when the unique id is used up, don't push the data for that unique id anymore. and without a unique id don't push data either
  6. use the correct table names in the query.
  7. sure why not? thats why you build object oriented, so you can have the exact same script, exact same variables, but running in its own entity.
  8. nope.. is your table names literally "Table1" and "Table2"?
  9. Hello there buddy firstly, you should think about what information you will have ALREADY before php does any work.. if you're going to set up a 'leave' for some user, you're going to NEED 3 values anyway, userId, leaveType, daysApply we also know leaveType will always be Annual or Medical, right? so we can simply use that data to proceed.. INSERT INTO apply (userId,leaveType,daysApply) VALUES ($userId,$leaveType,$daysApply); UPDATE balance SET $leaveType = $leaveType - $daysApply WHERE userId = $userId; voila!
  10. no no, you're supposed to execute it put the insert query into your loop thats the only thing I can see that could be mucking it up
  11. no that looks right.. try this.. SELECT * FROM Table1 JOIN Table2 ON (Table1.County = Table2.County) WHERE ETC ETC ETC
  12. lol... ok nvm..? create a ticketing system
  13. you CAN make multi dimensional arrays, however, you need to specify whether or not it will be an array.. 2 examples $array = array(); $array[0] = array(); $array[0][0] = "hi"; $array[0][1] = "howdy!"; $array[1] = array(); $array[1][0] = "hello"; $array[1][1] = "omgosh!"; example number two: $array = array(array("hi","howdy"),array("hello","omgosh!"));
  14. you'd want to apply it to $_FILES['bandpik']['tmp_name'] and.. if you mean STOP THE PHP FROM RUNNING IN GENERAL.. you can't, that would be javascript to actually check if the file input has any value.
  15. Lol, you're not showing any code >.>
  16. $query = "INSERT INTO $tablename (DepartmentCode, DepartmentName, BWCopy, BWPrint) VALUES ($data[1],[2],[3],[4])"; should probably be: $query = "INSERT INTO $tablename (DepartmentCode, DepartmentName, BWCopy, BWPrint) VALUES ($data[1],$data[2],$data[3],$data[4])";
  17. you don't have access to the client's machine you're locked into the user's browsers' sandbox.
  18. name="options[fries]" value="1.00" name="options[ketchup]" value="0.50" etc then.. foreach ($_POST['options'] as $key => $value) { echo "{$key} -> {$value}"; }
  19. first you need to get the values.. try $chkFries = $_REQUEST['chkFries']; and all the others for all the others.
  20. <?php if (mysql_num_rows($query)) { while ($row = mysql_fetch_assoc($query)) { // do whatever } } else { // no results found } ?>
  21. right: 0; bottom: 0; position: relative; or you might want to put position to fixed.
×
×
  • 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.