JavaScript, getting value of a td with id name

后端 未结 8 1460
难免孤独
难免孤独 2020-12-01 02:53

Originally I was using input with an id and grabbing it\'s value with getElementById. Currently, I\'m playing with s. How can I grab the values of the

8条回答
  •  萌比男神i
    2020-12-01 03:13

    if i click table name its shown all fields about table. i did table field to show. but i need to know click function.

    My Code:

    $sql = "SHOW tables from database_name where tables_in_databasename not like '%tablename' and tables_in_databasename not like '%tablename%'";
    
    
    $result=mysqli_query($cons,$sql);
    
    $count = 0;
    
    $array = array();
    
    while ($row = mysqli_fetch_assoc($result)) {
    
        $count++;
    
        $tbody_txt .= '';
    
        foreach ($row as $key => $value) {
            if($count  == '1') {
                $thead_txt .=''.$key.'';
            }
            $tbody_txt .=''.$value.'';
    
    
            $array[$key][] = $value;
        }
    }?>
    

提交回复
热议问题