how to make image input into 2 tables at once using Codeigniter3 - codeigniter

I made the data input form and the image input here the image will enter into 2 tables at once t_attch to put the image and the id increments, t_berita in the image column will fill in from id_attch which is incremented in t_attch.

I've solved the problem
by changing in the model Code to :-

Related

How to display multiple columns in another tab but based on a display on a unique value on certain column

I am having trouble displaying the information from another column in googlesheet. I would like to display all the raw data per columns but based on a unique value on certain column. As you can see on column D, those highlighted parts are duplicate values.
enter image description here
I have tried using this formula =UNIQUE(SORT('Supervisor Queue V2'!A2:N,4,TRUE)) but it still display the duplicates on column D. Any help would be appreciated. Thanks in advance.

Why are the values showing up as column headers when I try to create a text table in Tableau?

I am trying to create a text table in Tableau and I want to replicate this below:
However for some reason when I have the player names as rows and distance as columns, the values are showing up as the column header (see below)
Any suggestions?
Thanks
The method you have shown in your question won't work because this is not how Tableau works.
Tableau will automatically aggregate data based on the Dimensions you add to your sheet.
If you want to have a table where the distance is listed for each player, just add the following two dimensions into the Rows, in this order:
Player Name, Distance
You will still get a third column saying Abc, but this is because of how Tableau works. You can set this Abc to become shapes if it helps make your table more user friendly.

Adding a drop-down menu (data validation) after each row of a query result in Google Sheet

First, here is the link to my sheet:
https://docs.google.com/spreadsheets/d/1067N1SAIwpGkMRBZiUv4JW8yDNkozuGt7Fwh6GW-qvE/edit#gid=1742559851
If you look at the tab called "Selection", I have two columns called "Select". All the data in these tables is collected by a query function, except column "Select". In that column, I need to add Data Validation (a simple Yes or No). I want the Data Validation to be automatically added when a new row is created but the query function instead of having to add or remove it manually every time I make some changed. Data collected by the query function is using the two variables on top of the sheet (minimum rating and global buff).
Just to show the step to apply data validation to your whole column, see the following image. Under Cell Range, the image shows Selection!D5:D99, but this is actually set to Selection!D5:D999, it just is truncated due to the size of the text box.
Let us know if this is what you were looking for, or if I've misunderstood your issue.

How do I add images plus caption and credits to a expressionengine blog posting

A blog posting (single entry page) consists of text and images.
The channel “blog” has the field group “blog_entries”. The interesting fields in the fieldgroup are "blog_body" and the three relationship fields called "image1", "image2", "image3"
The images are stored in a different channel called "images". The fieldgroup "image_entries" has a few fields. The image upload field itself, the caption, credits and a few more.
I can combine images and text via the relationship fields.
My problem is: The editor should place the image where it has to be in the content. And he should be able to choose the size of the image (should it span 4,8,or 12 columns) The example below has an image eight columns wide.
Adding an image would add the following code
<div class="eight columns picture">
<div id="copyright" class="text-right">
© Photographer name, Flickr
</div>
<img src="http://placehold.it/700x525&text=[700x525]" />
<div class="panel">
<p>I am the caption. Nulla corned beefsunt ball tip.</p>
</div>
What I want to achive is:
The editor types the text into the blog_entries field within the CP. This field is a textarea with custom HTML buttons.
After two paragraphs of writing he needs an image to ilustrate what he wrote.
He clicks on a custom HTML button,sees the related images, gets to choose the size of the image (should it span 4,8 or 12 columns) and with the next click EE integrates all the neccessary code into the entry.
So the editor has not to worry about the DIVs and all the code but can position an previously uploaded image where ever he wants in the article.
How can I achive that?
I´m not bound to do it this way. If there´s another way or a plugin to solve that problem,I´d like to hear it.
A pretty different approach but one that I've used for this sort of thing in the past is Matrix. You set up the blog_body as a matrix field which is intended to have a row added for each breakpoint in the article (a breakpoint being the insertion of an image, for example). And so the matrix might include 3 columns - one for the image, one for the image width (radio between your three different span widths, for example) and one for "paragraph content".
The challenge here though is that you're using a relationship field for the images rather than having the images as part of the blog entry. Since a relationship field is not, to the best of my knowledge, a fieldtype you can use within a matrix field, that makes it a lot tougher to take this approach. But if you are keep a fixed number of relationship fields - as you suggested, image1, image2, image3, then the first column in the matrix could simply be a radio button for the editor to choose between image1, image2 and image3 to be inserted at this breakpoint. Not a typical use of Matrix, but it would allow you to be relative object-oriented about the editor's control over the content.
Hope that idea helps or sparks new ones!
I frequently use that approach on content rich website, but I generally use default field types. Just a variant of what Jean proposed, the underlying logic stays the same.
Images and text of blogpost in same channel
Determine the min and max number of images you want per post (usually I go with 3)
Instead of just having one body field, one caption field, one image field, and 1 field for your image dimensions (I usually use P&T field), you duplicate the whole lot three times (if you went with 3 images max).
I generally only make the first text + image + image configs fields mandatory
Your clients can now "compose" their own page with one, two or three images, displayed in various ways, but will stay in the boundaries you have defined.
Hope it helps

Display image in NSTableView

Now can I display an image in a table view. The big thing is there will be multiple data sources and each one has a different image. I'm using pubsub to get the data.
Ex:
data source 1
image
-data
-data1
data source 2
image 1
-data 2
-data 3
You need a controller object that is set as the datasource of the table view. It is the job of that single controller to tell the table view what to display. You don't implement multiple data sources for a table view.
Your controller should aggregate the data from the various sources and display it in your desired layout by returning appropriate values from the various NSTableDataSource methods. How you do this is up to you.
Drag the image cell from IB's Library palette into the table column where you want to show images. Then, serve up those images from your data source (singular, as Rob Keniger notes).

Resources