Click here to Skip to main content
15,892,643 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HI can someone help me with my responsive gallery project? Pin
Member 1529865622-Jul-21 21:56
Member 1529865622-Jul-21 21:56 
QuestionHello, i need some help for a project with css and html Pin
Florina Catalina10-Mar-21 4:38
Florina Catalina10-Mar-21 4:38 
QuestionHelp me remove unused CSS Pin
maithu7029-Mar-21 1:27
maithu7029-Mar-21 1:27 
AnswerRe: Help me remove unused CSS Pin
Richard Deeming9-Mar-21 22:20
mveRichard Deeming9-Mar-21 22:20 
AnswerRe: Help me remove unused CSS Pin
User 1407655214-Jul-21 10:03
User 1407655214-Jul-21 10:03 
QuestionDeployments Pin
#realJSOP27-Feb-21 4:57
mve#realJSOP27-Feb-21 4:57 
QuestionASP.Net Web API Controller Question Pin
Kevin Marois26-Feb-21 7:47
professionalKevin Marois26-Feb-21 7:47 
QuestionPHP7+, working with datetime stored in cookie with json format Pin
jkirkerx17-Feb-21 11:48
professionaljkirkerx17-Feb-21 11:48 
QuestionMessage Closed Pin
14-Feb-21 10:11
ellaluceero14-Feb-21 10:11 
AnswerRe: How To create a table in MS Access contain more than 255 filed ? Pin
Richard Deeming14-Feb-21 22:05
mveRichard Deeming14-Feb-21 22:05 
QuestionBootstrap - How do I make an icon a href link Pin
Jim McElhiney10-Feb-21 15:33
Jim McElhiney10-Feb-21 15:33 
AnswerRe: Bootstrap - How do I make an icon a href link Pin
Peter_in_278012-Feb-21 13:58
professionalPeter_in_278012-Feb-21 13:58 
QuestionPHP V7.4.14, convert this database function, understanding mssql_fetch_field to sqlsrv_fetch Pin
jkirkerx10-Feb-21 9:36
professionaljkirkerx10-Feb-21 9:36 
AnswerRe: PHP V7.4.14, convert this database function, understanding mssql_fetch_field to sqlsrv_fetch Pin
jkirkerx12-Feb-21 13:14
professionaljkirkerx12-Feb-21 13:14 
I think I figured it out.
What I'm trying to get is the column names in the meta data of the table.
The example use a foreach loop, so now I know how to use foreach in PHP V7+
Seems needs some work and polishing.
C#
public static function dbSelectQuery($sqlQuery): array {

<pre>
// print_r(debug_backtrace());
$Rows = array();
$rgFields = array();
$params = array();
$options =  array( "Scrollable" => SQLSRV_CURSOR_KEYSET );

$conn = clsDbConnect::createConn();
$resQuery = sqlsrv_query($conn, $sqlQuery, $params, $options) or die(" cls_db_tools 128: " . $sqlQuery . print_r(sqlsrv_errors()) );
$rowCount = sqlsrv_num_rows($resQuery);
$fieldCount = sqlsrv_num_fields($resQuery);

$cIndex = 0;
foreach( sqlsrv_field_metadata( $resQuery ) as $fieldMetadata ) {

        $columnName = $fieldMetadata['Name'];
        $rgFields[$cIndex] = $columnName;
        $cIndex++;

}

for ($i = 0; $i < $rowCount; $i++) {

$row = sqlsrv_fetch_array($resQuery,SQLSRV_FETCH_NUMERIC);
for ($col = 0; $col < $fieldCount; $col++) {
$Rows[$i][$rgFields[$col]] = rtrim($row[$col]);
}

}

sqlsrv_free_stmt($resQuery);
return $Rows;

}

If it ain't broke don't fix it
Discover my world at jkirkerx.com

Questionphp 7.4.14 convert smalldatetime to string for html display Pin
jkirkerx9-Feb-21 12:14
professionaljkirkerx9-Feb-21 12:14 
AnswerRe: php 7.4.14 convert smalldatetime to string for html display Pin
Richard Deeming9-Feb-21 22:00
mveRichard Deeming9-Feb-21 22:00 
GeneralRe: php 7.4.14 convert smalldatetime to string for html display Pin
jkirkerx10-Feb-21 5:19
professionaljkirkerx10-Feb-21 5:19 
GeneralRefresh a div with pjax Pin
Member 150664316-Feb-21 9:32
Member 150664316-Feb-21 9:32 
GeneralRe: Refresh a div with pjax Pin
OriginalGriff6-Feb-21 9:45
mveOriginalGriff6-Feb-21 9:45 
Question500 Error Pin
#realJSOP4-Feb-21 5:49
mve#realJSOP4-Feb-21 5:49 
AnswerRe: 500 Error Pin
Richard Deeming4-Feb-21 5:59
mveRichard Deeming4-Feb-21 5:59 
GeneralRe: 500 Error Pin
#realJSOP4-Feb-21 7:33
mve#realJSOP4-Feb-21 7:33 
GeneralRe: 500 Error Pin
Richard Deeming4-Feb-21 21:42
mveRichard Deeming4-Feb-21 21:42 
GeneralRe: 500 Error Pin
#realJSOP7-Feb-21 9:08
mve#realJSOP7-Feb-21 9:08 
QuestionVS code/Live Server Browser issue Pin
ISHYY4-Feb-21 4:42
ISHYY4-Feb-21 4:42 

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.