Posts

Showing posts from September, 2014

ios - How to change an app's name displayed in app store before submitting for review? -

my app's status "prepare submission" (way before going live), there must simple way change name, can't figure out on own; help's needed! need change name displayed in app store, not in xcode! to change app name visible on app store need change name on itunes connect on app page below screenshot , above app description there field name need cahnge, change name of app on home screen visible user must change bundle display name in plist .

jquery - Geography quiz, highlighting the right answer -

i'm doing geography quiz maps , image maps. website shows country names , users have choose right location on map. when users click on area message appears telling them if answer right or not. managed that, don't know how highlight answer, mean, if text france, highlight france (that area) when clicking on "show me" button, or in area. any thoughts? i know how highlight clicked area, nothing more. this code: $(document).ready(function(){ $('.item').hide(); $('.current').show(); $('.sorry').hide(); $('.continuar').attr("disabled", true); $('.mapping').click(function() { if ($(this).attr('id') == $('.current').attr('id')){ alert("muy bien"); $('.continuar').attr("disabled", false); } else { $('.sorry').show(); alert("sorry!"); } // telling users if got correct answer }); $(...

android - How to animate simple View to move from bottom to top? -

i need implement type of progress bar. should simple view, moves top bottom infinitely. have concept art feature: https://lh6.googleusercontent.com/-gjj5hsumgyc/vxn_pirtxri/aaaaaaaadmu/r9rp3gbdu3c/w445-h791-no/castro_splash.gif yellow zone should move bottom. how can animate this? use method: private void moveviewtoscreencenter( view view ) { relativelayout root = (relativelayout) findviewbyid( r.id.rootlayout ); displaymetrics dm = new displaymetrics(); this.getwindowmanager().getdefaultdisplay().getmetrics( dm ); int statusbaroffset = dm.heightpixels - root.getmeasuredheight(); int originalpos[] = new int[2]; view.getlocationonscreen( originalpos ); int xdest = dm.widthpixels/2; xdest -= (view.getmeasuredwidth()/2); int ydest = dm.heightpixels - (view.getmeasuredheight()/2) - statusbaroffset; translateanimation anim = new translateanimation( 0, xdest - originalpos[0] , 0, ydest - originalpos[1] ); anim.setduration(1000);...

c# - Understanding default access modifiers -

i confused access modifiers, thought ask couple of quick questions clarification: is case in absence of access modifiers data members of class, default private , though class internal ? class { int x; } so, int x private int x , class a internal class a ? ========================================= also, why following code not compile? class { protected int x; } public class b : {} as documentation states, classes , structs default internal , members private. the code won't compile because, error message state, cannot inherit less accessible class. in case child class public , parent internal.

java - Android: How to change OpenGLES texture data / bitmap from gallery / camera -

i try reuse android media effects samples , want able change texture data new bitmap camera or gallery pick. no solution far this initial load texture sample : https://github.com/googlesamples/android-mediaeffects/blob/master/application/src/main/java/com/example/android/mediaeffects/mediaeffectsfragment.java private void loadtextures() { // generate textures gles20.glgentextures(2, mtextures, 0); // load input bitmap bitmap bitmap = bitmapfactory.decoderesource(getresources(), r.drawable.puppy); mimagewidth = bitmap.getwidth(); mimageheight = bitmap.getheight(); mtexrenderer.updatetexturesize(mimagewidth, mimageheight); // upload texture gles20.glbindtexture(gles20.gl_texture_2d, mtextures[0]); glutils.teximage2d(gles20.gl_texture_2d, 0, bitmap, 0); // set texture parameters gltoolbox.inittexparams(); } and trouble function : public void changebackground(uri bitmapur...

javascript - How to make custom date sort in datatables? -

i have table column of dates: 2015-03-03 20:14 2015-04-15 20:33 2015-04-20 09:34 2015-04-28 22:18 but cells have no date (i mark - ). when using general sorting function looks like: — — — 2015-03-03 20:14 2015-04-15 20:33 2015-04-20 09:34 2015-04-28 22:18 but need: 2015-03-03 20:14 2015-04-15 20:33 2015-04-20 09:34 2015-04-28 22:18 — — — actually, had sort 2 parameters , set rows without date in end of table. added 2 data attribute (status , date in timestamp format): <tr> <td><span class="label label-warning" data-status="0" data-date="1397562467">status 0</span></td> <td>2015-03-03 20:14</td> </tr> <tr> <td><span class="label label-warning" data-status="1" data-date="1397567321">status 1</span></td> <td>2015-04-15 20:33</td> </tr> <tr> <td><span class="label label-warning...

android - FloatingActionButton Behavior call back not working in DrawerLayout -

i have drawerlayout coordinator layout hosted main content. when create snackbar snackbar.make method, fab hosted in coordinator layout refuses animate. i find odd, because i've used same fab in coordinator layouts aren't wrapped in drawerlayout , animates fine, leading believe drawerlayout somehow blocking call back. i've tried making coordinatorlayout top level view, wrapping drawerlayout, doesn't work. i'm going attempt forking floatingactionbutton behavior class , making updatefabtranslationforsnackbar method public can call myself. i'd rather not this, ideas appreciated. for both activities, snackbar.make call called fragment added dynamically relativelayout id "container". view passed call coordinatorlayout in activity xml id "coordinator_layout". again, works should in first xml, not in second. this default xml other activities, fab animates fine here: <android.support.design.widget.coordinatorlayout android:id=...

How can I retrieve the object into an array in Javascript? -

i'm practicing basic problem in js , new of these languages. want retrieve value , name of property array "temp" object "second" if obj "third" has same property value. can it, when property name defined, how can same if don't know actual property name. may using object.keys() my code this: function where(second, third) { var arr = []; var temp=[]; for(var in second) { if(third.hasownproperty('last')){ if(second[i].last===third.last){ arr=second[i]; temp.push(arr); } } if(third.hasownproperty('first')){ if(second[i].first===third.first){ arr=second[i]; temp.push(arr); } } } return temp; } where([{ first: 'ram', last: 'ktm' }, { first: 'sam', last: null }, { first: 'tybalt', last: 'capulet' }], { last: 'capulet' }); the resulting array : [{ 'first':...

Pushbullet HTTP request -

has tried http request pushbullet? tried postman says http not supported, https allowed. got success https, have seen did http request here : https://github.com/tuanpmt/espduino/blob/master/espduino/examples/pushbullet/pushbullet.ino can tell me how http request pushbullet? header or different api? let me know. we don't allow http requests security purposes. code linked uses https (or @ least port 443 https): rest.begin("api.pushbullet.com", 443, true) it's possible avoid using https creating proxy speaks http client , https server (in case pushbullet api server). you state in question https worked you, might ask why don't want use it?

How to sort arrays with multiple items - Javascript -

what trying sort 3 arrays (array1, array2, , array3) in order 0th term, display following. 1, banana, 2, grapes, 3, oranges. this code, can't figure out how sort way want. var array1 = ["1", "banana"]; var array2 = ["3", "oranges"]; var array3 = ["2", "grapes"]; var array4 = []; function myfunction(){ array4.push(array1, array2, array3); alert((array4).sort(function(a, b){return a-b})); } sort elements based on [0] th index. (array4).sort(function(a, b){return a[0]-b[0]}) function myfunction(){ array4.push(array1, array2, array3); alert((array4).sort(function(a, b){return a[0]-b[0]})); }

java - Stuck with java8 lambda expression -

i have map<integer,doctor> doclib=new hashmap<>(); save class of doctor . class doctor has methods:getspecialization() return string , getpatients( ) return collection of class person . in main method, type: public map<string,set<person>> getpatientsperspecialization(){ map<string,set<person>> res=this.doclib.entryset().stream(). map(d->d.getvalue()). collect(groupingby(d->d.getspecialization(), d.getpatients()) //error ); return res; } as can see, have problem groupingby ,i try send same value d method, it's wrong. how solve this? you need second collector mapping : public map<string,set<person>> getpatientsperspecialization(){ return this.doclib .values() .stream() .collect(colectors.groupingby(doctor::getspecialization...

MySQL query to return MIN() and MAX() of different columns for multiple rows -

i have prices table following layout: id codename price discount timestamp 1 1234 599 50 2015-06-10 00:00:00 2 1234 1099 25 2015-06-11 00:00:00 3 3344 199 33 2015-06-12 00:00:00 4 5565 2499 0 2015-06-13 00:00:00 5 5565 1299 50 2015-06-14 00:00:00 i need sql query give me single row each codename. each row must contain codename, lowest price (along associated discount , timestamp price), latest timestamp (again associated price , discount timestamp) desired output: codename mintimeprice mintimedis mintime latestprice latestpricedis latestpricetime 1234 599 50 2015-06-10 00:00:00 1099 25 2015-06-11 00:00:00 3344 199 33 2015-06-12 00:00:00 199 33 2015-06-12 00:00:00 5565 1299 50 2015-06-14 00:00:00 1299 ...

php - Image Upload Strategy with Clusters And Amazon S3 -

trying sort out strategy deal uploaded images endpoint amazon s3. goal is, upon upload, image visible. however, current way of handling situation end-user uploads image , has wait synced amazon s3 before being able view it. other option temporarily display item locally, since using cluster, doesn't work, because image only, upon upload, available view on cluster server uploaded to. one possible solution rsync files amazon upon upload, reason, rsyncing within script wasn't seeming work. not possible within php script? this how display images. let's image has been uploaded , stored record in shared storage (like db), saved image id , node specific url image temporary placed. hope can access each individual node in cluster. when display image id, go db , pick node specific url, visible across cluster. when image has been uploaded s3, swap db url new 1 on s3 , delete image specific node.

pycharm not inspecting imports correctly -

for directory structure below, pycharm can't seem detect import 1 file another puzzle_project __init__.py snippets __init__.py models.py views.py for models.py code is: from django.db import models pygments.lexers import get_all_lexers pygments.styles import get_all_styles lexers = [item item in get_all_lexers() if item[1]] language_choices = sorted([(item[1][0], item[0]) item in lexers]) style_choices = sorted((item, item) item in get_all_styles()) class snippet (models.model): created = models.datetimefield(auto_now_add=true) title = models.charfield(max_length=100, blank=true, default='') code = models.textfield() linenos = models.booleanfield(default=false) language = models.charfield(choices=language_choices, default='python', max_length=100) style = models.charfield(choices=style_choices, default='friendly', max_length=100) class meta: ordering = ('created',) for views.py code is...

python - While loop function explanation and general input explanation -

i have function goes follows def f(xs): = 0 r=[] while -len(xs) < i< len(xs): i,v = xs[i] r.append(v) return r i wondering if run down on how function working entirely have been trying head around while loop , append function i'm having complete brain fart. also please explanation why input below returns non-terminating execution zs = f([(1, 'a'), (-2, 'b'), (4,'c'), (-2, 'd')]) this function does: reads parameter xs keep looping long condition -len(xs) < i< len(xs) true , meaning, long i more -len(xs) (negative of length of xs list pass f ) and less len(xs) well. inside while loop: a - reads 2 values each element of list xs (presuming a tuple give example of it's use) , assign i , v b - add each v list r ( r.append(v) ) return list r now, concerning example , based on above explanation, don't see how it's non-terminating execution the condition of ...

html - my submit buttons and select button shift all the words on that page to the left -

Image
as can see in picture 1, "rights reserved" centered. in picture 2, words shifted left. here's html code picture 1: <form action="chapter 1.html" data-inline="true" style="float:right"> <input type="submit" value="next >"> </form> </style> <div align="right"> <select id="change" onchange="location = this.options[this.selectedindex].value;"> <option value="introduction.html">1. introduction</option> <option value="chapter 1.html">2. chapter 1</option> </select> </div> and code picture 2: <form action="chapter 2.html" data-inline="true" style="float:right"> <input type="submit" value="next >"> </form> </style> <select id="chang...

c++ GMP mpz_init() causes Segmentation Fault 11 -

i have program receives segmentation fault 11 notice simplicity of main . here entire working script: #include <iostream> #include "gmp.h" void makeprime () { // *********************** variable declaration *********************** // // initilize variables gmp class instances mpz_t l, rand; unsigned long seed; // perform inits create variable pointers 0 value mpz_inits(l, rand); //mpz_init(rand); // calculate random number floor mpz_ui_pow_ui(l, 2, 199); // initilze state object random generator functions gmp_randstate_t rstate; // initialize state mersenne twister algorithm. algorithm fast , has randomness properties. gmp_randinit_mt(rstate); // create generator seed random engine reference gmp_randseed_ui(rstate, seed); /* function: int mpz_probab_prime_p (const mpz_t n, int reps) determine whether n prime. return 2 if n prime, return 1 if n prime (without being certain), ...

Tableau error: Invalid expression, cannot be unaggregated -

Image
i've created tableau tde file i've been using regularly- when when doing totally normal data query view data icon hit "underlying data" tab error message "an error occurred while loading data" offers "show details" button. when button selected get: invalid expression, cannot unaggregated- know why happening? digging on tableausoftware.com forum, found sets lead error. had created couple of sets in workbook prior issue. once sets deleted- things worked again. able see underlying data.

php - Inserting ads into Jetpack infinite scroll loop -

i creating infinite scrolling blog , ads shown every 5 posts. code shown: <?php while (have_posts()) : the_post(); if ($i < 4) { get_template_part( 'content', get_post_format() ); $i++; } elseif ($i == 4) { get_template_part( 'ad_template', get_post_format() ); $i=0; } endwhile; ?> this works fine until jetpack's infinite scrolling takes on , no longer shows ads @ all. i'm wondering if there way can continue show ads though after 7 posts jetpack takes reigns. instead of having 2 different template parts, try adding 'content' template. like so: if ($i < 4) { // actual post // $i++; } if($i == 5) { // ad code // $i=0; } that way should part infinite scroll output. have not tested though can not 100%

javascript - Find and remove object in array by value in nested array -

i have array following structure: var questions = [ {"answer": ["a1", "a2", "a3"] }, {"answer": ["b1"] }, {"answer": ["c1", "c2"] } ] i have array of objects below: var answers = [ {"value": "a1"}, {"value": "a512"}, {"value": ""}, {} ]; for each object in answers (if it's not {} ) find if corresponding value appears in object in questions . if does, update counter variable , remove object questions . how achieve this? try var questions = [{ "answer": ["a1", "a2", "a3"] }, { "answer": ["b1"] }, { "answer": ["c1", "c2"] }]; var count = 0; answers.foreach(function(ans) { var flag = isexists(ans.value); flag && count++; }); console.lo...

C# Convert Object to list<string> -

i trying store dates first row list string. how convert them list string object? public list<string> populatedates(string id) { list<string> dates = new list<string>(); (int = 1; < table.columns.count; i++) { object o = table.rows[1][i]; console.writeline(o); } return dates; } you need add items list. can call tostring convert item string. example: public list<string> populatedates(string id) { list<string> dates = new list<string>(); (int = 1; < table.columns.count; i++) { dates.add(table.rows[1][i].tostring()); } return dates; }

javascript - how to apply a position field to a collection within Meteor mongo? -

my use case i have playlist online music player. sorted natural order when displayed. i put in field track position within playlist. what best way implement collection in meteor mongo db. here current schema songs collection. //schema songs schema.songs = new simpleschema({ trackid: { type: string, label: "track id", optional: false }, title: { type: string, label: "name", optional: false }, duration:{ type: number, label: "duration", optional: false }, festivalid: { type: simpleschema.regex.id, optional: false } }); i able reorder songs, example song @ position 3. move position 1 , other songs position field update appropriately . what starting point this? the easiest way comes mind have collection called playlist field called songs . songs field array of strings. these id's of...

SAS temporary DB2 tables - Creating an index -

i have not found clear answer dba's on one. in db2 warehouse...huge tables. practice temp tables rsubmit, such as... execute (declare global temporary table session.tmp1(task char(9))on commit preserve rows not logged) db2; execute (create unique index session.indexa on session.tmp1(task)) db2; insert session.tmp1 select * connection db2 ( select distinct a.column table1 ... fetch ur ); then when need specific group of values, join it... from session.tmp1 t inner join tablex x on t.task = x.task you notice declared index (a unique index even). question is...if index not exist on original db2 table using build temp table...will created index matter? in addition, sr. analyst advised me if "order by" attribute/column indexing when build temp table, speed join when use additional tables. can confirm of these questions? may seem trivial...but looking tips on speed, when tables hitting extremely large... sr. analyst "order by" remark: ...

javascript - Node-RED Stability -

i've had jump development using mean on server-side. having been thrown in @ deep end node.js, wanted apply new found understanding node-red environment. previous attempts bbb , raspberries working stable version of node-red proved fruitless. is there reason why particular configurations of node-red aren't locked down notable version changes in mongodb example? question prompted previous frustration , today's bug replicated on bitnami mean stack on windows. https://github.com/node-red/node-red/issues/565 i can try , roll-back suggested versions of modules in package.json seems extreme. clarification appreciated. my dead-in-the-water editor error today: c:\bitnami\meanstack-3.0.2-0\projects\node-red>node-red welcome node-red =================== 19 jun 18:36:16 - [info] node-red version: v0.10.10 19 jun 18:36:16 - [info] node.js version: v0.12.2 19 jun 18:36:16 - [info] loading palette nodes 19 jun 18:36:17 - [warn] ---------------------------------------...

c# - Obtaining Sample Queries Efficiently from SQL using Entity Framework in Visual Studio -

i'm working massive database, 50gb in size. want iteratively process rows of database using entity framework provided in visual studio. current attempt follows (and fails miserably): using (var db = new context()) { var test = (from b in db.x orderby b.id select b.y); (int = 0; < 100; i++) { var sample = test.skip(200*i).take(200); operateon(sample); } } when code ran, past forming test, cannot form sample variable. sql times out, , visual studio gives following complaint: unhandled exception: system.data.entity.core.entitycommandexecutionexception: error occurred while executing command definition. see inner exception details. ---> system.data.sqlclient.sqlexception: timeout expired. time out period elapsed prior completion of operation or server not res ponding. ---> system.componentmodel.win32exception: wait operation timed out is there better way take rows using entity framework, , if so, how do it? ...

python - How to test if a view is decorated with "login_required" (Django) -

i'm doing (isolated) unit test view decorated "login_required". example: @login_required def my_view(request): return httpresponse('test') is possible test "my_view" function decorated "login_required"? i know can test behaviour (anonymous user redirected login page) integration test (using test client) i'd isolated test. any idea? thanks! sure, must possible test in way. it's not worth it, though. writing isolated unit test check decorator applied result in complicated test. there way higher chance test wrong tested behaviour wrong. discourage it. the easiest way test use django's client fake request associated url, , check redirect. if you're using of django's testcases base class: class mytestcase(django.test.testcase): def test_login_required(self): response = self.client.get(reverse(my_view)) self.assertredirects(response, reverse('login')) a more complicated...

graph - Finding least Common ancestor in Binary Tree with o(h^2) for a change -

before thinking of writing function fulfill it, try think of algorithm. h denoted maximal distance between main parent given node. should run in o(h^2) means should easier come such algorithm, find myself o(h) algorithm. confused when comes understanding if doing h^2 operation. use lead. the simplest algorithm lca run in o(h^2) — make 2 nested loops, 1 running on ancestors of first vertex, other running on ancestors of second, , inside loop compare them. a1 = // first given vertes while a1 != nil // assume root's parent nil a2 = b // b second given vertex while a2 != nil if (a1 == a2) compare current-best solution a2 = a2.parent a1 = a1.parent so, go first given vertex, go through ancestors. each ancestor a1 , go second given vertex root , check whether meet a1 vertex on way.

c - Cannot print out data in a binary tree -

actually, here asking debug. so, if don't have interest in helping me debugging, can stop here go back. however, believe code contain small bug because have tested part of it. i have little test myself. code work when commented out function pinrtonenode() , mean input data binary tree. bug in printonrnode() function. and also, compile time error is c:\users\...\local\temp\ccwcuby.oprompt c:\users\...\.../bst.c:45printonenode collect2.exe:error:ld returned 1 exit status by way, bst.c source code in so here code: #include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct bstnode{ struct bstnode* leftchild; struct bstnode* rightchild; char data[20]; }bstnode; void prompt(); //this function prompt user selection everytime //after input data( inputdata() ) or print data( printonenode() ) void inputdata(); void printonenode(); bstnode firstnode; bstnode* mynode=&firstnode; //i don't kno...

user interface - How to use colors from android standard themes? -

i want create custom controls , stylize them according current theme. how can access colors , drawables in standard system themes? if you're referring retrieving colors colorprimary or colorprimarydark theme dynamically, let's theme looks like <style name="apptheme.orangetheme" parent="theme.appcompat.light"> <item name="colorprimary">@color/orange</item> <item name="colorprimarydark">@color/orangedark</item> <item name="coloraccent">@color/orangeaccent</item> </style> you can access primarycolor styledattributes using method public static int getprimarycolorfromselectedtheme(context context) { int[] attrs = {r.attr.colorprimary, r.attr.colorprimarydark}; typedarray ta = context.gettheme().obtainstyledattributes(attrs); int primarycolor = ta.getcolor(0, color.black); //1 index primarycolordark //default value primarycolor set black if...

javascript - Modulo operator -

9%4 = 1 1%4 , answer 1 2%4 , answer 2 answer found. - closed. the meaning of mod take remainder after doing division. 1 fits 0 times in 4, remainder 1. here wikipedia definition explains in little more detail: in mathematics result of modulo operation remainder of arithmetic division. known, arithmetic division of 2 integers produces quotient , remainder.

Filtering elements in mongodb collection with ruby -

i want children names female in collection in mongodb using ruby : the elements in collection this: [ { "name" => "john", "children" => [{"genre" => "male", "name" => "rick"}, {"genre" => "female", "name" => "mary"} ] }, { "name" => "richard", "children" => [{"genre" => "female", "name" => "vicky"}, {"genre" => "female", "name" => "mary"} ] }] when execute: collection.find({"children" => {"genre" => "female"}}) i mongo::operationtimeout: timed out waiting on socket read. moreover, don't want list of parents, list of different female children. if use pure ruby, with: collection.find({}).map { |d|...

plugins - Eclipse extension point for Open Resource/Open Type dialogs -

is there extension point can customize search behavior of these dialog boxes? or better off making extensions overrides hotkeys dialog boxes subclass filteredresourcesselectiondialog ? these dialogs don't support customization. open resource openresourcedialog (an internal class) derived filteredresourcesselectiondialog . open type opentypeselectiondialog (again internal) derived internal class filteredtypesselectiondialog in turn derived filtereditemsselectiondialog .

c# - Data Flow Task with variable source -

in ssis package need put content of 2 sql queries in 2 sheets of excel file. results of 2 queries in 2 object variables, i'm wondering if can use data flow task this. issues : i don't know columns have (number of columns, names of columns), query created @ moment of execution set @qry = 'select ...' exec(@qry) i have same problem excel file, can't have precise template, know excel file we'll have 2 sheets. possible? if not, there way (script task, ssrs...)? as general answer, no, can't ssis. since tagged c# however, can use ole add sheets excel file , add data sheets, http://jayadevjyothi.blogspot.com/2013/01/step-1-create-new-project.html . can done outside of ssis, or if solution needs run inside ssis, can put c# inside script task. // excel file path string excelfilepath = @"f:\excel file.xlsx"; // connection string accessing excel file string connectionstring = string.format(@"prov...

error in eclipse with android:windowElevation -

Image
i have problem eclipse this error appears in console: (\appcompat_v7\res\values-v21\themes_base.xml:146: error: error: no resource found matches given name: attr 'android:windowelevation'.) and further information: description resource path location type unparsed aapt error(s)! check console output. appcompat_v7 line 1 android adt problem method onoptionsitemselected(menuitem) of type mainactivity must override or implement supertype method mainactivity.java /9/src/com/example line 24 java problem method oncreateoptionsmenu(menu) of type mainactivity must override or implement supertype method mainactivity.java /9/src/com/example line 17 java problem method oncreate(bundle) of type mainactivity must override or implement supertype method mainactivity.java /9/src/com/example line 11 java problem method getmenuinflater() undefined type mainactivity mainactivity.java /9/src/com/example line 19 java problem import android.support.v7 c...

php - Insert multiple checkbox into mysql -

so insert multiple checkbox mysql cant figured ou how. selecting database , inserting: $editformaction = $_server['php_self']; if (isset($_server['query_string'])) { $editformaction .= "?" . htmlentities($_server['query_string']); } if ((isset($_post["mm_insert"])) && ($_post["mm_insert"] == "form1")) { $insertsql = sprintf("insert tournamenteams (id, id_tournament, id_team) values (%s, %s, %s)", getsqlvaluestring($_post['id'], "int"), getsqlvaluestring($_post['id_tournament'], "int"), getsqlvaluestring($_post['id_team'], "int")); mysql_select_db($database_searchon, $searchon); $result1 = mysql_query($insertsql, $searchon) or die(mysql_error()); } and created form , inside form theres checkbox. select database records , show on multiple checkbox , want selecting checkboxs want , insert when submit form, submit first checkbox mark....