-
Dec24
Get Key value in Array with PHP
Filed under: PHP;No Commentshi if u need key value of an array. try this example.
$fruits = array(“d” => “lemon”, “a” => “orange”, “b” => “banana”, “c” => “apple”);
asort($fruits);
foreach ($fruits as $key => $val) {
echo “$key = $val\n”;
} -
Dec23
import excel to sql server 2005/2008
Filed under: MSSQL - SERVER;No Commentssave you excel in csv.
Bulk
INSERT elect
FROM ‘c:\data\file2.csv’
WITH
(
FIELDTERMINATOR = ‘,’,
ROWTERMINATOR = ‘\n’
)
GO
–Check the content of the table.
SELECT *
FROM elect
GOelect is your table name and c:\data\file2.csv is your csv file path.
Nishant
-
Dec12
A common Error in Else If syntex
Filed under: Asp.Net;No CommentsHi..
I was making a procedure in My Sql then I noticed a thing which I should share with all
the common If…. else if*….else…..end if system may confuce u leading to systex error if you forget to concat the elseif togather
