hassank1
Members-
Posts
239 -
Joined
-
Last visited
Everything posted by hassank1
-
I've used your code to implement these functions .. and everything worked just fine function isToday($date) //check if it's today { $date = date("l, F d",strtotime($date)); if($date == date("l, F d")) return true; else return false; } function isYesterday($date) //check if it's yesterday { $date = date("l, F d",strtotime($date)); if($date == date("l, F d")-1) return true; else return false; }
-
Thx , I'll check it .. btw this is an example of a $postdate output : 2008-04-18 04:38:08
-
I've a variable $PostDate .. which I get from a datetime mysql field I want to check if this date is today so I echo "today" or if it's yesterday I echo "yesterday"
-
problem solved .. the problem was that another attached style sheet override some rules .. (margin) .. so I fixed it ..
-
nop I am trying to word-wrap a text .. so if it's too long it will be splitted into 2 lines ex: loooooooooooooooooooong result : loooooooooo oooooooong
-
hmm .. ok I'll check the code again .. I think I've modified something .. about the size I am going to use pictures of the same width but with different heights.
-
I am having a problem in firefox .. check the picture below
-
I am using : word-wrap:break-word; it worked in IE , however it's not working on FireFox
-
check this out : http://www.html.it/articoli/niftycube/index.html
-
it worked !! however I want to ask is it necessary to user the wrapper div ? or can I omit it ?
-
thanks man ! I'll check it ..
-
Hey I am working on a social network website .. so one of the essential components in such a site . is to use a box that contains a header + title .. and content (mostly a thumnails but not in all cases) here's exactly what I am trying to do : however , I didn't succed to build it (am beginner , however I know the basics of css) so could someone helped me please.. thx
-
looooool ! yeah .. I use these keys 2 .. however I need a more advanced method !
-
is there a software or something to generate some php codes .. like connecting to a db .. validating input .. etc.. so instead of writing them each time .. I use it .. !! thx .
-
how to force user to insert the cd to run the application
hassank1 replied to hassank1's topic in Miscellaneous
yeah . I know what u mean however , I am doing that as a protection for my cd .. I am trying to keep some files on the cd and the user will be unable to copy them .. and must read them from cd.. I think u r right about the c# forum !! however , I really like phpfreaks site .. that's y I post .. btw thx for reminding me about the floppy games !! tc. -
I am working on a cd .. the cd contains a setup .. the user open it and install the application to his pc however, I want when user try to run the application .. to check whether the correct cd is inserted , and if no .. to show a msg box "please insert the application CD". I prefere a C# code .. however , if you think you can help in anything , no matter how small is it .. post a reply .. thx
-
I've checked some website that contain layouts !! however why they are kind of complicated ? (am beginner btw) for example for 3 column layout they use div inside a div inside a div ... check : http://matthewjamestaylor.com/blog/perfect-3-column.htm so why ? and can't I simply for 3 cols layout . use 3 divs ( left then center then right ) then float and center them instead of using many divs inside each other ?!
-
how to create stored procedure in mysql and how to call it on php?
hassank1 replied to naeembhatti's topic in MySQL Help
I didn't know there's SP in mysql till now , I've developed my whole web app. using direct sql statements .. so do you advice using SP in my future work ? .. and does someone had problems using them or they work just fine ? -
I am using shared hosting .. however how can I know the speed of my upload server .. and how many users can visit my site in the same time before getting slow .. is there any method ? one more thing .. what do u think abt hostgator.com ? thx
-
aha Okay .. now I've understood better .. well ! when I want to use .inc .. I used it as follow .. file.inc.php !! abt protecting dir .. u are talk about set permissions like rwxr--r-- for example !
-
I was wondering can ppl include a file from other domain ex: include(mydomain.com/connectdb.php) ; well if so then ppl can access my db ... and if it's possible .. what can I do abt it ?
-
Ok.. but I am not sure I've totally get your point ! what's the relation between include dir . and ppl know my passwords !! and which password(s) ??
-
what could be the disadvantages if you found the include dir !! and how to fix that ! ? thx