How to fetch some data from one table, in different html divs - php

i am having some problems and i was hoping you will help me.
This is the website i'm testing on: http://rblueberry.epizy.com/
So what i want to do is: for all this boxes on website to fetch from database, but in that order, how can i do that?
Do i need to make more tables for those boxes(articles) or i can do it other way?
Sorry if im not explained very well, i really don't know how to explain it better.

Related

Trying to store search terms to MySQL database and display the 5 most recent queries

I have little experience with mysql, I wouldn't be asking this question if I knew how to actually store the searches in the first place. I basically have a simple search bar that's not a "real search engine" it just redirects you to an already existing page under the name of what you searched using header('location: $term').
Anyway what I'm aiming to do is store the searches in a database and echo the most recent 5 on a different html page. If anybody could help I'd very much appreciate it, thanks!
Sorry if this wasn't explained very well, I'm kind of new to coding.

Integrate searching with Pagination in PHP5

I need to search details. I have written the code for searching ie, the textbox and search button is written in the homepage as well as the "search_result.php".
Pagination without searching is working well. the searching also is working without pagination.
So I guess if the search value from the homepage is stored in the session then may be I'll get that with pagination.
If there is something more. please help me.. :(
You haven't share code so am in dark what your actually doing or whats wrong.
But there is alternative.
I guess you should try: https://datatables.net/
You does not have to worry about the search results and pagination. datatables takes care of it.
Although datatable in this example fetch all records at once, that may affect on performance if your working with large no of records,
in that case go for : https://datatables.net/examples/data_sources/ajax.html
Let me know if it works for you.

Save offline data from Website running javascript

I'm new at php so maybe this question looks dull but i hope everybody can help me.
This is original link
I want to get data from Odds Column as attached picture
When i Choose Crow or Sbobet or Bet365... data of Odds Column will change. I want to collect data of each column and put it into an different array.
I actually don't need a code, just need a solution or recommendation. Thank guys for reading my question.

Generating an image from pre-existing ones?

This is kinda confusing, so forgive me if you don't understand what I am asking. I'm trying to develop my skills and I wanted to move onto images as a next step. I did a bit of searching and I thought a good way to try this would maybe be to generate military ribbon racks depending on the options the user selects.
(See something like this as an example: http://www.ribbon-rack-builder.com/ribbons/build/4)
Now, from looking at the source code I can see that the creator of that website creates a form with all of the different ribbons and allows the user to select the ones they want with checkboxes. This form is then posted to some PHP on the page somewhere.
Being new to the image concept I have no idea what kind of PHP this would be. Could anyone give me an idea of how this website could do this and where I should start should I want to create something similar?
Thanks very much!
First, you'll need to get which checkboxes were checked:
Set the name in the form to check_list[] and you will be able to
access all the checkboxes as an array($_POST['check_list'][])
Second, you'll most likely want to use the GD and Image Functions built into PHP.
There is a lot there, and it can be confusing, so I suggest you do some reading through questions on SO on the subject: https://stackoverflow.com/search?q=merge+image+[php]

Separate a table in different tabs (HTML, PHP, JavaScript, etc)

Let me start off by saying that this is my first time working with PHP, HTML, JavaScript, and JQuery, so my experience is fairly lacking.
I am helping to build a Web Order Processor, which will display orders, dates, customers, and status. I am pulling orders from our database, and displaying them in a table. the Order Processor is being built in PHP.
Now, I've been asked to separate the table into different tabs, which will be labeled after the possible order statuses we have. Sort of like the tabs at the top of a browser.
My problem is quite a big one: I don't know where to start. I've been searching for a couple hours but I don't think I'm using the correct terminology.
Thank you all in advance. Any help would be appreciated, even if it's just pushing me in the right direction by giving me a couple things to search for.
I would suggest start with this: http://jqueryui.com/demos/tabs/
First make sure your tabs are working with the simple static content
Second upgrade it so every time tab switched, it loads content from the database.
Depending on a tab you can customize request to the server with the status=(NEW,PROCESSES,REFUND ...), and do the query and return a proper data for the tab.
Hope it helps

Categories