Posts

php - How to pass grid data to another page? -

i new php. have page containing grid. users can edit values in grid. when click submit button, pass of grid data action page. however, don't know how this. please give inputs. for eg. if form this, can give name text below. <form name="form_submit" method="post" action=""> <table> <tr> <td><input type="text" name="title[]" /></td> <td><input type="text" name="text[]" /></td> </tr> <tr> <td><input type="text" name="title[]" /></td> <td><input type="text" name="text[]" /></td> </tr> <tr> <td><input type="text" name="title[]" /></td> <td><input type="text" name="text[]" /></...

wordpress disable image being viewed in gallery -

i included code image attachment template (image.php) file display gallery of thumbnails current post. function show_all_gallery_thumbs() { global $post; $post = get_post($post); /* image code */ $images =& get_children( 'post_type=attachment&post_mime_type=image&output=array_n&orderby=menu_order&order=asc&post_parent='.$post->post_parent); if($images) { $thumblist = '<ul class="thumbnails">'; foreach( $images $imageid => $imagepost ) { unset($the_b_img); $the_b_img = wp_get_attachment_image($imageid, array(64,64)); $thumblist .= '<li class="span1"><a href="'.get_attachment_link($imageid).'" class="thumbnail">'.$the_b_img.'</a></li>'; } $thumblist .= '</ul>'; } return $thumblist; } how detect image bei...

mysql - How to query multiple tables in alphabetical order? -

i can apply query 1 table , want apply 5 tables in temporary table making records in alphabetical order. because has freezing problem more 5000 records , solution applying records when starts "a letter" , after "b letter" .... end "z letter" example amanda anabele . . . zeplin zambia the important thing first letter should in alphabetical order shortly want make temporary table , applying query in alphabeticak order on first letter.. how can make it? update names inner join (select n1.id, n1.name, count(n2.id)+1 cnt names n1 inner join names n2 on n1.name=n2.name , n1.id>n2.id group n1.id, n1.name) s on names.id = s.id set names.name = concat(names.name, '.', s.cnt) if want gather data multiple tables, use union or - if not want/need filter out duplicates - union (which should bit faster). example: select col1, col2 table1 union select col3, col4 table2 if want sorted, way (if remember c...

Magento all products become out of stock after import -

i having frustrating problem magento import. encountered problem after several times of doing import without issue. have 2 different csv files have same content use import products. diffrence 'is_in_stock' column. use import update products quantity of our online store. this csv file sets products out of stock: outofstock-issue.csv this 1 correctly sets product' stock availability: outofstock-issue-2.csv

c# - How to insert image at end of Word document -

i trying insert image word document inserted @ start of document. want insert image @ specific position. there way insert image @ specific position in document? this code range.inlineshapes.addpicture(imgloc, ref otrue, ref ofalse,type.missing);

javascript - show only one series data in High charts in start of drawing/load -

i trying draw 1 series in high chart, have several series data me jsfiddle i want show tokyo series in start, , show user option show more using legend js $(function () { $('#container').highcharts({ title: { text: 'monthly average temperature', x: -20 //center }, subtitle: { text: 'source: worldclimate.com', x: -20 }, xaxis: { categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'] }, yaxis: { title: { text: 'temperature (°c)' }, plotlines: [{ value: 0, width: 1, color: '#808080' ...

In python run command line application show terminal readout -

i have written python application using wxpython sends commands command line application. application runs lengthy commands, when run in terminal gives lots of feedback , readout whilst running. when it's finished can output print or save file, istead of running command line application blind, python open terminal run application can real time view of what's happening, still terminals return values when finished though. section of current code: command4 = "/usr/local/itms/share/itmstransporter.woa/itmstransporter -m provider -u username -p password -v extreme" process = subprocess.popen([command4], stdout=subprocess.pipe, shell=true) result4 = process.communicate()[0] when run not open terminal window, runs blind, can't see going on, commands take long time run, need see whats going on in real time in terminal window, how can make so. running on pc mac. kind regards.