UrbanPro

Learn WordPress from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Hi how to insert the data in database by using WordPress?

Asked by Last Modified  

Follow 10
Answer

Please enter your answer

Learn Professional Web Designing, Graphic Design, Wordpress

<?php require_once('/wp-config.php'); global $wpdb; if(isset($_POST)){ $wpdb->insert( 'wp_post_job', array( 'organizationname' => $_POST, 'post' => $_POST, 'publishfrom' => $_POST, 'publishupto' => $_POST, 'qualification1' => $_POST,...
read more
<?php
    require_once('/wp-config.php');
    global $wpdb;

    if(isset($_POST['submit'])){
        $wpdb->insert( 'wp_post_job', array( 'organizationname' =>
        $_POST['organizationname'], 'post' => $_POST['post'], 'publishfrom' =>
        $_POST['publishfrom'], 'publishupto' => $_POST['publishupto'],
        'qualification1' => $_POST['qualification1'], 'qualification2' =>
        $_POST['qualification2'], 'qualification3' => $_POST['qualification3'],
       'qualification4' => $_POST['qualification4'], 'experience1' =>
        $_POST['experience1'], 'experience2' => $_POST['experience2'],
       'experience3' => $_POST['experience3'], 'training1' => $_POST['training1'], 'training2' => $_POST['training2'], 'training3' => $_POST['training3'],
       'training4' => $_POST['training4'], 'training5' => $_POST['training5'] ),
        array( '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s', '$s' ) );
    }
?>

<?php
/*
Template Name: Form
*/
?>
<?php global $pc_theme_object; /* Reference theme framework class */ ?>
<?php get_header(); ?>

<form action="" id="postjob" method="post">
    <table>
        <tr>
            <td><label for="organizationname">Organization Name:</label></td>
            <td><input type="text" name="organizationname" id="organizationname" value="/></td>
        </tr>
        <tr>
            <td><label for="post">Post:</label></td>
            <td><input type="text" name="post" id="post" value="" /></td>
        </tr>
        <tr>
            <td><label for="publishfrom">Publish From:</label></td>
            <td><input type="text" name="publishfrom" id="publishfrom" /></td>
        </tr>
        <tr>
            <td><label for="publishupto">Publish Upto:</label></td>
            <td><input type="text" name="publishupto" id="publishupto" /></td>
        </tr>
        <tr>
            <td><label for="qualification">Qualification:</label></td>
            <td><input type="text" name="qualification1" id="qualification1" /></td>
            <td><input type="text" name="qualification2" id="qualification2" /></td>
            <td><input type="text" name="qualification3" id="qualification3" /></td>
            <td><input type="text" name="qualification4" id="qualification4" /></td>
        </tr>
        <tr>
            <td><label for="experience">Experience:</label></td>
            <td><input type="text" name="experience1" id="experience1"/></td>
            <td><input type="text" name="experience2" id="experience2"/></td>
            <td><input type="text" name="experience3" id="experience3"/></td>
        </tr>
        <tr>
            <td><label for="training">Training:</label></td>
            <td><input type="text" name="training1" id="training1" />></td>
            <td><input type="text" name="training2" id="training2" /></td>
            <td><input type="text" name="training3" id="training3" /></td>
            <td><input type="text" name="training4" id="training4" /></td>
            <td><input type="text" name="training5" id="training5" /></td>
        </tr>
        <tr>
            <td><button type="submit" name="submit">Submit</button></td>
        </tr>
    </table>
</form>

<?php get_footer(); ?>
read less
Comments

Through Cpanel.
Comments

Web Developer

Go to your cpanel then find phpmyadmin in search bar. After that click the phpmyadmin after that click your database (you can find your database name in your wp-config file). Now you can insert the data.
Comments

Adobe Certified , Microsoft Certified Trainer with 9 years of experience

You need to follow the dashboard instructions for example when you will create a new post what ever content you put, it all automatically goes to the database of the wordpress.
Comments

Trainer

Unless you are a custom plugin developer, you don't insert data directly in database. You use WordPress dashboard.Yoursite.com/login.
Comments

Digital Marketing Strategist | Website Developer Professional | Google Adwords Certified | Blogger |Trainer

Go to cpanel, click on database tab under that click on my SQL, there you will find the tabs of Tables and Databases, click on the database and insert the data.
Comments

IT professional 11 years of experience in IT industry

Under the cpanel you have to click on database tab under this tab click on MySQL, there you will find the tabs of Tables and Databases, click on the database and then insert the data.
Comments

using some sql queries and "insert "
Comments

Trainer

using wp_db query
Comments

View 7 more Answers

Related Questions

Is WordPress better for designing a website?
WordPress is best for web designing. Because You can create powerful, polished sites with WordPress without learning a lot of coding. Once you’re comfortable with WordPress, you can do in a week or a weekend...
Naina
How to sell products online through website using word press along with handling payment gateway?
Woo Commerce is the popular plugin in wordpress for selling product and for the payment gateway integration there are many plugin available for Indian payment transaction like bildesk, payu, paytm, ccavenue etc.
Siddhi
0 0
9

Which is the best training centers to learn real time digital marketing in hyderabad?

I am not from Hyderabad but i would like share few things to make digital marketing institute search and selection easy and fact. Follow following steps to select your dream digital marketing institute...
Chaitanya
Will an email marketer need to learn how to use wordpress?
No, if you want to market through the website it should be.
Tina

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Wordpress
Wordpress: It is CMS which is based on Php. How To Download Wordpress? 1. First Go to Google and Type Wordpress Download then click a link that is https://wordpress.org/download/ Then click...

What is M.S.Project ?
MICROSOFT PROJECT contains project work and project groups, schedules and finances.Microsoft Project permits its users to line realistic goals for project groups and customers by making schedules, distributing...


WordPress Website Design Training Program Syllabus
What You will Learn in WordPress Website Design Training Program Introduction to CMS and WordPress Installation of WordPress Setting up WordPress on Local and Remote Server WordPress User...

How to adjust the orders of the posts in word press ??
This topic covers about, how to order the word press posts ?? You created one website, there you inserted some posts in your website, you posted many postes at word press posts, if you want to change...

Recommended Articles

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for WordPress Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for WordPress Classes?

The best tutors for WordPress Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn WordPress with the Best Tutors

The best Tutors for WordPress Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more