Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

store html value in the sqllite 3 php

Ads

 
 

Share on Google+Share on Google+

jo mirza
store html value in the sqllite 3 php
0 Answer(s)      4 years and 9 months ago
Posted in : PHP

i have a php script that will parse html page content link and view but i need to know how to store this content in the sqlite3 database any suggestion ?

include_once('simple_html_dom.php'); //PHP Simple HTML DOM Parser library  
$html = file_get_html('www.website.com');  

// Find all article blocks
foreach($html->find('div.postbody') as $article) {
 $item['details'] = $article->find('div.content', 0)->innertext;
 $articles[] = $item;
}
print_r($articles); 

try {

$db = new SQLite3('db/mysqlitedb.db');
$db->exec// what type of table should i create
$db->exec// how tell db to store html content from $articles
$result = $db->query('SELECT bar FROM gg');
var_dump($result->fetchArray());

    /* Close connections to Database */
    $db = NULL;
}

catch( PDOException $e ) 
{

    /* Print Error-Messages */
    echo $e->getMessage();
}
Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
store html value in the sqllite 3 php
store html value in the sqllite 3 php  i have a php script that will parse html page content link and view but i need to know how to store...'); //PHP Simple HTML DOM Parser library $html = file_get_html('www.website.com
To store value in session & display it
To store value in session & display it  Hello..I m trying to run the following code which will store the session of a book selected on click...; <meta http-equiv="Content-Type" content="text/html; charset=UTF-8
Advertisements
checkbox value in php
checkbox value in php  In my HTML,PHP form ..we have a check box that is working fine. But anyhow i am not able to get the value of it. Can anyone suggest how to get the value of checkbox in PHP
Populate value into HTML page
Populate value into HTML page  Hi, How to populate values from one html page table to another html page..? Thanks
What is HTML 5 and CSS 3
What is HTML 5 and CSS 3 HTML 5 and CSS 3 are the standard versions... supports animations along with 2D/3D Transformations features. Using CSS 3 and HTML.... That is the reason, why HTML 5 and CSS 3 are widely used for both web
connect 3 frameset to other 3 different frameset in html
connect 3 frameset to other 3 different frameset in html  first display the 3 frames in one html page after login it will display 3 differnt frame
connect 3 frameset to other 3 different frameset in html
connect 3 frameset to other 3 different frameset in html  first display the 3 frames in one html page after login it will display 3 differnt frame
php array sort by value
php array sort by value  an example to sort the array by value
PHP/HTML/AJAX Question
PHP/HTML/AJAX Question  I have a PHP/HTML program that sends a parm... it as a HTML var but I need it as a PHP $var. How do I get it to into a $var and where should the code to do it be (in the .js or as a html or PHP statement
include php in html
application.. 1) includes the HTML tags and designing. And second includes the PHP... that PHP file into my HTML file? Can anyone share the code for including PHP into HTML page.   This is how you can include a PHP file into HTML <
store value in checkbox from gridview
store value in checkbox from gridview  Please check the error...="Content-Type" content="text/html; charset=UTF-8"> <title>Books<...; <input type="submit" value=" DELETE "/>&nbsp;&nbsp
HTML to php form
HTML to php form  Hi, How I can submit the HTML form data to PHP Script? Give me example code. Thanks   Hi, Please see the following tutorials: PHP Form PHP email form Thanks
to store data entered in html page
to store data entered in html page  i want to a job site, in this site user can registered by a form.. in this form there are his information... i use two forms for it 1)for user name,password, submit button 2)for text field
how to store jtable value in multidimensional array?
how to store jtable value in multidimensional array?   i want to store the value of jtable in multidimensional array,with type double. how to store jtable value in multidimensional array
how to store jtable value in multidimensional array?
how to store jtable value in multidimensional array?   i want to store the value of jtable in multidimensional array,with type double. how to store jtable value in multidimensional array
store dynamic generated textbox value into database
store dynamic generated textbox value into database  sir, how do i store dynamically generated textbox value into the database thanks in advance
php array loop key value
php array loop key value  How to use Array key value loop in PHP
Struts Html Date value - Struts
Struts Html Date value  How to fill date value using JavaScript Calender automatically without typing in Struts Html Text field  Hi friend, http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml
assign value problums in php
assign value problums in php  I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem
php,javascript,html
php,javascript,html  Hi, thank u for answered the previous question. one more question: when i register the student details, unique register number should be created and incresed automatically for every student based
Store combo box value - Development process
Store combo box value  Hi , this is my code. Here wen i click submit button combo values are stored like 1,2,3... but i want to store value . plz..."); arr[3] = new Array("Mercedes","Toyoto","Maruti","Innovo"); function change
Code to store SubCombo box value - Development process
Code to store SubCombo box value   Hi ,In the following code i want to store SubCombo box name instead of value for Department Field. Add Data var arr = new Array(); arr["Select"] = new Array("-select-"); arr["Dkn
PHP HTML Form
PHP & HTML Form: In the current tutorial we will study about PHP and HTML form, we will see how to send HTML . We will combine one html file and PHP... a HTML form and send the data to PHP file get method. 
PHP related - how to explot a string with commas and store into two different variables?
PHP related - how to explot a string with commas and store into two different... 123456,54321,56789,98765]'. I would like to extract the first value after the tubelist, and store '123456' into a variable. Next i would like to store the rest
PHP Variable Global
PHP Global Variables PHP Global variable are the variables which can be used anywhere in the program. It is used to store the value inputted by the user. We... script.   Example 3 : <?php function universal
Store image from html img tag into mysql db using java
Store image from html img tag into mysql db using java  Hi. How to get the image displayed in the < img > tag of HTML and store it in the mysql database using java? Thanks in advance
I want to store the value of local variable into Global variable
I want to store the value of local variable into Global variable    <%=cnt%>=x; is it a valid Statement
Array Add Key Value PHP
PHP array add key and value In PHP, key and value plays important role..., or boolean value. Syntax of PHP array is "index=>value", this indices... [Two] => 2 [3] => 1 )  Example 2: <?php $array=array
HTML Forms and PHP
Here we would integrate the HTML forms and PHP by creating HTML forms... in HTML and call the file, just like: 1. 2. 3. 4. 5
Execute PHP in HTML
Execute PHP in HTML In this tutorial you will learn about the different ways of executing PHP code into HTML pages. In general, we have seen that a page... into it… 1. For HTML AddType application/x-httpd-php .html 2. For HTM
upload value to php server in getmethod in j2me
upload value to php server in getmethod in j2me  Dear Team, I... getting that value i means captured decoded value i want to that value in get method to php server in j2me can you give some tips for me... Thanks and Regards