小编Jam*_*vis的帖子

访问被拒绝用户

我已经创建了一个php脚本来访问我的数据库......据我所知,所有登录详细信息都是正确的但我收到此错误消息:用户'a5247024_thesps'@'10.1.1.36'访问被拒绝到数据库'maininf'

<?php
// Make a MySQL Connection
mysql_connect("mysql11.000webhost.com", "a5247024_thesps", "******") or     die(mysql_error());
mysql_select_db("maininf") or die(mysql_error());

// Retrieve all the data from the "maininf" table
$result = mysql_query("SELECT * FROM maininf")
or die(mysql_error());  

// store the record of the "maininf" table into $row
$row = mysql_fetch_array( $result );
// Print out the contents of the entry 

echo "Name: ".$row['PUA_Name'];


?>
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?非常感谢.

php mysql

3
推荐指数
1
解决办法
2093
查看次数

JavaScript图像作为按钮(onClick)

我对JavaScript有一点问题,并想知道你是否可以帮助我.我有一个图像和一个视频.我希望能够单击图像并使视频处于透明度的一半.我不明白为什么我的代码不起作用.

图片

<img src="James Outlined.jpg" id="picture_on">
Run Code Online (Sandbox Code Playgroud)

的iFrame

<iframe width="630" height="350" src="https://www.youtube.com/embed/MmB9b5njVbA" frameborder="0" allowfullscreen id="MinecraftVideo"></iframe>
Run Code Online (Sandbox Code Playgroud)

JavaScript代码

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">

    $(document).ready(function(){
    $(“#picture_on”).click(function(){
    $(“#MinecraftVideo”).animate({
    opacity: '0.5'
        });
      });
    });

</script>
Run Code Online (Sandbox Code Playgroud)

javascript jquery image button

1
推荐指数
1
解决办法
965
查看次数

标签 统计

button ×1

image ×1

javascript ×1

jquery ×1

mysql ×1

php ×1