Add parent and order feature in php cms [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
We have created a cms in php and we need to integrate the parent and order feature just like in wordpress. How do we do this? Help is really appreciated thanks. http://i.stack.imgur.com/zK5Na.jpg

add two new fields into your database table named parent_id and order where parent_id hold the id of the parent if its parent in its own then add 0 as parent_id to identify that current record is parent.
Now for order field add integer value for that so you can track at which order page or record will be displayed.

Related

rotating list per refreshing page [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Lets say there are three rows of information that loads on a site, and on the site, you only want 1 of the 3 rows to load each time the page gets refreshed, so it probably should be sorted by random or something better. what is the best code for this?
Go for array_rand()
<?php
$arr=array("Offer 1","Offer 2","Offer 3");
$val=array_rand($arr,1);
echo $arr[$val];

Data Excel to MySql [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a Excel File that contain lot of data Like District , Assembly Constituency and Locality.
https://www.dropbox.com/s/ju45ibd913e8j3n/DilliVotes-Election-Data-Locality.xlsx
I want to store these data in database MySQL. I want District add in District Table, Assembly Constituency add in Assembly Constituency table as well as with district id.
Please help Me.
Thanks
Export XLS to CSV and import the CSV to an existing table.

Where joomla stores Page Heading? in DB? What table? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I cannot find where in DB joomla stores the Page Heading from
Menu manager>Menu Items>some menu>page display options>page heading
Joomla stores "page heading" in menu table and field name is params.

Tagging system in php [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I want to impliment tagging system in my PHP project (same like Stackoverflow.com's tagging system). Can I use Lucene? If yes then how to use it in PHP.
Or is there any other jQuery plugin available? Please let me know.
Thanks in advance
You can create a new field in your table named "tags" and when you search on your site
split the tags (lets say all the tags for each topic is separated by a ',') using split function in PHP with the character you used (in our case, comma (',')).
make a loop for each array of tags for each topic (nested loops) and search for a tag that is the same as you have searched.
hope i helped :)

Div auto-increment page for gallery [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i want create a script auto-increment div number every time reach the limit 16 pics.
With "next" - "prev" controls.
example:
if i have 16 pics in database, these remain in page N.1, but if i've 20 pics: 16 pics in page N.1 and 4 pics in page N.2 ...etc
The number of page it depends from the number of the pics in database sql.
Javascript or PHP?
Thank's!
what you are looking for is called pagination.
https://phpacademy.org/course/pagination

Categories