Posts

php - My MySQL database is not updating? -

i'm trying update datebase php archive can't: before ask: names db written correctly , if works too... <?php if(isset($_get["ans"]) && isset($_get["name"])) { include("con.php"); $con = con(); $answer = $_get["ans"]; $nam = $_get["name"]; if($answer="firefly" ||$answer="firefly" ||$answer="firefly") { $le=2; $sc=50; $update = "update user set level='$le', score='$sc' name = '$nam'"; mysql_query($update,$con); // header("location: lv1b.php?n=$nam"); } else { echo "try again..." ; } } ?>* this con.php... <?php function con() { $server="localhost"; $user="root"; $pass=""; $con= mysql_connect($server, $user,$pass); mysql_select_db("games"); return $con; } your if statement assigning values, not testing ...

java - Fragment compatibility issues: -

i following tutorial on android website on how have button switch fragment. receiving conflict between android.support.v4.app.fragment , android.app.fragment . tried changing fragments on page 1 or other seams both needed process although isn't possible. to elaborate, first thing has create fragment manager so: fragmentmanager fragmentmanager = getfragmentmanager(); the problem have down line line of code wants android.support.v4.app.fragment while default generated 1 on brand new activity android.app.fragment . tried switching default generated 1 on , gives me different conflict. helpful if show me or link me tutorial present fragment class use. if you're using import android.support.v4.app.fragment; import android.support.v4.app.fragmentmanager; must use getsupportfragmentmanager(); instead of getfragmentmanager(); . source: http://developer.android.com/reference/android/support/v4/app/fragmentactivity.html

c# - Read from a txt file and write to a disconnected recordset -

i have reached point of confusion when researching topic... i have read fixed-length text file , write disconnected recordset in c#. i'm following example: public static recordset createdisconnectedrecordset() { var rs = new recordset(); // create new recordset // add updatable fields rs.fields.append( "name", datatypeenum.advarchar, 20, fieldattributeenum.adfldupdatable, missing.value); rs.fields.append( "country", datatypeenum.advarchar, 20, fieldattributeenum.adfldupdatable, missing.value); rs.open( missing.value, missing.value, cursortypeenum.adopenunspecified, locktypeenum.adlockunspecified, 0); // add data rs.addnew(missing.value, missing.value); rs.fields["name"].value = "anders"; rs.fields["country"].value = "sweden"; rs.update(missi...

Program extraction using native integers/words (not bignums) from Isabelle theory -

this question comes in context isabelle used formal software development in mind more pure maths theorization in mind (and standalone developer's context). seems @ best, sml programs generated isabelle theory, use sml's intinf.int , not native integer type, int.int ; if code_target_int , code_binary_nat or code_target_nat used. investigation of these theories sources seems confirm it's can do. native platform integers may required multiple reasons, including efficiency , case sml imperative program optionally translated imperative language subset (ex. c or ada), relevant when theory relies on imperative_hol theory. codegen.pdf document comes isabelle distribution, did not it, except in suggesting first of options below. options may be: not using isabelle's int , nat , re‑create new numeric type scratch, use code_printing commands (with type_constructor , constant ) give native platform representation , operations (implies inclusion of range limitation...

Uploading Image to Google Form Errors -

i've been struggling this. very new writing code, bear me. i want create form file submission parsers responses google spreadsheet , places file specific folder in my gdrive, not uploader's gdrive . i've have tried debugging , asking around, no 1 can seem figure out error or how place uploaded files own folder, can have access them/see them. here link code: https://script.google.com/d/appid/edit?usp=sharing i can't figure out what's wrong. here can offer simple script copy fileupload in folder wish , write value textfield sheet. it written simple can give first steps. copy code in scripts file , run google apps script. before run scripts have change in code uloadfolder id , id sheet. find own id's when browse these elements in googledrive , read id's urlpath in browser. function doget() { var app = uiapp.createapplication(); var text_lbl = app.createlabel('text: *'); var text = app.createtextbox()....

python - Multiple monitors with Kivy -

i'm looking @ using kivy create program needs display window on each monitor, there way accomplish this? i'd prefer not have single window spanning across. if not, there (good looking, windows/linux) gui toolkit can accomplish this? you can have 2 separate windows running 2 separate kivy apps controlling/communicating each other via osc/twisted/... 1 "app" instance limited 1 app window process. can launch process(subprocess.popen) has new window though.

hyperlink - How to Modify url in php.. i want to add some extra text at the end of output url -

$this->settings[''].'extractvideoid($groups[2]).'&type=download" target="_blank"class="vidscrab"title="download video">download here code , result http://vidscrab.com/getvideo.php?videoid=yyukp7spj1y i want add words after link eg &type=download i need output http://vidscrab.com/getvideo.php?videoid=yyukp7spj1y&type=download please help i think need this $("a").click(function() { $(this).prop("href", $(this).prop("href") + "&type=download"); });