Suche auf lima-city
-
in: explore help
geschrieben von hpessmsncom
import java.sql.*;
public class DataBaseManager {
Connection con;
ResultSet rs;
Statement stmt;
public DataBaseManager() {
try {
String url = "jdbc:odbc:books";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection(url);
stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
}
catch (SQLException sqle) {
System.out.println(sqle.toString());
}
catch (ClassNotFoundException cnfex) {
cnfex.printStackTrace();
}
}
public ResultSet getResult(String strSQL) {
try {
rs = stmt.executeQuery(strSQL);
return rs;
}
catch (SQLException sqle) {
System.out.println(sqle.toString());
return null;
}
}
public int updateSql(String strSQL) {
try {
int i=stmt.executeUpdate(strSQL);
con.commit();
return i;
}
catch (SQLException sqle) {
System.out.println(sqle.toString());
return -1;
}
}
public void closeConnection() {
try {
con.close();
}
catch (SQLException sqle) {
System.out.println(sqle.toString());
}
}
}
Code operation the queen , why such a hint of
Exception in thread "main" java.lang.NoSuchMethodError:main
have appeared on meeting this paragraph , I have been that new hand does not know , asked everybody to give advices much , withered here first. -
in: how back-up MYSQL data base?
geschrieben von hpessmsncom
for instance , a page imports the back-up document , generates small advantages's right away face to face. The SQL document, can be in progress conveniently recovering -
in: why do I run this paragraph of unable code Write Data enter a data base?
geschrieben von hpessmsncom
<html>
<body>
<?
if ($UserName)
{
mysql_connect("localhost","root","xxxx") or die (" Problem connecting to DataBase");
$query = "insert into tbl values ('$idx','$UserName','$LastName','$FreeText')";
$result = mysql_db_query("example", $query);
echo "Data inserted. new table:<br><p></p>";
$query = "SELECT * FROM tbl";
$result = mysql_db_query("example", $query);
if ($result)
{
echo "<table width=90% align=center border=1><tr>
<td align=center bgcolor=#00FFFF>idx</td>
<td align=center bgcolor=#00FFFF>User Name</td>
<td align=center bgcolor=#00FFFF>Last Name</td>
<td align=center bgcolor=#00FFFF>Free Text</td>
</tr>";
while ($r = mysql_fetch_array($result))
{
$idx = $r["idx"];
$user = $r["UserName"];
$last = $r["LastName"];
$free = $r["FreeText"];
echo "<tr>
<td>$idx</td>
<td>$user</td>
<td>$last</td>
<td>$free</td>
</tr>";
} // while circulation be over
echo "</table>";
}
else
{
echo "No data.";
} // if Be over($result)
}
else
{
echo "No UserName Entered. Please go back and reenter UserName";
} // if Be over($UserName)
echo "<p></p>";
include ('links.x');
?>
</body>
</html>
-
in: mistake appear on operation?
geschrieben von hpessmsncom
<?
$subject=$rows[1];
$i=15;
if (strlen($subject)>$i)
{
$sub=substr($subject,0,$i)
echo "$sub";
}
else
{
echo "$subject";
}
?>
this is that one passage omits the code demonstrating information's , seem to have no mistake , it is operation not to come out always saying echo \"$sub\"; having a mistake but, -
in: (require_once)Have no way to come true
geschrieben von hpessmsncom
I have a group to be going face to face much page
require_once('../doc/a.php');
require_once('../doc/b.php');
require_once('../doc/c.php');
Be composed of;
Another a group all
be going face to
face much page
require_once('../doc/d.php');
require_once('../doc/e.php');
require_once('../doc/f.php');
I want to do a function now , use a page of face test.php to contain:
function t1()
{
$str1 .=require_once('../doc/a.php');
$str1 .=require_once('../doc/b.php');
$str1 .=require_once('../doc/c.php');
return $str1
}
function t2()
{
$str2 .=require_once('../doc/d.php');
$str2 .=require_once('../doc/e.php');
$str2 .=require_once('../doc/f.php');
return $str2 ;
}
Have requiring that page of face calling is now and then direct
Require_once (test.php); T1 (); Or be t2 ();
But, why also has no way to come
true transferring page of face
require_once temporarily for a
specific task? Do not know that
place can solve this problem? -
in: Thin out the variable delivery face to face page
geschrieben von hpessmsncom
Find out have resolved way): Thank everybody): -
in: Thin out the variable delivery face to face page
geschrieben von hpessmsncom
There are still other method? -
in: How just now I can earn more Gulden rationally.
geschrieben von hpessmsncom
How just now I can earn more Gulden rationally. -
in: Thin out the variable delivery face to face page
geschrieben von hpessmsncom
<?php
while($rs=mysql_fetch_array($conn)){
?>
<tr bgcolor="#CCCCCC">
<td><a href="test.php">
<img src="image/dir.png" alt="Dir" width="20" height="20" border="0" class="icon_img dir" style="margin-left:10px; margin-top:0px " /></a></td>
<td>
<?php
echo $rs["name"];
?> </td>
<td>
<?php
echo $rs["Date"];
?> </td>
</tr>
<?php }
mysql_close();
exit;
?>
</table>
This may demonstrate a table , be in proper order: Picture bid , Name , date
Strike picture bid moment , the rs how ability owes a line [\" name\ "]; Transfer the rs have tried, but to next page of face session [\" name\ "]; Be the same. - -
in: I am very sorry , my Germany language is not good but I expect Gulden. : (
geschrieben von hpessmsncom
Okay, I hope you pay attention to my words in the future and post good and senseful messages. Welcome to Lima-City.
Yes, I pay attention to hereafter. Sorry: ( -
in: I am very sorry , my Germany language is not good but I expect Gulden. : (
geschrieben von hpessmsncom
If you can read, what's written here, it's okay. You are allowed to post in English, but take care, that you don't put only one word behind a quote. Then we think, that it is spam and then we have to punish you.
I am sorry , incapable absolutely hereafter. Sorry. -
in: I am very sorry , my Germany language is not good but I expect Gulden. : (
geschrieben von hpessmsncom
You were punished by me, because you are posting shit.
Even people, writing in English can post good messages here. But putting only a smilie like this :) under a quote is spam. Maybe not in the boards you were before, but here it is.
I am sorry , being not going to be such , sorry in the once: ( -
in: I am very sorry , my Germany language is not good but I expect Gulden. : (
geschrieben von hpessmsncom
Though my Germany language can not never tell indeed but I love here. -
in: I am very sorry , my Germany language is not good but I expect Gulden. : (
geschrieben von hpessmsncom
Do not delete my words well? Entrust ~! -
in: I am very sorry , my Germany language is not good but I expect Gulden. : (
geschrieben von hpessmsncom
I am very sorry , my Germany language is not good but I expect Gulden. : (