I have been searching for a Vertical Text Slider OR Vertical News Ticker, exactly like this one:
http://www.tradekey.com/
(scrolling the latest buy/sell offers in the middle)
I found few tickers but I still can't figure out how do I make it to get data from one specific MySQL table & display them randomly.
Someone point me to right direction or provide me any link where I can found any easy to configure news ticker.
UPDATE-171212:
Well I checked the ajax folder, there are some files getting user info from db.
But it always displays the country info from the member profile, by ignoring what is mentioned in the "buying/selling lead" info.
its using $country, & its same in both member profile info table & buying/selling leads table.
What if I want it to pick from buy/sell leads, & if no country is mentioned then get country data from member profile.
For Example:
http://www.tradeglobus.com (import export trade leads in the middle)
I have to correct country info issue in this one.
Look into setInterval mixed with AJAX to update a list of the items you want to display. Then look into Jquery to add a ticker effect.
To elaborate, create a file that fetches the items from a DB. Then use an ajax request to get that list at regular intervals. From there it just takes a Jquery plugin or equivalent to display the list in ticker form
Related
The title may be a bit awful as I'm really not sure how to describe what I'm trying to achieve without using lots of words.
I'm currently building an events website. This website has the option for users to create their own events which can be added to a big list of upcoming events that other users have submitted.
What I want to do is be able to have a user create an event and have the details of the event stored in an SQL database (which I've successfully done), I want to be able to then have a large list of events on a separate page the details of which are pulled from the server dynamically using PHP and SQL (I've also successfully done this). The part I am struggling with however is being able to create unique pages (or a single dynamic page) that displays a more detailed look at the event, such as age restrictions etc etc, which cannot be displayed on the big list which displays all the available events.
I figured that this could be done using a unique eventID, which is something the SQL database already includes and autoincrements with each new event entry. What I'm really not sure about is how I'd be able to pass that eventID through the link to the more detailed page so that the detailed page can be created displaying all of the details of the event.
I'm not even sure if this idea will work at all. Would having a page with a unique URL that is created on event submission that has a more in-depth look at the details of the event be a better idea? How would I go about creating unique URL webpages that correspond to each event on event submission?
I'm really not sure how I need to go about this at all, so I need some help and pointing in the right direction.
Here's a kind of TLDR:
1) Events website
2) All events on the website are displayed on a single page that has minimal detail about each event (title, date, location) BUT has a link to a page that displays the event in more detail.
3) User can select an event from the list and click on that event's unique HTML link to more detailed page
4) More detailed page displays event in more detail by pulling event's unique information from the database
Feel free to ask any questions at all as I know this probably isn't the easiest idea to get across
When creating the links from the general listing page to the detail page, simply include the id in the link. For example:
<A HREF="mysite.com/detail.php?id=3>Big Event</A>
In detail.php then, you'll find the id in $_GET['id'].
I want to make a website using following sharepoint api: http://zurb.com/forrst/posts/PHP_Read_and_write_to_SharePoint_Lists-PRF
I can easily retrieve my list, I can color or do whatever to that information in that list, but I want to get the current step of the workflow and make a red box under it and after is done a green box around it with arrows between them, to show they are connected. Is this something that can be done using PHP?
Thank you.
When you attach a workflow to a list it will create a column in the list with the same name as the workflow. It won't appear in List Settings, but will show in the list of fields to include in the list view. To get the stage(In Progress, Completed, etc.,) of a workflow is basically the same as reading any other column in a list.
The title may be a little vague, but I'll try to explain the concept here.
I have a site in which daily new items ( sports games ), get published, now what I would love is that my users would be able to click on a certain game and get redirected to a new page with more detailed information about that one game.
The thing is, creating every php page seperate for every game each day is a lot of work because also a lot details in the page need to be changed.
Now I was wondering if it is possible in some kind of way that there's a script that reads, OK you have 5 games today, page 1 = id number, title of the page is the matches name, extra info is the info that stands with that id.
I don't know how else to explain this so I hope this was good enough.
Thanks for your time and reading this :)
You can use requests to select the page (the best way is to use $_GET as suggested by gbestard) to select the ID. Then you can have some static content (like url or short article or link to screen shot or something similar) stored in your database under the same ID as the game, and upon clicking on the link to the game, the page is reloaded and you populate it with the new content, that was stored in the database.
You can even store entire pages with static html (as in article or short game description in your case) content and etc in your database and simply call them to populate a div.
If you have something like a custom made admin section of your site, you can add a page to edits it with a js plugin like ckeditor and the creation/editing of articles will be a piece of cake.
It's pretty much a standard case of a CMS(Content management system).
I'm coding my first eCommerce site and in the planning process I've run into a problem. Basically on the product screen the user is given 3 drop down menus for style, color, and finish. Now based on these I want to display the relevant information from the database to display; price and description. I'm not sure how to go about doing this. Is there a way to dynamically query the database without refreshing the page or using a submit that requires more user interaction?
You need to use ajax ajax can load the info you want.
Here is an exmaple of what you want with selection box, with a tutorial.
http://www.w3schools.com/php/php_ajax_database.asp
but then you need to replace the sql query with the query you need so it sends back the information of the product with the right style, color and finish.
I have arrived at a wall in my project. I am trying to create a way that a user can add a url to the database (associated with there user id) and then that can be read as a feed (using SimplePie).
I am trying to make it so that the name of the feed (when they add a feed they give it a name) is displayed in a list. And then when they click on the name a drop down appears under the name with all the latest articles from that feed in it.
Does anyone know a way that I can build an order-able list from the urls associated with the current logged in user id and then create the drop down for each individual list item that displays the lastest articles in the drop down.
So far I have managed to create the form for saving to the database and I have created a drop down. I just don't know how to create it all dynamically (depending on how many results are returned depends on how many items are displayed).
Thanks in advance!