开发者

Wordpress Plugin with Database connection

开发者 https://www.devze.com 2023-01-01 11:08 出处:网络
I am using WordPress Version 2.9.2 for my blog.when i am trying to include a database connection in one of my plug-in which is not working properly.Which did not get the database connection.But in all

I am using WordPress Version 2.9.2 for my blog.when i am trying to include a database connection in one of my plug-in which is not working properly.Which did not get the database connection.But in all other directory it is possible to use a c开发者_运维技巧ommon connection.So,now I am using manual coding in all of my plug-in file.Any ways to getting a common connection in all of my plug-in.Help me please...


you should study more about wordpress

eg:

<?php
$table = "wp_table";
$data = $wpdb->get_results("SELECT * FROM $table WHERE 1=1", ARRAY_A);
?>

this a common connection

0

精彩评论

暂无评论...
验证码 换一张
取 消