If i have to define current time using now variable I could put
$now = "2014-03-22"
and then do the comparison , would this be correct ?
Search found 9 matches
- Sat Mar 22, 2014 8:52 am
- Forum: PHP - Code
- Topic: if compare statement
- Replies: 3
- Views: 629
- Fri Mar 21, 2014 2:50 pm
- Forum: PHP - Code
- Topic: if compare statement
- Replies: 3
- Views: 629
if compare statement
Please tell me if following answer is correct Question : User has filled a form where he had to put date of birth , need to code a couple of php statement which should do verification of date of birth , if the date of birth of birth is in future date from today then an error should come up . answer:...
- Thu Mar 20, 2014 2:19 am
- Forum: PHP - Code
- Topic: question - addslashes
- Replies: 2
- Views: 542
Re: question - addslashes
Thanks , can you type in code for the above question . Actually I have an exam a couple of days from now on and I am thinking if i can pass it .. I will look into PDO but it looks like this needs some time to understand .
- Wed Mar 19, 2014 10:09 am
- Forum: PHP - Code
- Topic: reg exp. question
- Replies: 4
- Views: 661
Re: reg exp. question
Thanks a lot
- Wed Mar 19, 2014 10:08 am
- Forum: PHP - Code
- Topic: question - addslashes
- Replies: 2
- Views: 542
question - addslashes
Question from paper :Write code to store the details submitted from the form into the database. My Query : In the solution they have requested a couple of names using GET function and then uses addshashes on a couple of them . I read on a website http://www.w3schools.com/Php/func_string_addslashes....
- Tue Mar 18, 2014 2:01 pm
- Forum: PHP - Code
- Topic: reg exp. question
- Replies: 4
- Views: 661
Re: reg exp. question
One can solve the answer using regular expression but the examiner report says that we can also use other methods to solve this and I wanted to know what can be other method to solve this question other than regular expression
- Tue Mar 18, 2014 12:00 pm
- Forum: PHP - Code
- Topic: reg exp. question
- Replies: 4
- Views: 661
reg exp. question
Hello, I have posted a question here which is from the diploma program I am doing . In the answer it says that you can use any other method rather than regular expression . can anyone tell me other way of solving this question which could be easy - as i couldnt get to understand regular expression a...
- Sun Mar 16, 2014 2:13 pm
- Forum: PHP - Code
- Topic: PHP Line Error
- Replies: 2
- Views: 683
Re: PHP Line Error
I really appriciate your help and support . I will go through this tomorrow as it takes some time to understand , actually this is for an exam so I want to keep it as simple as it can be , I dont think they require security and other real world stuff . Just basic HTML to PHP to MYSQL . I will update...
- Sun Mar 16, 2014 11:18 am
- Forum: PHP - Code
- Topic: PHP Line Error
- Replies: 2
- Views: 683
PHP Line Error
Hi All, This is my first post and I am new to PHP . I have created an html file along with PHP . When I am executing it with values put in there it is giving errors for 2 of my lines . Please help me understand why is it giving me error when my code looks ok . HTML <html> <body> <form method="G...