Category: Uncategorized

  • PHP v/s .net

    This blog I write today that about to PHP vs .NET. I’m ex. Microsoft Student Partner and Microsoft Certified Developers even if I’m oppose to .NET. Why? Find my answers below. PHP is a free open source. So, we should not need to pay any fees for PHP. PHP is runs on various operating system.…

  • Read the csv file and insert in mysql in php

    <?php if($_SERVER[‘REQUEST_METHOD’]==’POST’) { $cmpname=”; $uplpath=”.”; $fname=$_FILES[‘upload’][‘name’]; move_uploaded_file($_FILES[‘upload’][‘tmp_name’],$uplpath.”/”.$fname); $handle=fopen($uplpath.”/”.$fname,”r”); if($handle) { while(!feof($handle)) { $str=fgets($handle,4096); $arr=explode(‘,’,$str); $cnt = count($arr); $cmp=$cmpname; if($cnt>1) { $nm=$arr[0]; $mail=$arr[1]; echo $q=”insert into test(name,email) values(‘$nm’,’$mail’)”; $r=mysql_query($q) or die(mysql_error()); header(“Location:result.php?suc=1”); } } } else { $m=1; } } ?> <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″…

  • VB.NET Connection String

    Imports System.Data.OleDb Public Class Form1 Dim connetionString As String Dim conn As OleDbConnection Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click connetionString = “Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\USER\Documents\Database3.accdb” conn = New OleDbConnection(connetionString) Try conn.Open() MsgBox(“Done”) conn.Close() Catch ex As Exception MsgBox(“Not Done”) End Try End Sub End Class