Dim curtime As String = My.Computer.Clock.LocalTime.ToString("ddd, MMM d h:mm tt ")
Dim fEntry As New System.Text.StringBuilder
fEntry.Append("Sample Time: ")
fEntry.Append(fontColorGood)
fEntry.Append(curtime)
fEntry.Append(fontEnd)
'fEntry.Append(";")
fEntry.Append(line)
fEntry.Append(title)
fEntry.Append("Temperature")
fEntry.Append(titleEnd)
fEntry.Append(";")
fEntry.Append("Display Temp: ")
fEntry.Append(ftemp.ToString())
fEntry.Append(";")
fEntry.Append("Sump Temp: ")
fEntry.Append(fAirTemp.ToString())
'fEntry.Append(";")
fEntry.Append(line)
fEntry.Append(title)
fEntry.Append("Levels")
fEntry.Append(titleEnd)
fEntry.Append(";")
fEntry.Append("Sump Level: ")
fEntry.Append(fSump.ToString())
fEntry.Append(";")
fEntry.Append("Display Level: ")
fEntry.Append(fAquar.ToString())
fEntry.Append(";")
fEntry.Append("Overflow Water Level: ")
fEntry.Append(fOverflow.ToString())
fEntry.Append(";")
fEntry.Append("Top Off Level: ")
fEntry.Append(fTopOff.ToString())
fEntry.Append(";")
fEntry.Append("Skimmate Level: ")
fEntry.Append(fSkimmer.ToString())
'fEntry.Append(";")
fEntry.Append(line)
fEntry.Append(title)
fEntry.Append("Pumps")
fEntry.Append(titleEnd)
fEntry.Append(";")
fEntry.Append(" Pump and Topoff Status: ")
fEntry.Append(fPump.ToString())
fEntry.Append(";")
fEntry.Append("Water Flow: ")
fEntry.Append(fflow.ToString())
<?php
$connect = mysql_connect('localhost','root','12345');
if (!$connect) {
die('Could not connect to MySQL: ' . mysql_error());
}
$cid =mysql_select_db('test',$connect);
// supply your database name
define('CSV_PATH','C:/wamp/www/csvfile/');
// path where your CSV file is located
$csv_file = CSV_PATH . "infotuts.csv"; // Name of your CSV file
$csvfile = fopen($csv_file, 'r');
$theData = fgets($csvfile);
$i = 0;
while (!feof($csvfile)) {
$csv_data[] = fgets($csvfile, 1024);
$csv_array = explode(",", $csv_data[$i]);
$insert_csv = array();
$insert_csv['ID'] = $csv_array[0];
$insert_csv['name'] = $csv_array[1];
$insert_csv['email'] = $csv_array[2];
$query = "INSERT IGNORE INTO csvdata(ID,name,email)
VALUES('','".$insert_csv['name']."','".$insert_csv['email']."')";
$n=mysql_query($query, $connect );
$i++;
}
fclose($csvfile);
echo "File data successfully imported to database!!";
mysql_close($connect);
?>
Thanks mustang but I have a PC I am using now.Following along, ping me if you are still in need of a PC or Laptop. I am sure I have something in my office.
Same boat here. My local shack just closed too. The monitor is doing really well. I still have a few sensors to build but spent the past few days on my favorite subject of income taxes...Not!So I am in limbo waiting for a couple components to build my board. Curse you Radio Shack for going out of business! My stuff is coming out of Texas and guess there are shipping delays. C'mon its just a little ice and snow! I'm in the Chicago area and we never shut down. So how's things with the controller going?