Database will return no error, but does not delete the table
Hello
I'm developing an application that uses a database (SQLite). I would like to delete and re-create a table in the database (this table is the kind of a cache).
When I run the following code, I get no error but chrome / ripple-> resources-> "Web SQL", I still see the old structure of the table.
Do you have any idea what the problem might be or how I can solve it?
db.transaction( function (tx) { tx.executeSql('DROP TABLE IF EXISTS users',[],function (tx, res) {}, function (tx, err) {alert(err.message)}); tx.executeSql('CREATE TABLE users (firstname, lastname, phonenumber, emailadd, company)',[],function (tx, res) {}, function (tx, err) {alert(err.message)}); for (var i = 0; i < oPerson.length; i++) { tx.executeSql('INSERT INTO users (firstname, lastname, phonenumber, emailadd, company) VALUES ("' + oPerson[i].Firstname + '", "' + oPerson[i].Lastname + '", "' + oPerson[i].Phonenumber + '", "' + '", "' + oPerson[i].Emailadd + '", "' + oPerson[i].Company + '")'); iUsers = iUsers + 1; } } );
Thank you very much
Roberto.
Hello Roberto,
There was a problem with your INSERT INTO string where you have provided additional value which did not exist as a database column. Change
oPerson[i].Phonenumber + '", "' + '", "' + oPerson[i].Emailadd
TO
oPerson[i].Phonenumber + '", "' + oPerson[i].Emailadd
Here's a complete code that must run:
var db = openDatabase('mydb', '2.0', 'Test DB', 4 * 1024 * 1024); var iUsers = 0; var oPerson = [{Firstname: 'Joe', Lastname: 'Smith', Phonenumber: '1800CALLJOE', emailadd: '[email protected]', Company: 'Photojam'}, {Firstname: 'Jack', Lastname: 'Smith', Phonenumber: '1800JACK999', emailadd: '[email protected]', Company: 'Photojam'} ]; db.transaction( function (tx) { tx.executeSql('DROP TABLE IF EXISTS users',[],function (tx, res) {}, function (tx, err) {alert(err.message)}); tx.executeSql('CREATE TABLE users (firstname, lastname, phonenumber, emailadd, company)',[],function (tx, res) {}, function (tx, err) {alert(err.message)}); for (var i = 0; i < oPerson.length; i++) { tx.executeSql('INSERT INTO users (firstname, lastname, phonenumber, emailadd, company) VALUES ("' + oPerson[i].Firstname + '", "' + oPerson[i].Lastname + '", "' + oPerson[i].Phonenumber + '", "' + oPerson[i].Emailadd + '", "' + oPerson[i].Company + '")'); iUsers = iUsers + 1; } } );
Let me know if there are problems!
See you soon,.
James
Tags: BlackBerry Developers
Similar Questions
-
I tried hard reboot as an Advisor by the forum without success.
The copy starts pulling on the blank paper and stops with flashing orange on Panel saying "on paper." Turning the power off, ejects a regular sheet. I opened the back panel of the printer and alreafy. clean the roller feed tray with a damp, lint.
Please indicate any other ideas to solve this problem in hp printer?
I solved my problem and all facets of my printer are all works fine!
This solution could help other members of the forum. I have connected a usb cable from the printer to the computer and opened the center of hp solutions and open 'Tools' and select 'Align cartridges' computer and this reset my operation of the printer and all resolved my problem reported. I have now deleted the usb cable and the printer is restored to normal wireless operation.
A big thanks to the forum to allow me to think-out - of - the - box for a solution.
-
This is the error message I get after several days of decline in dropbox, my Norton, saying that he was sure loading! I have read and re read most of what people have written, and I have no idea! I'm not a person irritable and can someone put in easy terms what should I do to solve this problem! I read try it who try and read that nothing works. Does anyone know if something works and can it tell me please. Also if someone from Microsoft is reading this why not have you solved this problem?
Backup has encountered a problem during backup of the C:\Windows\System32\config\systemprofile\Dropbox\Camera file will be mailed. Error: (System does not find the specified path. (0 x 80070003))
Hello
You did changes to the computer before the show?
These problems occur because the folders or libraries that you are trying to back up or restore include a reparse point. Analytical points are similar to shortcuts Windows or Unix symbolic links. A point of analysis can be used to point to a file that is moved temporarily to a different drive.
Windows backup or restore 0 x 80070001, 0 x 81000037 or 0 x 80070003 errors
http://support.Microsoft.com/kb/973455/en-usI hope this helps. Let us know if you have other problems with Windows in the future.
-
I had to uninstall iTunes a few months ago and successfully re-installed, but part of my music was missing. At one point, following the instructions on a thread on the forums Apple or Microsoft, I saved my music library on the desktop. Since then, I do not have a library of music on the desktop file. In my looooooong hours trying to fix things, I do not know if I deleted it or what.
Now, I get the message:
"Backup has encountered a problem during backup of the C:\windows\system32\config\systemprofile\Desktop\music file. Error: (System does not find the specified path. (0 x 8007003)) "whenever I have backup my computer.
As I understand it, that does not affect really any other files, they rely on the spot (I think), but
HOW CAN I GET RID OF THIS MESSAGE? or what is the cause? Of course, I could use help in simple English, step by step, as I'm not very techno...
Thank you!!!
Try to be...
SereneJulie
Hi serene,
Thanks for posting your query on the Microsoft Community.
As indicated by the error, this problem appears, when these files/libraries that are saved automatically are not present on your computer. I suggest you to follow the steps below and check, if it can help solve the problem.
- Create missing files that are listed in the error message.
- Exclude files from the files to backup in the backup settings and then include these files in their original location. To exclude folders in other communities and to include these files in the original location, follow these steps:
- In Control Panel, open backup and restore.
- In the section back up , click change settings.
- In the dialog box Configure the backup , click Next.
- In the dialog box that you want to save , click Let me choose, and then click Next.
- Expand data files,
library, expand additional locations, and then click to clear the check boxes folder AppData, Contactsand Research . - Expand computers, expand the element of your system drive (for example, expand Local disk (c)), expand users,
- Click Next, and then click Save settings and exit.
- Backup and restore, click back up now to perform a new backup. The backup operation must complete without errors.
If the problem persists, I suggest you follow the steps in the following article for troubleshooting backup problems.
Windows backup or restore 0 x 80070001, 0 x 81000037 or 0 x 80070003 errors
http://support.Microsoft.com/kb/973455/en-us
Come back and let us know the State of the question, we will be happy to help you. We, at tender Microsoft to excellence.
-
When Im in Lightroom 4 and make an edit in photoshop, after Im done making changes in photoshop that I do a backup, but does not load the file to lightroom. This just started happening. It was working before.
Please go to the location of your Lightroom Catalog, and there you will see the folder for Lightroom Catalog Previews.Lrdata
-
When I import my .wav and my .m2V files still accepts the .wav file but does not load the .m2V file. I created movie DVD 5 discs - still accepted the .wav and for the four remaining groups .m2V files and created 4 DVD discs for these files. What can I do to be free from this error?
OSstatus = error-37
Note that this a Mac operating system error.
http://forums.CreativeCOW.NET/thread/145/865447
Error when importing the file: slash or other character in file name
http://forums.Adobe.com/message/3729601
The build error: slash or other character in file name
http://forums.CreativeCOW.NET/thread/145/868994
The build error: complete startup disk
-
When I try to refresh the Web page it say upload in progress, but does not show the State
When I try to refresh the Web page it say ongoing upload, but does not show the State, so I don't want to close the browser, but I want to know how much longer it will take to complete the download.
Hi Dana
When you download to revel in adoberevel.com, you will not get a time remaining indicator. If please do not close the browser or your download will be completed. Download time is dependent on the type and the size of the file and your connection speed.
Guinot
-
my flash reads the xml, but does not include the php tag...
my flash reads the xml, but does not include the tag php. I want to read my xml dynamically, Please help me.
Code:
Stop();
function randomOrder (targetArray)
{
var _loc2 = targetArray.length;
var _loc3 = [];
for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)
{
_loc3 [_loc1] = _loc1;
} / / end of for
var _loc4 = [];
for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)
{
_loc4 [_loc1] _loc3.splice = (Math.floor (Math.random () * _loc3.length), 1);
} / / end of for
var _loc5 = [];
for (var _loc1 = 0; _loc1 < _loc2; ++ _loc1)
{
_loc5 [_loc1] = targetArray [_loc4 [_loc1]];
} / / end of for
return (_loc5);
} / / End of the function
var randomNUM = '? '. n ="+ random (9999);
_root. LAN = 1;
var homehead;
HomeLink var;
var homelinkwindow;
var homebg;
var homeflash;
lamp var = Array();
promo var = Array();
var promobottom = Array();
var headimg = Array();
f_xmlwork2 = new XML();
f_xmlwork2.ignoreWhite = true;
f_xmlwork2. Load ("banner.php");
f_xmlwork2. OnLoad = {function (success)}
If (success) {}
trace ("XML loaded!');
f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);
f_totalx2 = f_xmlItemx2.length;
trace (f_totalx2);
var _loc12 = 0;
declarar a fundo imagem
homebg = this.firstChild.childNodes [0].firstChild.nodeValue;
f_headimg = this.childNodes [1];
for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2) {}
Juju = f_headimg.childNodes [_loc2];
JJ = headimg.push ({headimg: f_headimg.childNodes [_loc2].attributes.headimg, bgimg: f_headimg.childNodes [_loc2].attributes.bgimg, msgimg: f_headimg.childNodes [_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes [_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes [_loc2].attributes.rightthrow});
}
end for
allpromo = this.childNodes [2];
jjpromo = allpromo.childNodes;
for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++ _loc2)
{
trace (jjpromo, [_loc2],.attributes.title);
JJ = promo.push ({img:. attributes.img jjpromo [_loc2], title: jjpromo [_loc2].attributes.title, url: jjpromo [_loc2].attributes.url, window: jjpromo [_loc2].attributes.window, info: jjpromo [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});
}
end of for
allpromobottom = this.childNodes [3];
jjpromobottom = allpromobottom.childNodes;
for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++ _loc2)
{
trace (jjpromo, [_loc2],.attributes.title);
JJ = promobottom.push ({url: jjpromobottom [_loc2].attributes.url, window: jjpromobottom [_loc2].attributes.window, info: jjpromobottom [_loc2] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue});
} / / end of for
If (f_xmlwork2.loaded is true)
{
headimg = randomOrder (headimg);
for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++ _loc2)
{
trace (headimg, [_loc2], .headimg);
} / / end of for
play ();
} / / end if
}
}
trace (f_xmlwork2);
Stop();
PHP code:
<?
$link = mysql_connect("localhost","rnpac_eco","123");
@mysql_select_db ("rnpac");
$dir = "' banner /"; "
Dir1 $= "" products/img_pro / ";"
Dir2 $= "" universo/activities / ";"
$sql = ' SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6
OF tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER OF RAND()';
$resultado = mysql_query ($sql)
or die ("Nao faith possible realize a consulta.');
$row1 = mysql_fetch_array ($resultado);
$sql = "SELECT tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem. tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_sub_universo tbl_imagem_produto.actividade_id, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE the tbl_actividade.id_actividade = tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade = tbl_detalhe_actividade.actividade_id ORDER OF RAND() ';
$resultado = mysql_query ($sql)
or die ("Nao faith possible realize a consulta.');
$row2 = mysql_fetch_array ($resultado);
' $query ='SELECT * FROM tbl_banner ORDER OF RAND() ';
$resultado = mysql_query ($query);
echo "<?" XML version=\"1.0\"? " >
< home_left_headline >
< bgimg > '. $dir2. ". $row1 ['imagem1'].' < / bgimg >
< / home_left_headline >
< home_flash > ';
While ($row = {mysql_fetch_array ($resultado))}
"" echo "< swf headimg =" ' bgimg = "" msgimg = "" leftthrow = "" rightthrow = "" > < / swf > '; "
}
echo "< / home_flash > ';"
echo "< promotop >
"< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >
"< img class =" "title =" "" url = "" > <! " [CDATA []] > < / promo >
< / promotop > ';
mysql_close ($Link);
you would not see this trace php if your php has been setup correctly. Upload your files and repeat the test.
-
Firefox is not fully load site Barclaycard of authentication. It load regarding the demand for certain letters in my password but does not load the button 'Submit', so I can't continue with my purchase and I switch to IE8 browser to buy anything on the internet. Clues?
This has happened
A few times a week
Is a few weeks ago
Your UserAgent string in Firefox is totally messed up by another program that you have installed and Barclays does not know you use Firefox 3.6.6 - it is probably similar to IE 6.0 on this site.
http://en.Wikipedia.org/wiki/USER_AGENTtype of topic: config in the URL bar and press ENTER.
If you see the warning, you can confirm that you want to access this page.
Filter = general.useragent.
Preferences are "BOLD", a line at a time, and then select reset, right click
Then restart Firefox -
Try reinstalling AE CS6... ask the serial number which I then ask for cs5.5 which I did not... I have version 5, but does not accept the serial number.
There should be a drop down menu where you can select the version that qualifies you for the upgrade activation (CS5 in your case).
-
I downloaded Windows 10 and it deleted my Adobe Acrobat and several other programs. I need to download again, but does not have the product key.
Hi Dean,
To locate your Acrobat serial n refer to find the serial number of your product Adobe quickly
Download Acrobat X, see Download Adobe Acrobat products. Standard, Pro | DC, XI, X
It could be useful!
Rayyan
-
The workspace page, loads, but does not allow the toolbar.
Dear Sir
I use the EPM11.1.2.2. The page of the workspace loads, but does not allow the toolbar with the "Explore". Can someone help me?
Thank you
Perhaps you have not installed and configured the components of the RAF.
See you soon
John
-
I created an interactive navigation along the animated and imported and that the muse.
Animations works very well, but does not have the interactivity.
((par exemple si je clique sur le "bouton à la maison", que le site ne s'ouvre pas dans mon navigateur comme il se doit),)
Anyone have an idea how I can fix this problem?Hello
As you use the edge with muse file you do not put the full URL.
Please try the code below.
Window.Open("..) /.. /arbeiten.html","_top");
Concerning
ViveK
-
Vista recognizes the printer but does not load the drivers - error 0x000003eb
Have even tried to load drivers generic, just to see if it works, no chance. I have on other computers with XP Pro on them and they picked it up, drivers loaded and works very well, but Vista is a different game. Tried plugging USB and gives the same error. Add a printer recognizes it, but it does not load the drivers. I can type the IP address of the printer and use a little from there prints 3 pages of a point, two pages are all kinds of different characters, it waste paper.
Microsoft has looked everywhere and they want me to pay for OS problems out there and I'm not a fact. Program there is the problem that they should back is no Vista how the wrong subject.
Looks like you can have the wrong drivers or not everything you need (drivers, firmware and software) or you do not have the installation in the right order (some require that the printer is connected and on, others require it only and power off, and other required he be attached and powered at a point issue). I suggest you go to the Xerox support page for your printerhttp://www.office.xerox.com/printers/color-printers/phaser-6250/sprt-enus.html and download everything you need for your printer and your version of Vista. Then read the articles about how install and configure the printer (unlike many other devices, printers are not intuitive and are picky about the way in which they are installed and will not work if not done according to the instructions). If necessary, that it includes a toll-free technical support number where they may be able to guide you through the process, or at least make sure that you understand the conditions, steps and the order of the steps to do it right yourself.
I checked on the error and this can mean many things for a great many printers - but I could not find any reference to your specific printer to help us. It is said that it was a mistake than if you have enabled and UAC if off and then back on it would solve the problem - but that sounds not just for me. You really need to discuss this with HP and I don't know that they will have you place and operate at any time. I don't believe technical support is costly (there is no mention of this at all) - but if the fact of telephone support, information on the website is free and they have other means of contact which are free (but are not as effective as a telephone conversation). If you do the research and read relevant articles, I am sure that you can do. No, Vista makes it as easy as XP, but it can still be done.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
I've calibrated without success. It recognizes the plug-and - pkay in PC, but does not save it.
For any question on Windows 7:
http://social.answers.Microsoft.com/forums/en-us/category/Windows7
Link above is Windows 7 Forum for questions on Windows 7.
Windows 7 questions should be directed to the it.
You are in the Vista Forums.
See you soon.
Mick Murphy - Microsoft partner
Maybe you are looking for
-
What is the difference b/w Google search Mozilla Start Page and search bar?
It is not a priority, I want just a general answer. I read that Google renew the license of the Google search bar on the Start Page of Mozilla Firefox, and it is where Mozilla makes 90% of its money, because it is a not-for-profit organization. I wan
-
Defective media control buttons
The button Mute, CD / DVD button, Play/Pause button, stop button, back button and next button ceased to control the windows media player and continue to be light after stopping down my PC. Turning off lighting to help the HWSetup/Toshiba Toshiba do n
-
Work 6 GB/s hard drive IDE oucederomsurlesecondport 3 Gbit/s of the motherboard?
Hi-I have HP Compaq DC7700 Convertible Minitowers desktop for home use.http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/KB/docDisplay/?sp4ts.Oid=3232028 & SPF...I would like to repalce the HDD (Seagate 160 GB, SATA 3 GB/s) as its probl
-
Satellite L655 - 11G PSK1EE - cannot find Win 7 WLan driver
I have reinstall my laptop and install win 7, I can't find the wireless driver (I don't know the model), I try to download from the pilot and he did not work!What should I do?
-
HP Pavilion 23-q110na: HP Pavilion 23-q110na and the user manual wifi signal
Hi, just bought the above and can only get 4 out of 5 bars on my wifi signal strength even though I'm barely 2-3 m away from my Virginmedia Superhub. I have run the Diagnostics network HP, updated drivers Intel Wireless AC-3160 (for a newer version t