PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WEBDEV 2024
→
Time fields in mysql
Time fields in mysql
Started by Mike Stewart, Aug., 12 2018 3:51 PM - No answer
Connect yourself…
Mike Stewart
#1
Posted on August, 12 2018 - 3:51 PM
We have an application using MySQL and there is some sort of problem using time values
The records are being created but the time values are NULL.
We have tried various formats
We have used INSERT queries
or hAdd
When the system is in PHP Test mode the records can be created and the times are put in. However, in normal PHP the site crashes with no errors.
tSt
is
Time
=
StringToTime
(
arr1
[
n
EDTperiod
,
2
]
,
"HHMMSS"
)
tEn
is
Time
=
StringToTime
(
arr1
[
n
EDTperiod
,
3
]
,
"HHMMSS"
)
s
St
is
string
=
TimeToString
(
tSt
,
"HHMMSS"
)
s
En
is
string
=
TimeToString
(
tEn
,
"HHMMSS"
)
//
sSQL is string = [
//
INSERT INTO `sys`.`day_timings` (`day`, `start`, `finish`, `appliesToGroup`, `periodName`)
//
VALUES ('11', [%arr1[nEDTperiod,2]%], [%arr1[nEDTperiod,3]%], 'evwev', 'vwevw')
//
]
//
mySqlData is a data source
//
HExecuteSQLQuery(mySqlData, sSQL)
//test ? still here mate ? sorry yes
//yes
//Trace(arr1[nEDTperiod,2], sEn)
day_timings.day
=
n
AppliesToDays
day_timings.finish
=
140920
//no need
day_timings.start
=
"151032"
Trace
(
day_timings.finish
+
" "
+
day_timings.start
)
day_timings.periodName
=
arr1
[
n
EDTperiod
,
1
]
day_timings.appliesToGroup
=
gs
Gname
HAdd
(
day_timings
)
Report
0
0
→ Go back to WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text