Add Recently Added Posts Etc To Front Page
I am running a forum and now want to create another front / homepage where i can have other stuff related to the site as well as displaying recently added posts from the forum.
I have looked in the database for some sort of date or time that a certain post has been posted but doesnt make sense, it doesnt look like a sort of time and date that is humanly readable?
View Complete Forum Thread with Replies
Related Forum Messages:
HTML, PHP, Front Page
I use Front Page 2000 to devolp my web content (don't hate me I just happen to like WYSIWYG better than physically writing out the code for HTML (a pain in the butt language :-) ) Anyways does anyone know if I can have it save files as .php instead of .html and use them in the web setup. Also another question how do I get a server to load index.php instead of index.htm?
View Replies !
FRONT PAGE + PHP (simple)?
I'm working on litle host site. It will give free hosts to users and accept donations (if any). I have problem with combining site who is build with front page (just html) with who is script. I can not insert code of php in my page without errors.
View Replies !
Update Front Page
Can be written in PHP or PERL. Basically, I'd like to have a server side include on my home page that would include whatever file would display the feed. Then, on the flip side, I'd like some backdoor part where I can go type in a new entry and have it add it to the feed. I know these programs have to exist, but I'm having no luck or I'm finding ones that are 4 years old and are no longer supported.
View Replies !
Add A Link From The Front Page Of Forum
Is there a way I can add a link from the front page of my forum out to my php photo gallery. I would like to make it so instead of clicking on the forum name on the first page which then takes you to a sub forum which then takes you to a thread with the link, To just click on the forum name which takes you to my photo gallery. Next best would be on the front page in the description of the new photo gallery be able to add a link. Which file would I edit to change or add these links? I know I can add a link in the overall_header.tpl but I do not see a way to change the forum name link that takes you from the first forum page to the next.
View Replies !
WordPress Front Page Display Problem......What Should I Do?
I use wordpress's latest version. I found one problem. I set up that from Reading section only 5 post should be visible on my site and also summary size. After click on update button and refresh my browser and see that, my all post are showing on my site's front page and every post also full form. I don't know what's the problem. I am not expert in php.So, I can' fix it.
View Replies !
Make Posts Continue On Another Page?
I'm was wondering how I could make it so that after the first 15 posts it continues on another page for 15 and then another and another? Kind of like the system here. When a certain amount of posts are on a page it creates a page two to continue with the posts..
View Replies !
Page Cannot Be Displayed While Attach Images To Posts
i am including the ability for users to attach images to their posts. Now they can attach more than one image. First time round. the image gets uploaded and everything works fine. second time round though. i get a 'page cannot be displayed' error. The address in the address bar is correct. i just cant see why its working first time and not second. Anyone experienced this before or myt know why its happening?
View Replies !
Displays 5 Posts Per Page In Descending Order
I have been doing up a website which will, among other things, display news that I input into the MYSQL database. I have a working version of this where it just displays 5 posts per page in descending order (the latest at the top of the page) with the page numbering underneath them. Now what I wan't to do is just dispaly the latest 5 posts on the page but, I want to dispaly them so that I can put in a Javascript function to maxamize and minimize each post by clicking on the title. So, I have, ID, Title, Newstype, Author, Post, Date. In my mind I see this as display each of these using the COUNT(*) thing and just subtracting 1, 2, 3, 4 to get the 5 posts I want. I just don't know how to do it.
View Replies !
PEAR DB Not Working With Recently Upgraded MySQL 4.1
I recently upgraded from MySQL 3.23 to 4.1. Now db is not working properly. I'd very much like your help in solving this issue! Here's the code I used to test it: require_once 'DB.php' $db =& DB::connect('mysql://user:password@localhost/dbname'); if (PEAR::isError($db)) { die($db->getMessage()); } $res =& $db->query('SELECT * FROM table'); if (PEAR::isError($res)) { die($res->getMessage()); } The error message I get: DB Error: insufficient permissions I have this username in MySQL 4.1 set up in mysq.user in the old style (pre MySQL 4.1) password. This user has no right in the user table and SELECT rights in the db table for this dbname. This is the way it always worked in the past. This is different, I think, from my previous post about php not working with MySQL 4.12 because I have that working now - php4.4.4 is workingon my machine with MySQL 4.1 yet Pear DB is not. I verified the password by UPDATE setting it using OLD_PASSWORD() and flushing privileges.
View Replies !
Recently Switched Servers - Warning: Missing Argument
I recently switched servers. I believe there is a configuration problem somewhere, nothing has changed with the script, but for some reason I am now recieving the Warning: Missing argument error. Does anyone have any ideas on what might need to be installed to resolve this issue?
View Replies !
Section On Homepage Updating With Ten Most Recently Accessed Pages
Since all my pages are in PHP, I was thinking with each non-homepage page load, I can have a MySQL table be written to adding that document to the top of the list, and then delete the 11th item on the list (keeping the list at ten items). Then on a homepage load, it could read the MySQL table and grab all the links and put them into the special section. Code:
View Replies !
How Do You Do No New Posts/new Posts Function
On forums you have the little image at the side. Usually one is faded which means no new posts and the other is the same image but darker which means new posts. How do you go about logging when people have looked in a forum. Surely you can't have a table with an activity time for every forum as this would be imense.
View Replies !
MySQL Query - Start With The Most Recently Posted And Print Down To The First Posted.
Ok, so I'm trying to get this code: $query = "SELECT * FROM messages"; $result = mysql_query($query); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "ID: {$row['id']} <br>" . "Date: {$row['date']} <br>" . "Poster: {$row['user']} <br>" . "Title: {$row['title']} <br>" . "Message: {$row['text']} <br><br>"; } to query the database, but return the data backwards: i.e., start with the most recently posted and print down to the first posted.
View Replies !
Front End For Php
which software can help me to build system using php... i means user friendly. it can help me to design the system easily.
View Replies !
Front End
I need an assist with a coding problem. I don't have any. I am pretty close to code illiterate, so I need to find someone who can crunch up something for me if possible. Myself and another fellow have a website that we use for entertainment purposes, Virtual Airline, no membership fees and everything is free. On this site, we have a MySql database that users transmit data to through a client side app. However, once it is in there, the user can't view the details. What I would like to find some php coding that would. Have an entry that would be hardcoded for that user Would search by his/her id Return date of entries (last one first) Return Departure of each entry Return Destination of each entry Return Time taken of each entry and a link to the dat file sent for each entry. Is this possible to do with php? Can anyone assist?
View Replies !
Front For Mysql
Are there any good PHP scripts or pre written programs that deal with a complex database? Let me explain: I'm in truck dispatch, and we've moved all tables to mysql and access them on a network via ms access. We will open another office in another city, and will want a "web" database. Now here's what I'm after: Currently one form has various dropdown boxes to pick customer, shipper, consignee, and carrier information. YES, I even have the combos ask (ENTER SEARCH STRING), so all 17000 records do not show up in the dropdown combo boxes. You might enter da for example to get all occurrences of carries that start with da, i.e., Davis Transportation Inc. Currently only about 5 da's. Of course the information in combos are pulled from the customer database via a query. This all being done in ms access with the mysql tables linked. This is a very complex system, and all works perfect on a five computer network. By the way, choosing a shipper in a combobox fills in "ALL" necessary fields for pickup, i.e., Address, contact person, phone number for directions, etc. Can a web database even do something like this? When I migrate to a "Web" database, I am looking for a good PHP script / code / example that can handle this situation of dealing with multiple lookups on one form, and filling in all required information without having to type it in each time. Ok PHP folks can this be done and where are the examples to learn off of? To put it in a nutshell, I know how to populate a table, search, and edit records in php. What I need are example of: Say you are entering a new record, I need a "LOOKUP POPUP TABLE" with a search (enter search string) like above, and a way to select a row, then the "LOOKUP POPUP TABLE" closes and the original record I was entering has certain fields filled in. Liken this to the "Northwind" example that comes with MS Access. In an order example, they have some customer info auto filled in. If all I needed was table / forn / search / edit, I could use DADABIK. And one final question, Do I need a web database, or is it possible to still use MS Access as a front end from another city / state in a client server setup? I know how to network all this but not client / server from a long distance.
View Replies !
Building A Front End
I am building a front end in PHP for a client of mine to dynamically change the "current stock" page help this person be a little more organized, and be able to electronically track their merchandise. Now there is not a lot of merchandise moving through this company, maybe 300-400 items per year at most. So the MYSQL database will not be very large. The kicker is building the forms to query the database. I am coming up with a ton of different ways to filter results. By item category, creator, date created, size, sub category ... this list goes on and is getting longer. Do customers actually use filtering to that extent? I mean at any given time there could be anywhere from 300 - 600 unique items for sale on this site, so to filter them is a good thing, but when does it reach the point where it is too much?
View Replies !
Front End For My E-commerce
I need to create the front end for my e-commerce store. I would appreciate your thoughts on how this could be accomplished using PHP and HTML. At this time, I do not want to use a database. This store will sell license plates, license plate frames, key chains, etc. There are many combinations of vehicle manufacturer, vehicle make, license plate type, etc. What I want to do is have the customer scroll down the page where each line looks something like this: Toyota 4Runner Dual Emblem Plate Chrome Emblem- chrome plate D.4RU.CC $29.95 Add Item To Cart The field names in order are: Manufacturer/Make Plate Type Plate Description Stock Number Price If the user wanted that item, they would click on an "Add Item To Cart" URL at the end of the line which would then need to create an HTML Hidden Form Post to the shopping cart sotware (Mal's e-commerce shopping cart) passing specific data like Plate Description, Stock Number, Quantity Purchased, Price, etc. Using HTML tables would work out great for me but I need to find a way for the hidden form post to know the information to pass. Is PHP somehow able to get the data from the table? Could it access the data in the cells in a row in a table and place the values in variables?
View Replies !
Store Front
I know how to create a store front using php and mysql. What would be the best way to set it up so that members that sign up on my site can create their own store and sell items. I am thinking that I have to create seperate store id's then somehow attach the member's id to the store. I also thought of possibly creating a seperate subdirectory for each member and copy the source code for the store that they will need to install but not sure how to do it plus seems like a lot more work. I would think that utilizing mysql would work the best but need some direction in this area.
View Replies !
GNUPG Email Front End
I've been trying to figure out if there is a real GNUPG front end for popular Windows email programs and so far I haven't found any. Yes, they say it's built in Becky but what if I'm using Netscape Mail or Outlook Express. Ok, I downloaded free PGP and it installes a whole bunch of utilities that I don't really need apart from the plain plug-ins. Yes, it does have a plug-in for Outlook Express and Eudora but not for Netscape Mail. I had to modify the gnupg options so pgp could decrypt it too. Well, my major concern is Netscape Mail actually but in general, I would like a plug-in for plain, "clean" gpg. How do you solve the problem with the front end decryption?
View Replies !
Using AJAX With A PHP Front Controller
I have a framework that uses the front controller design pattern for a single point of entry to the application and the autoload function for includes. I am trying to incorporate AJAX into the framework, but the javascript calls to php ignore my front controller code when instantiating classes.
View Replies !
MySQL FRONT Is Evil
I was trying to work out a text field that was not able to input data into the database. After trying every possible thing and posting problem on the forum as well, today I thought of doing something different. At that time my database was created using MYSQL FRONT, So today I created one in phpMyAdmin and guess what? It worked just fine with the exactly same code. Mysql Front is evil!! took so much of my time. If anyone of you is having issues that does not make sense and are using Mysql Front, then it might be worth trying phpMyAdmin.
View Replies !
HTML In Front Of XML While Using SOAP. Please Help.
I am writing some dotNET code to "consume" a web service written in PHP. So far I have been getting some error messages and PHP seems to place HTML text in front of the XML message. dotNET doesn't expect the XML and then it chokes. This is what I get. The <br> tag from namespace is not expected. Line 1, position 2. I was able to capture the data going through the network and I've got the outgoing and incoming messages. I put those at the end of the post because they are too long. Looking at them you can perfectly see the HTML I mentioned. In this case the HTML part says I am missing arguments. That should be an error message coded in SOAP. But there is more. There is an actual SOAP error message, it looks like even when the call was bad it executed the code; it must have put something on the missing parameters. My biggest issue is that the HTML prevents me from doing proper error handling on my side of the app. Is this fixable?
View Replies !
Space In Front Of Array
I searched the net for 2days looking for this answer. For what seems like a fairly easy solution i have been unable to come up with one. I have a form that allows a user to enter an username or multiple user names separated by a comma. Out of that, i construct email addresses based on the users input. Code:
View Replies !
Replace 0 In Front Of Other Number
I am trying to take away the 0 before the dates. Is there a way to put a sign in for any number? not to have 9 diferents str_replaces $arrival_display = str_replace("01-", "1-", $arrival_display); $arrival_display = str_replace("02-", "2-", $arrival_display); and so on until 9
View Replies !
Store Front Question
I know how to create a Store Front using php and mysql. I know how to create a members area for my members to login into. How would I go about having my members create their own store front on the fly. Then add items to the store front and sell them.
View Replies !
Added To Zip Archive
I am using winzip to zip up a folder with a load of images for an image gallery upload form. The problem is that there seems to be an extra file added to the archive that is not visible in the folder to be zipped. The file is thumbs.db I am aware what the file is and what it is for but what i dont understand is why it is being added to the archive when it s not intially visible in the folder to be zipped. This is screwing with my site because flash is trying to load the thumbs.db.
View Replies !
Added Some Headers
I have a site that uses a PHP email form. It has been working fine until recently I added some headers to the mail function. Not it works fine in Firefox but not at all in IE.
View Replies !
Categories Added
when a user logs into my site i wanted to add a "JUST ADDED" sign next to categories uploaded since they last logged in, once they see the new categories the "JUST ADDED" sign dissapears, i'm not sure the best way to go about it and help would be great.
View Replies !
// Being Added To Columns
I have a little sign up form on my website, and when people sign up if they sign up say with a "'" in there name, when I pull the name from the database it come's in as O/'Brien... How do I get rid of this? With strip_tags?
View Replies !
Slashes Getting Added
So, I've got this simple test PHP document (at the bottom of this message). It simply puts up a textarea and then submits the form to itself. The text of the textarea will be placed in 'body' of the $_POST array. If the $_POST['body'] variable is set, it outputs what 'body' contains and if not, it simply outputs 'No body var'. Code:
View Replies !
Add A Little Peice Of Code In Front Of Every Link?
I have a site that I recently added in SEO urls. Everything works great, but none of my links go to the seo. So I need a script that would add in a $variable before every link, automaticly. Since I am not too skilled in php is would be really hard or me.If you are a PHP guru out there could you whip this up or me?
View Replies !
Why Is Localhost Added To All My Links ?
Not sure if this is a php, mysql, or apache issue. I use win2k and I have AMP on my system as a localhost. I use this to test PHP/MYSQL scripts I write on my local PC. I render a URL w/PHP by reading the URL string from a mysql field, eg. on the php web page it shows as eg. www.yahoo.com link But when I click the link I see that "localhost" is added to the URL and it goes nowhere. ie. it get localhost added to the front - localhost/www.yahoo.com Is there a setting somewhere so that the link is exactly what the link is and localhost is not added.
View Replies !
How Can I Stop Slashes Being Added At All
I am passing various strings through a php script to then ahve them display as an image (dont ask lol) I'm using stripslashes(); to avoid any html being entered into the script AND also because some of the strings i'm passing contain the ' char, which gets auto escaped via magic quotes. Now, i can strip this escape char away with stripslashes, BUT, if the user makes more changes to the phrase... font... colour etc, then each time they click submit more slashes get added. How can i stop slashes being added at all, maintain security and not go bald through hair pulling?
View Replies !
After Mysql Insertion Another Row Is Added
on the site i am developing i have noticed after a database insertion is made, mysql insert another row (but only the id increments by 1) if i insert: id---name---age---country 1 ---Graham---28---Scotland right after this will be: 2 ---blank---blank---blank i checked the inserts carefully it all seems fine, then tried LIMIT 1, with the INSERT INTO but that didn't work, any ideas on what this could be?
View Replies !
Session Info Added To URL
I'm noticing that when my homepage first starts up, all the menu links to other pages have the session info appended to the URL. For example: href="products/product_list.php?PHPSESSID=45759f8aadee64cff2db657 48977ac67" This is done automatically as the original URL that I coded does not have the session information added to it. My first question is, is this normal behavior? The reason I'm concerned is I have been tracking the Google Bot's activity on our site and it hits the homepage and does not crawl the other pages. I'm concerned the added session info is throwing it off. Code:
View Replies !
Extra Space Is Added
I used the search option but i couldnt get solution for my problem. When i retrieve value from mysql db and place in a textbox an extra space is attached at the end.
View Replies !
SESSIONID Added To Every Link
I've had this problem once before and I can't remember how I fixed it. I remember it was something very simple and silly so I'm hoping someone can jog my memory or even tell me what's going on. Its causing problems with MySQL as well where all my SELECT queries are case sensitive. All links to other pages have "&PHPSESID=..." appended to them - anyone know how to stop this?
View Replies !
Include With IE - Added Padding?
I am using "include" to enable smoother updating of my menus. In Mozilla Firefox when I include a .php or .txt file with a ul list/menu it works fine, but in IE7 there is additional space at the top of the list shoving it down the page so that it overlaps with other content... Strange, no? Below are the urls to the included list and the normal html page. I have added the style sheet also, 'coz although this should not be a css issue, it just might be? Code:
View Replies !
Concatenated Variable Added
I would do it with a known amount of IDs would be like this. PHP Code: $directorid = $_POST['Director']; //the person ordering the work     $_POST['Contacts'] = array();// Make it an array foreach ($_POST['Contacts'] as $contact) { //Set the elements in the array     $Contacts0= $contact[0];     $Contacts1 = $contact[1];     $Contacts2 = $contact[2];     $Contacts3 = $contact[3];
View Replies !
PHP Script Putting Slashes In Front Of Apostrophes
I just put up a script where people can make their own quizzes, but when a user inputs a word with an apostrophe, it displays on the page with a slash in front of it. For example: Eric/'s Quiz Is there anyway to fix that? The script is called phpQuest 0.15 from a site that's no longer around, and I couldn't find any help about this issue on the Archived version of the website.
View Replies !
Putting Zero In Front Of Single Digits In Select
I have an html form where a person inputs a date via a drop down select. How do I make php put a zero in front of the numbers 1-9 ie. 01 02 03 when writing to the file? I have tried making the value="01" etc. but this doesn't work. Below is a snippet of my form and the code I am using to write to the file. Code:
View Replies !
My Admin - Reinventing The Wheel - Mysql Front-end
Right now, I am redeveloping the wheel by creating my own type of PHP MyAdmin tool for my clients so that they can manage some data. A good exercise, but probably done before! My question: is there something out there similar to what I describe below or how do you go about it (I am sure that all of you have faced this problem before)? How do you recommend I proceed? PHP MyAdmin would not be suitable for my clients, because it contains too much and it is too technical (e.g. i dont want them to change the structure of the database). Code:
View Replies !
|