A To Z Index Page
I'm trying to create an A to Z index page and i'd like to know how to make the query search for words starting with a letter. I want something like [A] [b] [C]....[X] [Y] [Z] and when the user clicks a letter all the words starting with that letter should be displayed.
View Complete Forum Thread with Replies
Related Forum Messages:
Index.htm Going To Login Page And Sending Back To Index Page
1: A visitors visits a.html page. decides to login and post comment. goes to login page and logs in then I want to send him back to a.html page how do I do that? Here is my login page and login.php page. 2: Same as above but I want to send them back after some time... while I make them view the error, why they have not been able to login. Code:
View Replies !
Index.php Page
I just installed PHP 5.2.3. I'm trying to go to my index.php page by typing http://localhost/ but i'm just getting the listing of files in that directory.
View Replies !
Will Google Index My PHP Page?
I'm building this forum, where its like Vbulletin (viewtopic.php&topic=xxx), and it displays the posts for those topics Will Google index my pages, if they are ALL php? They are all generated like that above.
View Replies !
Doesn't Like Index.php For Main Page
I've built a website and some of the pages are php pages (e.g. SomePage.php). It all works fine; both the html pages and the php pages come up and work just fine. I then made a change to the main index.html file and made it so that it's an index.php file instead, and it has some php code embedded in it, not much different than any of the other php pages on my site. But when I try to go to that index.php file, as the first file to bring up for the site, it fails to bring up the page but instead pops up an Open File dialog, asking if I want to Open or Save the index.php file. It's as if the server is not recognizing index.php as being a php file that needs the normal php pre-processing on the server side. I used to get similar prpoblems with the other php pages before I had my server properly set up with Apache and php and such. But all of that is indeed properly set up. The OTHER php pages come up OK. It's just the very first, index.php page, that doesn't come up correctly. What am I doing wrong?
View Replies !
Index.php?=page & Menu
I currently am new sorta in the php field. Basically I haven't really made my own php scripted site. So I am learning as I go. I want to do something that shows like: www.mysite.com/index.php?=hosting Then on the hosting page I would display my content. Ho would I go about doing that and including a right and left side menu?
View Replies !
If Statement - Page = Index
What I'd like to do is, on my website on the initial page, the index, I don't want to link back to the index to be a link. If there is a: If page = index then link not enabled else link enabled sort of possibility in php.
View Replies !
Index.php?page=somthing
I am wondering how people make sites that appears to have one document index.php and they navigate with index.php?page="somthing" I would like to implement this in my own site but I don't know how
View Replies !
Switch To Index Page
i am making awebsite that runs more a less from the index page so i am using for links. <a href="index.php?=id"> switch ($HTTP_GET_VARS[id]) { //default = news default: include "news/news.php"; break; //guides case 'guides': include 'guides.php' break; //contact case 'contact': include 'contact.php' break;
View Replies !
Directory Onto An Index Page
I'm just looking for some simple code that will take the contents of a directory, say /junk and print them onto a page for me, like junk.htm, so my friends have easy access to files I post.
View Replies !
Solution For Redirect At Page Index
by php which the fast solution for make redirection at homepage ? Time ago read some solutions, but one most fast because not load or not make a reload of itself page, not remember exactly but was a solution more fast...
View Replies !
Authentication - Get Redirected To The Index Page
I want people to have to go through my index page, so that if they try to go anywhere else, they get redirected to the index page. But once they click agree on the disclaimer, they can go everywhere. I assume this means sessions, but it might be something else, I'm not sure.
View Replies !
Index Page Query From PHP Newbie
index.html page I wish to have a link called "Today's message" that contains a bit of PHP to fetch the message of the day. I have this working from a daughter test page which has the extension .php. When I implement this link from my Home Page I want the Home Page to still be named index.html How would I implement my desired operation?
View Replies !
MYSQL - Link To An Index Page
I'm working on a site which has several hundred articles stored in a MySQL database. On the bottom of the page are two links for the previous and next article. The site has been constructed in such a way that the database has fields containing the url of the previous and next pages (i.e. article.php?recordID=137) and these are pulled out of the DB in the form of links. Rather than them having to add this to the DB every time a new article is added I'm trying to automagically do it in PHP. I've sorted the main part by taking the current article and either subtracting or adding it's ID by 1 to create the prev and next but I'm a bit stuck when it comes to the current (highest) article number. What I want it to do is link to an index page when there is no +1 (or -1 for the start).
View Replies !
Mod Rewrite - Not Opening The Index.php Page
I have mod rewrite working perfectly fom my main folder but I have another folder called admin with an index.php page in there with other pages. I am having trouble with my mod rewrite so when I enter www.mydomain.com/admin/ it's not opening the index.php page within the admin directory Code:
View Replies !
PhpBB - Making A INDEX Page
phpBB - Making a INDEX page i need to make a index page with all the recent posted topics ok. http://srilankans.hugetop.com/forum thats my web site and i need to change the index from that to recent posted top 10 topics.
View Replies !
$HTTP_REFERER Not Working On Index Page
I'm using $HTTP_REFERER in various parts of my site and it works well. When I use $HTTP_REFERER on my index page to see where members are coming from before they log into my site it won't work. Perhaps this has something to do with the previous page being from an outside site?
View Replies !
Creating A Custom Index Page
Is there any function that when given a directory name as its argument, returns an array containing the names of all the files in that directory, or all the directories in that directory, or both (as a multi-d array, I'd expect)? I assume such a function could be used on the directory the php program running it is contained in, yes? (If yes, please be clear on how.) Code:
View Replies !
User Based Index Page
Both the users have same home page main.php.After logging with user1 only index1 page should be opened and with useer 2 only index2 page should be displayed. Code:
View Replies !
Multiple Index Page Work
I'm trying to figure out how/what this site is doing to have a dozen different index.php pages. All the pages are: domain-name.com/index.php=page-name I'm guessing that this is being done to gain some advantage in search engine results. Is this right.
View Replies !
Changing Pictures On Index-page When Reloading
I am a beginner but quite curious anyway. My problem: I have seen websites that show different pictures whenever you enter the site. By doing this, the sites look always fresh and attractive and I like the idea a lot. Now I like to have the same function on my site but I do not know how that works... Is there anybody who can give a good "explanation for dummies" on how to do that?
View Replies !
Display My Content Pages WITHIN My Index Page
Basically I have a layout index page. What I want to accomplish is display my content pages WITHIN my index page and I dont want to use iframes. Code: <?php if(strstr($id, "..") || $id[0]=="/") $id = ""; if(empty($id)) $id = "/home/vbd/public_html/home.html"; else { $id = $id . ".html"; } if(is_file("$id")){ include("$id"); } else include ("404error.html");?> I'm formatting my links like this: Code: <a href="index.php?id=news">News</a> And heres what's happening, the home page work as it should but none of the links are working.
View Replies !
Include() - Store The Text In The Index Page
I have a index.php page that has some text on it and I also have a edit_index page. From edit_index you can edit the text on the index page. But I don't want to store the information in a database or a text file but instead want to store the text in the index page. Since the index page is PHP i made a variable at the top named $index_content and that holds the current text. What I want to have happen is for me to be able to, from edit_index, is edit the variable with the new text. So when I hit submit on edit_index I want it to call up index.php and redefine the $index_content variabled stored in the page. But i don't know how to write to a page like that when it's not apart of the script being executed. I tried require(), but that didn't work, and I tried include() but that didn't work either. Is there some way to do this that i'm not aware of?
View Replies !
Blank Page Caused By Undefined Index
I upgraded my php from 4.4.7 to 5.2.4 and now the entire website doesn't work. So I am trying to learn PHP and go through the site one error at a time. If you have a idea why the upgrade caused the site to fail that would be great. But in the meantime this is the problem i am stuck on. I get this error now when transferring to a page Notice - PHP Notice: Undefined index: REMOTE_ADDR in c:locationSession.php on line 45. That line has the following code. $GLOBALS["$SessionName"]=md5 (microtime() . $GLOBALS[REMOTE_ADDR"]); Like I said this code worked before the upgrade. Any idea what I can do to fix this problem?
View Replies !
Want My User To Have To Go Back To The Index Page As Soon As They Login.
I am having a little trouble intergrating a login/user management script with my html pages. I have used the div tag put in my php in there and put the rest of the php where it is originally placed in the script. Here is my problem. I would like my user to stay on the same main page while the login part changes(goes to the members area). I have tried using i-frames but if there is a link in one, the main page does not change the i-frame does. Can this be solved with more php. I do not want my user to have to go back to the index page as soon as they login.
View Replies !
Index.php?page=download Vs Header An Footer
I've been programming for a couple of years, but still I'm not sure which is the best solution. solution 1: index.php?page=download - here you call you index and it will load a page in it solution 2 download.php - here you load download.php and you load the menu etc with header.php what do you think is the best solution? and why?
View Replies !
Find The File Name Of A Remote Site's Index Page
How do you find the file name of a remote site's index page using PHP...so, given that I have a domain name of www.yourSite.com, the file name might be: index.php index.htm index.html index.shtml index.cgi index.pl .....etc., etc.... How do I figure out which one it is?
View Replies !
Use Files As Includes From My Index Page Where The Constant Is Defined.
Sample of code: if (defined('constant')) { // show content } else { header("HTTP/1.1 404 Not Found"); } I am trying to do is, use files as includes from my index page where the constant is defined. What I want to happen is if a user trys to goto blah.php directly, instead of /index.php?page=blah they receive a 404 error, and are sent to the 404 file not found page.
View Replies !
Links Stopped Working - Use PATH/index.php?p=PAGE In My URL
i have just moved my website from one server to another, on the first my pages worked perfect (not considering markup) but now my links just won't work anymore... i use PATH/index.php?p=PAGE in my URL, it worked well on the other server, but after i switched it just stopped working... and i have no clue where to find the error... it just keeps showing the first page...
View Replies !
Supress Errors At The Page Level? Undefined Index Errors.
I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in c:inetpubwwwrootmackinawsurvey.php on line 36" even if in the code I allow for an unselected item. (Code at the bottom here.) It works fine otherwise. Now in the past I've made a change to php.ini to repress errors, but for this project I don't have access to the php.ini. Is there a way to supress errors on that page for that session? Or, is there a way to just not get that error at all? Here's a sample of the code that gets the form response. If an item is selected, no error for that question, but if an item is not selected I get the error above even though I still get a successful echo for the "else" or "default" option which occurs if nothing is selected: $rb_visited = $_POST["rb_visited"]; //Have you ever visited Mackinaw City, Michigan? if ($rb_visited == "1") { $rb_visited_reply = "Yes"; } elseif ($rb_visited == "0") { $rb_visited_reply = "No"; } else { $rb_visited_reply = "You did not answer this question"; }; $rb_lastvisit = $_POST["rb_lastvisit"]; //When was your last visit to Mackinaw ity? switch ($rb_lastvisit) { case "1": $rb_lastvisit_reply = "Earlier this year (2003)"; break; case "2": $rb_lastvisit_reply = "Last year (2002)"; break; case "3": $rb_lastvisit_reply = "2 years ago (2001)"; break; case "4": $rb_lastvisit_reply = "3 years ago (2000)"; break; case "5": $rb_lastvisit_reply = "4 or more years ago (1999)"; break; default: $rb_lastvisit_reply = "You did not answer this uestion"; }
View Replies !
Which Index To Use - Primary Key, Index, Etc
I have the following tables (simplified example): countries: code_country (char-4) , name_contry) breweries: code_brewery (int-4), name_brewery) coasters (code_coaster (char-8), description, code_country, code_brewery) code_coaster is formed by the combination from code_country + a correlative number: for example CH-33, INDO-102, etc How should I define the indexes so that the querries will be optimized? I've thought about the following: code_country: unique in table country code_brewery: unique in table brewery code_country: index in table coasters code_brewery: index in table coasters code_coaster: unique in table coasters I don't really understand the difference between primary key and unique. Should I use primary key instead of unique?
View Replies !
Index.php Vs Index.html
index.php vs index.html Is there any reason for me to have two pages? If my site is in PHP, is there a situation where the browser won't go to an index.php page?
View Replies !
Index.php
I want to land on www.domain.com/index.php when I type in www.domain.com. I have a virtual server. Is redirection in the webserver configuration the way to do it or is there a better way. I tried redirection but it didn't seem to work. Maybe the changes hadn't been logged after rebooting the virtual sever.
View Replies !
Index
I have the following query: SELECT link_id FROM links WHERE link_code = 230685 AND link_source_id = 12 LIMIT 0 , 1 and a multi index on link_code and link_source_id: ALTER TABLE links ADD INDEX test (link_code, link_source_id); however, if i run it through EXPLAIN it is ignoring the index and doing a whole table scan? am i missing something?
View Replies !
Trying To Index..
I'm trying to set an index on 3 of my columns but get this error: #1170 - BLOB/TEXT column 'requirements' used in key specification without a key length The last column in the table is TEXT TYPE containing some large paragraphs. I'm pretty new to all this. Do I need to index all columns? Do I even need an index? How does it improve my database?
View Replies !
Use Index.php
What I am trying to do is build an index.php that would display data coming from other php pages, something like Joomla, Mambo etc. PHP Code: <div id="Layer1" style="position etc. etc."> .... results from page1.php .... </div> <div id="Layer2" style="position etc. etc."> .... results from page2.php .... </div>
View Replies !
Complex Name Index
I've not found anything that relates to this problem and I posted it and in the MySQL forum and got no replies. Maybe there are more ideas here. I want to display an alphabetical index from a table where each row contains information about a couple, i.e., lastname, hisfname, herfname, maidenname. The index should display both the man's name and the woman's maidenname in the same list. Here's a sample of my table: lastname | hisfname | herfname | maidenname smith | john | jane | cook riley | dan | sally | price bagley | bill | donna | davis green | graham | susan | richards From this sample I'd like to extract an alphabetical list like the one below: bagley, bill cook, jane davis, donna green, graham price, sally richards, susan riley, dan smith, john What sort of query could I run to get this order? Can I use two queries and somehow join them to form a single list? Or is there some PHP algorithm I should employ to derive the list from two queries?
View Replies !
Index.php?action=1 Etc
just wondering how i could make a php page which has say an output like index.php?action=1 all it has to do is goto another webpage - so if i had URL then the user is taken to another page and so on for index.php?action=2 / index.php?action=3 / etc
View Replies !
Index.html?etc=foo
I've noticed on some sites that people are passing variables to HTML files using the GET method. How can you set up HTML files to accept variables? Or have they just set their server up so that all .html files get parsed by the PHP/Perl/whatever engine?
View Replies !
Undefine Index,
I installed php4 for apached and restart apache afterward. but my little php script generated error followint error: PHP Notice: Undefined index: myname in /usr/local/www/data-dist/www.authtec.com/php-test.php on line 2 I was trying to run the following php script in apache: <?php if($_POST["myname"]) { print "Hello, ".$_POST["myname"]."<p> " .nl2br($_POST["textbox"]); } else { ?> <form method="post" action="php-test.php"> <input type=input type=text name=myname> <textarea cols=20 rows=4 wrap=virtual name=textbox></textarea> <input type=submit value="Submit"> </form> <?php } ?>
View Replies !
Index.php...bootstrapping?
I want to write an index.php the is the central point of my website. I see it used everywhere, but I can't seem to figure out a good way to do it. I found an article on Zend's website where it refers to this as "Bootstrapping". Is this correct? The article comes in parts, and unfortunately the author hasn't finished all the parts. I thought I'd throw it out there for discussion, see if we can come up with a few examples, from simple to complex ones. I would imagine this can all be done in an OOP way for the more complex ones.
View Replies !
|