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. $subid = $membername;
  5. RussellReal

    PECL

    pecl install extension run that notw if you're on windows pecl doesn't work for us
  6. 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
  7. use the correct table names in the query.
  8. 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.
  9. nope.. is your table names literally "Table1" and "Table2"?
  10. 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!
  11. 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
  12. no that looks right.. try this.. SELECT * FROM Table1 JOIN Table2 ON (Table1.County = Table2.County) WHERE ETC ETC ETC
  13. lol... ok nvm..? create a ticketing system
  14. 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!"));
  15. you never execute the new query..
  16. 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.
  17. Lol, you're not showing any code >.>
  18. $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])";
  19. you don't have access to the client's machine you're locked into the user's browsers' sandbox.
  20. is_uploaded_file
  21. name="options[fries]" value="1.00" name="options[ketchup]" value="0.50" etc then.. foreach ($_POST['options'] as $key => $value) { echo "{$key} -> {$value}"; }
  22. first you need to get the values.. try $chkFries = $_REQUEST['chkFries']; and all the others for all the others.
  23. <?php if (mysql_num_rows($query)) { while ($row = mysql_fetch_assoc($query)) { // do whatever } } else { // no results found } ?>
  24. 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.