Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Browsing all 5527 articles
Browse latest View live

sanketzalak on "Insert Data from Multiple Contact Form 7"

I Use add_action('wpcf7_before_send_mail','save_to_the_database'); function save_to_the_database($cf7) { global $wpdb; //declare your varialbes, for example: $id = $cf7->posted_data["id"];...

View Article


kennibc on "[Plugin: Moodle Course List Widget] Warning: mysql_fetch_object()"

Hello Jannis, I think you are using the wrong MySQL settings for the user and password. This needs to be MYSQL account for moodle so that it can access the DB Directly via MYSQL. Here... Line 44...

View Article


insert duplicate entries"">bcworkz on "$wpdb->insert duplicate entries"

You are saying this insert code is part of a shortcode handler? I've noticed several times that actions and filters often fire more often than one would expect. I've not observed this in shortcode...

View Article

bcwp on "Displaying output from one table based on the info of another"

It's been a long day, so I'm providing the following SQL, untested and off the top of my head, but I think you're probably looking for something like this: SELECT spouse1_info.first_name AS...

View Article

oldmankit on "Advice rebuilding a new database after site got hacked"

Thank you Josh and bottleneck. So I have two options: one is to copy and paste post content, and then export/import wp-comments, and then manually adjust comment_post_ID. I have only 121 comments so...

View Article


bottleneck on "Advice rebuilding a new database after site got hacked"

Sure, you are welcome. Let us know.

View Article

webguync on "Can’t select database"

I get this error when trying to set up the config. I am entering the database name correctly so I think it might be this part that is giving me trouble. Does the user [username] have permission to use...

View Article

t-p on "Can’t select database"

have you contacted your hosting provider?

View Article


webguync on "Can’t select database"

actually, yes. Waiting on a response from them. Thought I would try these forums in the meantime.

View Article


wdlyons on "Displaying output from one table based on the info of another"

Thanks Will give it ago. I thought about adding the marriage_id to the person table but thought multiple marriages may cause a problem. Will let you know how it turns out Thanks Again Warwick

View Article

johnnyp14 on "[Plugin: PowerPress Posts From MySQL] Setup Help"

Anyone?

View Article

c_cav on "Displaying output from one table based on the info of another"

First, analyze your desired output: I want a table of data where the data consists of a.(data) joining.(data) b.(data) WHERE a.data and b.data come from either side of the join. i.e. I don't care if...

View Article

Swennet on "How to select posts from certain category with MySQL?"

Hey everyone. I'm trying to count the amount of posts from a certain category by one author to display on the author.php page. However, I don't know which query to use for that. <?php $curauth =...

View Article


ogmandrake on "[Plugin: PostgreSQL for WordPress (PG4WP)] Possible...

When trying to install now as well: Fatal error: Call to undefined function mysql_get_server_info() in /home/someuser/somesite/wp-content/plugins/nextgen-gallery/admin/install.php on line 43 Otherwise...

View Article

wdlyons on "Displaying output from one table based on the info of another"

Hi, I am having difficulties getting it to work. My interpretation is as follows Am I correct in assuming that the code I use is Where $tablename is the person table (a)and $tablename2 is the marriage...

View Article


bcwp on "Displaying output from one table based on the info of another"

You're pretty close. First, I'd encourage you to use more descriptive variable names rather than generic ones like $table_name and $table_name2. It's easy to get confused with non-descriptive names....

View Article

wdlyons on "Displaying output from one table based on the info of another"

Thank You. You guys are Jets. Worked like a charm. Just wonder if I could push the friendship that one more step. It was mentioned about "cleaning the values" prior to output. What method would you...

View Article


bcwp on "Displaying output from one table based on the info of another"

Glad we could help. With regards to output, in the examples you've provided so far you should be fine displaying the data exactly as it appears in the database (unless you need to reformat it for some...

View Article

vtxyzzy on "How to select posts from certain category with MySQL?"

I think this is what you want: $curauth = $wp_query->get_queried_object(); $cat_id = 32; $auth_id = $curauth->ID; $sql = "SELECT COUNT(*) FROM $wpdb->posts p JOIN $wpdb->term_relationships...

View Article

insert duplicate entries"">caldar23 on "$wpdb->insert duplicate entries"

Thanks, I'll look into the shortcode and check that out. Thanks!

View Article
Browsing all 5527 articles
Browse latest View live