简体   繁体   English

如何使用PHP MySQL将Google Addese插入MySQL数据库

[英]How to insert google addsese into MySQL database using PHP mysql

I want to insert Google Addsense code into Mysql database using php mysql in the live Linux server. 我想在实时Linux服务器中使用php mysql将Google Addsense代码插入Mysql数据库。 But its not inserted, actually Google Addsense code inserted into my local Mysql database in my local system, but not in the server. 但是它没有插入,实际上是Google Addsense代码插入了我本地系统中的本地Mysql数据库中,而不是服务器中。 Since Google Addsense code is a javascript code, may be due to this its not inserted(Normal data inserted), please help me how to insert such type of data into database. 由于Google Addsense代码是JavaScript代码,可能是由于其未插入(已插入普通数据)所致,请帮助我如何将此类数据插入数据库。

Addsense code inserted into my local Mysql database in my local system, but not in the server 将Addsense代码插入本地系统中的本地Mysql数据库中,但未插入服务器中

Looks like you connected to database on your local machine instead of wanted server. 看起来您已连接到本地计算机上的数据库,而不是所需的服务器。

Acording to http://php.net/manual/en/function.mysql-connect.php 根据http://php.net/manual/en/function.mysql-connect.php

mysql_connect('<<<IP ADDDRESS TO YOUR SERVER>>>', '<<<USERNAME>>>', '<<<PASSWORD>>>');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM