|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
else statement
hi ,
how are u all. I need some help in a very basic stuff. hope u will help me in that. Actually on selecting a date in three dropdown menus, each one for year and date and month respectively, and when concantenating them i am able to retrieve that respective date's (birthdate) name from the database. My problem is, if the selected date doesnt have any name in the database, then how to specify the else-statement, to show an error that "there is no name for this birthdate mentioned. It will be great, if smbody would help me to slove this simple , basic doubt. Thanking you, ri |
|
#2
|
||||
|
||||
|
ok, say your three date fields are labelled day, month and year, I'd use something like the following, assuming your DB is MySQL:
PHP Code:
Hope this helps |
|
#3
|
|||
|
|||
|
Thank you soooooooooooooooooooooo muchhhhhhhhhhhhhhhh
It worked bye ri |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > else statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|