Jump to content

spiderwell

Members
  • Posts

    1,008
  • Joined

  • Last visited

Everything posted by spiderwell

  1. yes, css allows you to style the elements or add a class td { color:#c0c0c0; font-style:italic; }
  2. your loops should be nested, not one after another, so you are currently looping through ALL the db1 records, leaving only the last record to populate $person, so the second loop will only output 1 record
  3. of course it can be done, but perhaps with this new snippet i gave you, you could attempt something yourself first and come back when you get stuck. you would need to make a different comparison, my initial thoughts are a switch statement for the different scenarios rather than a very long if/elseif statement
  4. the errors seem to be occuring AFTER your print_r() and you havent shown us that part of the code, please post that and it will help us help you
  5. essentially use substr to shorten the NIC to the first 2 digits, and again use it to get the last 2 digits of birthday, notice the differnce of the start point, 0 starts at the beginning for NIC and -2 starts 2 from the end of birthday $NIC = '85589458904'; $birthday='05-08-1985'; echo substr($NIC, 0,2); echo substr($birthday, -2,2); if(substr($NIC, 0,2) != substr($birthday, -2,2)) echo "no match"; this is a server side colution, but apply the same principles into javascript for a client side solution
  6. i think preg_split() is the alternative to use now
  7. would it maybe be the character set declaration is incorrect? can you show exmaples of what is being shown incorrectly
  8. i guess it depends on the image whether it is sensitive or not. the ones on my phone are
  9. i am assuming that the teachers details are stored in a database and all pulled through the same template page, like teacherprofile.php?id=12345. Simply add to table in the database a column called views, and have it add 1 to the views column when you pull out the data to show. This is certainly one method that would work for you
  10. I only started using Codeigniter this year, and it seems to do everything I need, i also found it easy to pick up and definately well documented. Should i just move on from it? I am keen to keep upto date, and as far as I knew Codeigniter is still 'active' and due a 3.0 release at somepoint in the future, surely this means it is not obsolete?
  11. as long as the part you want to lose or drop is always the same it wont matter
  12. for me its always been files in a folder, then filename and path in the database (as seperate columns).
  13. if its going to be just for this, a simple string replace should do the trick $url = str_replace("rezervacija/", "", "www.dozzastudio.com/hr/rezervacija/smjestaj-apartmani-rogic");
  14. what have you got code wise for this so far?
  15. sounds similar to The Sandbox which is an app for ipad
  16. the variable variables way is just as good, if not better than my method, but like many things in programming there is often more than 1 solution
  17. you can use Eval() $namesArray = array("bob", "jim", "alan", "mark"); $agesArray = array("44", "33", "42", "40"); foreach ($namesArray as $key=>$value) { eval('$' . $value . ' = ' . $agesArray[$key] . ';'); }
  18. it looks like it should work! how about echonig out the count before you increment it and also echoing out the sql statement to help debug that way?
  19. http://php.net/manual/en/function.mysql-num-rows.php
  20. you should try the codeigniter forums for this , they are pretty good and you will find more users who know this framework.
  21. yo will never achieve this with this lay out of Divs, unless you css differently, why not get a button that just increases the height of the div?
×
×
  • 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.