Imports System.IO Public Class AddEMForm Private Sub CreateCSVfile(ByVal_strCustomerCSVPath As String, ByVal EName As String, ByVal Edate As Date, ByVal ELoc As String, ByVal EDis As String, ByVal EFee As String) Try Dim stLine As String = "" Dim objWriter As StreamWriter = File.AppendText("..\..\EventData.txt") If File.Exists("..\..\EventData.txt") Then objWriter.Write(EName & ",") objWriter.Write(Edate & ",") objWriter.Write(ELoc & ",") objWriter.Write(EDis & ",") objWriter.WriteLine(EFee) End If objWriter.Close() ClearTextbox() Catch ex As Exception End Try End Sub Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles LocTbx.TextChanged End Sub Private Sub AddEMForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load End Sub Private Sub Button1_Click(sender As Object, …

Member Avatar
+0 forum 0

How to save, delete and insert current cell value of datagridview from xml file in C#.net winforms. i am entering the data in current cell of datagridview, that data is comming from xml file. now how should i save this current cell data.

Member Avatar
Member Avatar
+0 forum 1

Can somebody explain to me how can I create a one page for all crud and my edit for to be the same with my create form? I don't know how to use if(iseet($_POST['action=create']) if(iseet($_POST['action=edit']) if(iseet($_POST['action=delete']) Oh and if someone is intrested in accepting an apprentice to teach and review code. I would be glad. I mainly worked with wordpress or frameworks so some basics of php i have missed Thank you

Member Avatar
Member Avatar
+0 forum 5

# There is a code of crud operations in php using classes. plz help me to correct the error # Warning: mysql_query() expects parameter 1 to be string, resource given in C:\wamp\www\new\customers.php on line 44 <?php class Customers { private $name; private $id; private $desc; private $con; public function __construct($name,$desc) { $this -> name = $name; $this-> desc = $desc; $this -> con = mysql_connect("localhost", "root", ""); $this -> db = mysql_select_db('cust'); } public function insertData() { $sql = " insert into desc_tbl values ( 'name','desc')"; $res = mysql_query($sql); mysql_query($res); echo "<center>Record Inserted</center><br>"; } public function deleteData($id) { $sql = …

Member Avatar
Member Avatar
+0 forum 3

Experts, Please forgive me if this is a dumb question. 1)I am developing an application that needs data to be displayed in a grid format. 2)I need the ability to edit multiple records inline 3) I need the ability to use custom validations on rows being edited. 4)I am not much concerned about add/delete functions 5) I should be able to define custom form elements(like buttons) and pass values from data grid to perform certain actions. 6) if a row is being edited inline, I need all values from all columns to be available to create a custom validation and …

Member Avatar
Member Avatar
+0 forum 3

Hey! I am a newbie to php, but very interested in. I am currently on highschool and i am trying to make an appointment SQL table that could be managed, in a simple way, via browser that my sister could use. I was getting some results but then i messed up.. :( i been smashing my head on this: <?php session_start(); define('ADMIN_PASS', 'password'); $mysql_server = '------'; $mysql_nome = '--------'; $mysql_password = '---------'; $mysql_database = '-----------'; $mysql_table = '----------'; $admin_password = isset($_COOKIE['admin_password']) ? $_COOKIE['admin_password'] : ''; if (empty($admin_password)) { if (isset($_POST['admin_password'])) { $admin_password = md5($_POST['admin_password']); if ($admin_password == md5(ADMIN_PASS)) { setcookie('admin_password', …

Member Avatar
Member Avatar
+0 forum 4

Hi all, I am putting together a CRUD. I have read through tutorials, and references. Just wanted to see if i was on the right track: <?php // root -> /classLib/CRUD/CRUD spl_autoload_extensions(".php"); spl_autoload_register(); use classLib\database\database_Connection as DB; class CRUD { private $id; #__construct to be extended public function __construct($id=null){ $this->id = $id; #__construct to be extended } public function save() { try{ $sql = ""; $q = DB::get()->prepare($sql); $q->execute(array()); } catch (Exception $e){ print "Error: " . $e->getMeasage(); } } public function update() { } public function delete() { try{ $sql = "DELETE FROM [table to be clarified] WHERE id=:id"; …

Member Avatar
Member Avatar
+0 forum 5

The End.