`
ling凌yue月
  • 浏览: 338707 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论
文章列表
连接数据库程序: public class CreateODBC { public static Connection getconn(){ Connection conn = null; String driver = "com.mysql.jdbc.Driver"; String url = "jdbc:mysql://localhost:3306/db?&characterEncoding=UTF-8"; String user = "root"; String password = ...
function GetProducts($catagorys, $includeSubcatagory, $brandname='', $specialoffer, $pagesize, $pageindex, $orderby){ $where = array(1); foreach($catagorys as $k=>$v){ $catIDsql='SELECT cat_id FROM sdb_goods_cat WHERE cat_name=\''.$v.'\' '; $cat_rs[]=$this->db->selectrow($cat ...
m个人站成一个圈,某个人开始喊1,下一个喊2……依次,规定喊n的人被淘汰,被淘汰的下一个重新开始喊,请问最后谁留下? public static void main(String[] args) { String[] a={"1","2","3","4","5","6","7","8"}; System.out.print(yy(a,3)); } static String yy ...
<?php function sendpost($url, $data){ //先解析url $url = parse_url($url); $url_port = !isset($url['port']) ? (($url['scheme'] == 'http') ? 80 : 443) : $url['port']; if (!$url) { return "couldn't parse url"; } //将参数拼成URL key1=value1&key2=value2 的形式 $encoded = " ...
Java查询MySQL数据库的字段及类型 import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.Statement; import java.util.Hashtable; public class GetDBFiled { public static void conn() { String driver = "com.mysql.j ...
第一种:    <script language="javascript" type="text/javascript"> window.location.href="login.jsp?backurl="+window.location.href; </script>   第二种:   <script language="javascript"> window.history.back(-1); </scrip ...
1、数据库,这里是MySQL数据库 DROP TABLE IF EXISTS `paging`; CREATE TABLE paging( `id` int(3) NOT NULL auto_increment, `name` varchar(30) , primary KEY id(`id`) ); INSERT INTO paging(name) values('jack01'); INSERT INTO paging(name) values('jack02'); INSERT INTO paging(name) values('jack03'); IN ...
方法一、     常规方法:     <table width="400" align="center" bordercolor='black' border='1' style="border-collapse: collapse"> <tr> <td colspan=2>a&nbsp;</td> </tr> <tr> <td rowspan=2>c&nbsp;</td> < ...
/** * * @param m 对数的底数 * @param n 对数的幂 * @return 以m为底n的对数 logm(n) * */ public static double log(int m,int n){ double reslut=0.0; reslut=Math.log(n)/Math.log(m); return reslut; }
try{ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Please input a number:"); String str=reader.readLine(); //获取字符串 str = str.trim(); String[] arr = str.split("\\s+"); for(int i =0;i<ar ...
Global site tag (gtag.js) - Google Analytics