Board index   FAQ   Search  
Register  Login
Board index php forum :: Database Other Database Engines

Access SQLite information

Do you have questions regarding other database enginges (not MySQL) -- ask here!

Moderators: macek, egami, gesf

Access SQLite information

Postby ArkaneArkade » Tue Nov 22, 2011 2:27 pm

Hey guys,
I'm trying to write a script to deal with some automation features of a media player. I need to edit the data in the database, which is stored in an SQLite3 database.

I've tried using a XAMPP installation to access the file, but that failed, so now I have a script using PDO to access it. unfortunatly I don't really understand anything else to do with it.
Code: Select all
<?php
$dbh = new PDO('sqlite:Videos34.db');
foreach ($dbh->query('SELECT idFile, c07 FROM movie') as $row)
{
   $UID = $row[0];
   $id2 = $row[1];
}

I've run that and can access it, but the information is stored in a myriad of different tables, and I need to take data from loads of them. I know I'm going to need multiple queries, but I don't know how to actually get the data.
For each query there will be only a single row as a result, as they will all be searched via a unique id. I tried just accessing, but get "Catchable fatal error: Object of class PDOStatement could not be converted to string".
All I need help with, is if anybody can tell me how to retieve the data. At most I want 2 fields from each table, but will need to store the answers as string variables. How can I convert the PDOStatement to an array?
ArkaneArkade
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Nov 22, 2011 2:25 pm

herve leger bandage cheapest Herve Leger on sale (

Postby galloway8 » Thu May 16, 2013 3:12 am

The parents of children who are failing in school often guilt themselves about what they may have done wrong, and will agonize about what they can possibly do better. There are many factors that play a part in determining whether or not a child will be a poor student - while parenting is surely one of them, good parents herve leger pants frequently end up with children who, despite all of their sale herve leger trying, still seem to have little to no interest in succeeding at school.
One of the best ways to help a child improve in school is to help them to raise their self-esteem, and improve their discipline skills. Happy, self-assured, and disciplined children rarely do poorly at schoolwork. If you would like to improve your child' self-esteem, consider enrolling them [url=/]herve leger history[/url] in the martial arts. Any of the many martial arts disciplines will suffice - whether you choose judo, karate, or tae kwan do for your child, you are sure to see a rise in their overall happiness and self-esteem. Here are some things to remember when enrolling your poor student in the martial arts.
- Don't Be Afraid to Push - If your child has little to no interest in their schoolwork, enrolling them in an extracurricular activity like martial arts may be a bit of a power struggle. Don't be afraid to push them a bit, and remind them that at the end of the day you are still the parent. Kids who show disinterest in school may initially show disinterest in their martial arts education as well. However, with a little time and plenty of support, they will soon open up to their new activity.
- Offer Incentives - Martial arts is a great activity for kids because it offers incentives in the form of different ranks; for example, a child who cheap [url=/]herve leger bandage dress[/url] continues to excel and practice their karate skills will eventually advance up to the level of a black-belt. You can offer incentives at home as well - for example, a week of success in the dojo results in an extra hour of TV at home.
<br sale herve leger dresses />Parents of kids with failing grades may often feel depressed, and may lack hope that their child will turn it around. Enrolling grey herve leger dress them in martial arts will usually give them that little extra boost of self-esteem they need in order to get their schoolwork back on track. Furthermore, martial arts often improve kids' overall demeanors, making them far more pleasant around the house.
For more information about
martial arts in Miami FL,. please visit

Related articles:


herve leger cheapest Herve Leger on sale (41)

herve leger cheapest Herve Leger on sale (20)

herve leger strapless dress cheapest Herve Leger on sale (30
galloway8
New php-forum User
New php-forum User
 
Posts: 127
Joined: Mon Jan 07, 2013 3:36 am


Return to Other Database Engines

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.