Click here to Skip to main content
15,170,543 members
Home / Discussions / Web Development
   

Web Development

 
QuestionASP.Net Web API Controller Question Pin
Kevin Marois26-Feb-21 8:47
professionalKevin Marois26-Feb-21 8:47 
QuestionPHP7+, working with datetime stored in cookie with json format Pin
jkirkerx17-Feb-21 12:48
professionaljkirkerx17-Feb-21 12:48 
AnswerRe: How To create a table in MS Access contain more than 255 filed ? Pin
Richard Deeming14-Feb-21 23:05
mveRichard Deeming14-Feb-21 23:05 
QuestionBootstrap - How do I make an icon a href link Pin
Jim McElhiney10-Feb-21 16:33
MemberJim McElhiney10-Feb-21 16:33 
AnswerRe: Bootstrap - How do I make an icon a href link Pin
Peter_in_278012-Feb-21 14:58
professionalPeter_in_278012-Feb-21 14:58 
QuestionPHP V7.4.14, convert this database function, understanding mssql_fetch_field to sqlsrv_fetch Pin
jkirkerx10-Feb-21 10:36
professionaljkirkerx10-Feb-21 10:36 
AnswerRe: PHP V7.4.14, convert this database function, understanding mssql_fetch_field to sqlsrv_fetch Pin
jkirkerx12-Feb-21 14:14
professionaljkirkerx12-Feb-21 14:14 
Questionphp 7.4.14 convert smalldatetime to string for html display Pin
jkirkerx9-Feb-21 13:14
professionaljkirkerx9-Feb-21 13:14 
I'm stumped, and sort of shocked that PHP didn't like the value or type.
$sold_date in the the sql server table is defined as smalldatetime.
In the table, the value is 2/7/2008
I tried $sold_date->format('m-d-y') and it didn't like it.
I also searched and searched, and just found generic anwsers

Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in C:\App\Dev\PCAD\project_update.phtml:427 Stack trace: #0 {main} thrown in C:\App\Dev\PCAD\project_update.phtml on line 427
echo "
 <td class='text-align-center'>
   <p class='margin-text-indent'> $sold_date </p>
 </td>";

My database call is
$row_proj = sqlsrv_fetch_array($res_proj);
$projectNumber = $row_proj[0];
$proj_stage = $row_proj[1];
$version_no = $row_proj[2];
$customerNumber = $row_proj[3];
$sold_date = $row_proj[4]; // FIXME - convert smalldatetime to string
$sales_no = $row_proj[5];
$swan_job = $row_proj[6];
If it ain't broke don't fix it
Discover my world at jkirkerx.com

AnswerRe: php 7.4.14 convert smalldatetime to string for html display Pin
Richard Deeming9-Feb-21 23:00
mveRichard Deeming9-Feb-21 23:00 
GeneralRe: php 7.4.14 convert smalldatetime to string for html display Pin
jkirkerx10-Feb-21 6:19
professionaljkirkerx10-Feb-21 6:19 
GeneralRefresh a div with pjax Pin
Member 150664316-Feb-21 10:32
MemberMember 150664316-Feb-21 10:32 
GeneralRe: Refresh a div with pjax Pin
OriginalGriff6-Feb-21 10:45
mveOriginalGriff6-Feb-21 10:45 
Question500 Error Pin
#realJSOP4-Feb-21 6:49
mva#realJSOP4-Feb-21 6:49 
AnswerRe: 500 Error Pin
Richard Deeming4-Feb-21 6:59
mveRichard Deeming4-Feb-21 6:59 
GeneralRe: 500 Error Pin
#realJSOP4-Feb-21 8:33
mva#realJSOP4-Feb-21 8:33 
GeneralRe: 500 Error Pin
Richard Deeming4-Feb-21 22:42
mveRichard Deeming4-Feb-21 22:42 
GeneralRe: 500 Error Pin
#realJSOP7-Feb-21 10:08
mva#realJSOP7-Feb-21 10:08 
QuestionVS code/Live Server Browser issue Pin
ISHYY4-Feb-21 5:42
MemberISHYY4-Feb-21 5:42 
Questiondeployment using "FTP Passive" Pin
Super Lloyd4-Feb-21 2:56
MemberSuper Lloyd4-Feb-21 2:56 
QuestionPHP 7.4, best practice to establish a database connection Pin
jkirkerx2-Feb-21 9:10
professionaljkirkerx2-Feb-21 9:10 
QuestionWhich will be the best web development course for kids? Pin
Annet Rose14-Jan-21 0:35
MemberAnnet Rose14-Jan-21 0:35 
AnswerRe: Which will be the best web development course for kids? Pin
Richard MacCutchan14-Jan-21 1:37
mveRichard MacCutchan14-Jan-21 1:37 
RantHTML Emails - Printing Pin
Gripper 1070963823-Dec-20 7:08
MemberGripper 1070963823-Dec-20 7:08 
QuestionPHP 4.7, JSON and HTTP response header payload, json_encode Pin
jkirkerx19-Dec-20 12:31
professionaljkirkerx19-Dec-20 12:31 
AnswerRe: PHP 4.7, JSON and HTTP response header payload, json_encode Pin
Peter_in_278019-Dec-20 16:02
professionalPeter_in_278019-Dec-20 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.