This essay developed out of conversations I've had with several other programmers about why Java smelled suspicious. It's not a critique of Java!
Sycorax - complete tutorials
Programming Tutorials
" Java provides the industry - software companies and customer alike , an opportunity to create a true open computing environment where software is portable,
and customers benefit from increase competition. "
Java and the Future
December 1, 2008-LEJB 3.1: EJB New and Improved!
The EJB 3.0 specification was a huge improvement from what you were used to in the early versions of EJB. Available as an early draft, EJB 3.1 has many more features and is even easier to use.
December 1, 2008-Should Java Assert that Network I/O Can't Occur on the UI Thread?
Doing network I/O on the user interface (UI) thread is bad. Most developers know that and can tell you why; unfortunately, it's still done.
Register now to recieve special alert and latest technology news!
Inserting Data into a Table
The basic SQL syntax is placed within the mysql query function statement.
mysql_query ();The SQL syntax is enclosed in double quotes. It supplies the command , the name of the table, the field names and the values to be added.
"INSERT INTO birthdays (name, birthday) VALUES ('Peggy', 'June4')"The mysql_query function can be used in many other database operations.
The code for adding data to a table is shown below.
The first example (red) shows the actual VALUES which are added.
The second (blue) shows how to add data parsed from a simple form.
<?$name=$_POST['name']; $birthday=$_POST['birthday']; $db="mydatabase";
$link = mysql_connect("localhost");
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link)
or die("Couldn't open $db: ".mysql_error());
mysql_query ("INSERT INTO birthdays (name, birthday) VALUES ('Peggy', 'June4')");
mysql_query ("INSERT INTO birthdays (name, birthday) VALUES ('$name','$birthday')");
mysql_close($link);
?>