-
Posts
1,008 -
Joined
-
Last visited
Everything posted by spiderwell
-
yes, css allows you to style the elements or add a class td { color:#c0c0c0; font-style:italic; }
-
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
-
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
-
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
-
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
-
i think preg_split() is the alternative to use now
-
would it maybe be the character set declaration is incorrect? can you show exmaples of what is being shown incorrectly
-
i guess it depends on the image whether it is sensitive or not. the ones on my phone are
-
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
-
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?
-
as long as the part you want to lose or drop is always the same it wont matter
-
for me its always been files in a folder, then filename and path in the database (as seperate columns).
-
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");
-
content is float left
-
Make a web page like used for job web sites
spiderwell replied to deanwarren's topic in Other Libraries
any of them -
what have you got code wise for this so far?
-
sounds similar to The Sandbox which is an app for ipad
-
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
-
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] . ';'); }
-
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?
-
how are you converting to int?
-
http://php.net/manual/en/function.mysql-num-rows.php
-
you should try the codeigniter forums for this , they are pretty good and you will find more users who know this framework.
-
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?