Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Home Link From Navigation Page


I got a code which helps me to create navigational links and only show 4 results per page. Now I want to add a link on each page such that if anyone clicks on that link it takes it to HOME page. I have added

<a href="Home.htm"><b><font size="4">Home!!</font></b></a>

inside the loop that generates NEXT and PREVIOUS page link but whenever I click on HOME it does nothing at all.




View Complete Forum Thread with Replies

Related Forum Messages:
Home, Host University Link Problem
I've got a table "students" with the following fields {student_name, home_university, host_university}, both home and host universities are ID that refer to a "university" table containing {id, name, city} for example

What I want to do is pull out from one query the student ID and the name of their home and host university. To do this I need to link both home and host uni id to the university table but am not sure how to code this in MySQL. If it was just the home uni name I was after I would do this:

SELECT students.name, universities.name
FROM students, universities
WHERE students.home_university=university.id

What if I want to display a list of results listing both home AND host uni names and then perhaps list by either name alphabetically?

View Replies !
Counting External Link Clicks Whilst Maintaining Ease Of Navigation
I'm writing some php code to count the number of clicks that a link receives. Once the extra click has been counted it will redirect the user to the target webpage.

However - it must also allow the user to click the back button once on her browser in order to return to the first page (as oposed to going back to the redirect page which will then instantly send the user to the website that I'm linking to).

Sounds tricky to me but indeed.com have managed it. If you click on one of the jobs links on the following webpage you will be taken to a redirect page and then the target webpage. And... if you then use the back button in your browser you will go straight back to the search results, bypassing indeed's redirect page and so keeping navigation easy for the user: Code:

View Replies !
Get My Home Page Php
I have a problem with my include.inc that I've created. Smthg seems to be going wrong with establishing a connection. I think I have something slightly wrong with my syntax, so I think it's helpful for another set of eyes to have a look. I'm using this include for the other attached script - my home page (home.php).

View Replies !
Redirect Home Page
I have a "new" homepage. How do I automatically direct clients to this new
home page, i.e. when clients enter "OldHomePage.php", they will
automatically be directed to "NewHomePage.php."

View Replies !
Redirect To Home Page
I have three php files, one.php, two.php, three.php these three files need to be accessed in sequence. if one.php is submitted it displays two.php. if two.php is submitted, then three.php is displayed. if three.php is submitted then one.php will be displayed.

alternately, these three files can be accessed individually. like in the address bar user can type localhost:8080/one.php, localhost:8080/two.php or localhost:8080/three.php. when accessed individually, user should be redirected to one.php because two.php and three.php are getting some values from one.php and error is getting displayed when the later action is performed.

View Replies !
Show Home Page On Log In
I want to have a homepage with a log in feature. But I want it to say 'You are not logged in" or "you are logged in" depending on whatever is the case. I know how to check db entries etc but should I have the php on the same page in order to position the welcome note ie:

<?php echo "<p>Welcome $_SESSION(username), to my website</p>;?>

View Replies !
Home Page Starting With .php Extension?
This might seem a little newbie, but how does one configure Apache to allow
the "home page" to be a php page? As in index.php?

View Replies !
Simple Home Page - Template
Could somebody show me or send to my email source code with simple home
page, something like this:

table with three rows:
first row (headline - logo)
second row (table with three columns - left[menu], middle[this column
is changing depending on the what somebody click on menu], right)
third row (footer)

The point is that when i click left column (Menu > Article or sth)
middle column display list of articles and when i click particular
title content display in the same column.

On home page I'd like make simple deily news sysetm

View Replies !
Default Home Page Under Xampp.
Is there a way to change default home page under Xampp, so that when I
type http://localhost it would go to a home page other than page with
popup asking for Xampp authorization.

View Replies !
Index Directly To My Home Page
I am using Apache server and would like the index file to open my home page that is in another directory. Using Dreamweaver site but do not want this to be visible.

View Replies !
Unique Home Page For Users
I have figured out to allow users to register and then login but at this point they all login to the same page. I want to make each user have their own unique homepage that only they can see. For now all I want on this page is for them to be able to see the files in their own directory that is created upon registering for the site and then be able to upload and remove files from this directory.

The user and the admin should be able to put files in here, for example the user may upload a resume and then it can get editted or removed by an admin if it does not fit certain criteria. Is this project simple to add on to an exsiting login and register page or does it require extensive knowledge of PHP and MySQL.

View Replies !
Sessions - Alternate Home Page
i'd like to set up php sessions for my site so an alternate index page is shown everytime a user arrives at the home page.

I plan to have 2 or 3 different home pages.

View Replies !
Get A Paragraph Of Text To Show On The Home Page Only
I am using a script that I purchased and downloaded. This script has a template folder and inside has header. php, and footer.php. The center content is populated from various other pages. How would I get a paragraph of text to show on the home page only, and no other pages in the script

View Replies !
Higher Home Page Loading Time !!!!!
This is the website i have developed in php/my sql.. http://www.***********.com
THe problem is..the home page takes too much time to load..specially under dial up connection.

View Replies !
How To Do Page Navigation Bar Using Php Codes?
I would like to know how to set up a page navigating system in a web site using php codes.

View Replies !
Keep An Html Page And Use Php For Navigation
How can i keep an html page and use php for navigation so it can be easily updated.

View Replies !
How To Create The Navigation Page
how to create the navigation page in php. The navigation should be from first page,next page,end page,and previous page.Give an example to code for the navigation page.

View Replies !
Show The Current Time At The Resort On His Home Page.
I have a client who owns a resort in the Philippines. This client wants to show the current time at the resort on his home page. How would this be done with PHP? Is it some calculation based upon GMT? I think (I'll have to check) that the Philippines is +8 GMT...so is that what you'd have to do: create a snippet that grabs the current GMT and add "8" to it?

View Replies !
Page Navigation From Search Results
I have created a search form that searchs for results from my database matching the criteria to what ever the user inputs. I have done this using 2 php pages the first page points to the second, where the data is sanitised and cleaned accordingly. The results are displayed on the 2nd page. Code:

View Replies !
Navigation Back To An Html Page
I can't seem to figure out how to navigate back to an html page from a php page.

View Replies !
Adding Page Navigation To Record Set
I have gone through the tutorial on php freaks for adding page navigation to records. I am in the middle of integrating the page navigation and have stuck on  2 areas.

1)
I have a page which displays a set of records (limited to 6 per page)
Below,is the Next and Previous navigation text bUt it is not hyperlinked!!!?? 

The line of code specifically is:

<?php
echo("<a href="$PHP_SELF&page=$pageprev">PREV".$limit."[/url] ");  - This should be hyper-linked but is not??

I think there could be a problem with the <href bit being AFTER the <?php. I am basing this on the fact that a previous record i made began the hyper-link <href BEFORE the <?php where as before the <?php was added only after : Code:

View Replies !
Automating Page Navigation And Control Transfer
Is there a system available to do the following:
consider an app of a few pages:

page1.php:
form1----->page3.php
form2----->page4.php

page2.php:
form3----->page3.php
form4----->page4.php

when I am at page3.php, I do not know whether I came there from
page1->form1 or page2->form3.
I can check for $_SERVER['HTTP_REFERER'] and get an answer. But this
example is simple. Let us generailze that I want an app that keeps a
track of all the pages the user requested, in the order that they were
sent to him.

Obviously, it can be written based on sessions. Is there already some
popular open source application for this?

Also, this brings me to a broader question of page navigation rules. In
an app made of 20-50 pages/scripts, life will be hell if there is no
systematic approach to transferring control between pages. Is there
some kind of structure already made and readily available into which
you just plug-in your pages by telling some rules ?

E.g. the scheme is something like:
$ListOfPages = array(
1=>"Main.php",
2=>"Edit.php",
3->"Add.php",
..........,
N->"Error.php");

$RuleSet = array(
1=>array("Main.php","Edit.php","allow_edit"),
2=>array("Main.php","Add.php","allow_add"),
...................
3=>array("Main.php","Error.php","my_error_handler")
);
The RuleSet is a set of page transfer rules based on evaluation to true
of the specified functions, i.e., allow_edit(), allow_add(),
my_error_handler() etc.
Obviously, form submission is the chief means of control transfer for
PHP programs and the use of ?op=add_something in URL's(GET) and <input
type=hidden name=op value=add_something> (POST) are a step towards
making some kind of structure.

So the grand code will look like:
$MyGrandAppControllerObj = new GrandAppControllerObj();
$MyGrandAppControllerObj->setPages($ListOfPages);
$MyGrandAppControllerObj->setRules($RuleSet);
$MyGrandAppControllerObj->Run();

View Replies !
Page Numbering - Change My Navigation Menu
i am busy with a image gallery and i have it working. but now i want to change my navigation menu this one: [1] [2] [3] [4]  to:

<<first [1] [2] [3] [4] [5] [6] last>> i have also this code, (c second code ) but i cant link it to my foto folder and unsort it from 10 to 1 ,like the newest u c first. Code:

View Replies !
Login Script Depending On User Profile Redirect Them To A Home Page.
if anybody could help me with a login script for my internal web site. Basicly all I want to do is have someone type in a user name and password and depending on their user profile redirect them to a home page. I also need help setting user levels for example I would be a super as an admin, but what are the other levels.

View Replies !
Multiple Navigation Tables On One Page (master - Slave)
I just wanted to refresh only part of the page, i.e., table2 on my php page. here is my javascript code which performs the refresh it works fine and my php file display all the records. the only problem is: I have got two tables on the same page and i only want to refresh the second table when i click the a row of my first table rows. Code:

View Replies !
$PHP_SELF - Create A Link Which Refreshes The Current Page, And Based On Certain Items On The Page
On a page, I want to create a link which refreshes the current page, and based on certain items on the page (simple form objects like radio buttons)the page will load differently. My link looks like this: PHP Code:

View Replies !
Page Redirection - Link Index.html Page To A .php Pag
I have an index.html page with a link to a .php page This is the complete code of the .php page Code:

View Replies !
Setup A Link In My Page That Will Change My Page
I am working on a page with a right column that I want to use for
navigation. In this right column I am using the below code to set a
value for the link. I am using the variable $test right now.

I want to click on the link and when the value is set to a certain
value, say 1, I want the script to run and load a page based on a
switch case. This way I can use different links for navigation that
will load different forms and areas of my application. So here is the
code for the link line. Code:

View Replies !
New "search For" Feature On Home Page
Has anybody else noticed the update to the PHP "search for" feature on their page header? Travel on over to http://php.net and check it out.

First, make sure "function list" is selected in the "in the" list right next to the "search for" option. Then when you start typing in a function it automagically narrows the list based on letters entered. Sweet. I had a quick peek behind the scenes and the workhorse is a piece of js that I haven't had time to analyze yet:

http://www.php.net/functions.js

Truly a neat feature and time saver! I like it.

View Replies !
Php Page Will Not Process Link To Different Page
I have just installed RH Linux ES 3.0 (basic) kernel 2.4.21-9.EL, i686,
Apache 2.0.X, and php 4.2.X. I have made no changes to the php.ini.

I am trying to use the following page (code listed here) to click on
link, and display 1 of three pages. The code does not seem to work, it
only shows the "else" condition of the php code, which is page:
"stuff.php". What do I need to do to my apache/php config to get this
to work? Of course I copied this code from a php site tutorial somewhere.

Page code below:
<?
if ($link == page2){
$page="files/page2.html";
}
elseif($link == page3){
$page="files/page3.html";
}
else{
$page="files/stuff.php";
}
?>
<html>
<head>
<title> index.php </title>
</head>
<body bgcolor="#999999">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="3"><h1>The Template (index.html)</h1></td>
</tr>
<tr>
<td align="center" valign="top"><a href="index.php?link=index">
Page 1 </a></td>
<td align="center" valign="top"><a href="index.php?link=page2">
Page 2 </a></td>
<td align="center" valign="top"><a href="index.php?link=page3">
Page 3 </a></td>
</tr>
</table>
<? include($page); ?>
</body>
</html>

View Replies !
Warning: Session_start() [function.session-start]: Cannot Send Session Cache Limiter - Headers Already Sent (output Started At /home/user/public_html/index.php:8) In /home/user/public_html/nmdeluxe/index.php On Line 2
I'm having a problem with one of my files. I keep on getting the following error:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/user/public_html/index.php:8) in /home/user/public_html/nmdeluxe/index.php on line 2

The second line of the nmdeluxe/index.php file has the session_start(); code. There aren't any spaces before the <?php line. The file is in ANSI form. I'm also including this file in one of my other files using PHP includes.

<? include("/home/user/public_html/nmdeluxe/index.php") ?>

The public_html/index.php has that code in it. The nmdeluxe/index.php does include itself into the public_html/index.php file, but I that error message appears at the top of the page. How can I fix this?

View Replies !
Warning: Session_start() [function.session-start]: Cannot Send Session Cookie - Headers Already Sent By (output Started At /home/comm/public_html/local_dynamic/br.php:6) In /home/comm/public_html/local_dynamic/br.php On Line 168
A visitor selects some options from a page and press the submit button,then the second page shows his selected options and there he fill his details and again press the submit button then the selected options with his details is stored in db

i have used sessions to move the data from one page to another.with localhost it is working good but when i upload the scripts to my site it is showing following warnings.how to overcome with this.

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/comm/public_html/local_dynamic/br.php:6) in /home/comm/public_html/local_dynamic/br.php on line 168

View Replies !
Warning: Cannot Send Session Cookie - Headers Already Sent By (output Started At /home/hkia/public_html/09archive/list1.php:11) In /home/hkia/public_html/09archive/list1.php On Line 53
i add session_start() on the top of a php file, the first time i visit the page is ok, but when i visit it the second and after, the following error is output. what should i do for that?? Quote:

Warning: Cannot send session cookie - headers already sent by (output started at /home/hkia/public_html/09archive/list1.php:11) in /home/hkia/public_html/09archive/list1.php on line 53

Warning: Cannot send session cache limiter - headers already sent (output started at /home/hkia/public_html/09archive/list1.php:11) in /home/hkia/public_html/09archive/list1.php on line 53

View Replies !
Next Page Link
I have pages, 1.php, 2.php, 3.php and so on. I would like to make a next page and last page links at the bottom of each of them. Is there a way to get the pagename then take the .php off of it, and then add or subtract 1 and then echo that?

$nextpage = "(php_self - .php + 1)";
$lastpage = "(php_self - .php - 1)";

I know that is not even close, but use that idea.

View Replies !
Redirect A Link To Another Page After It Has Been First Used?
Is there any way to redirect a link to another page after it has been first used? Or even kill the link after its first use?

View Replies !
Check For Link In Web Page.
I am putting a form on my site that will allow someone to submit a link to me. If they have a return link back to me it will effect the way I display thier link. Closer to the top of the page.

What do I have to do in order to see if my link is up on the page they submit.

View Replies !
Redirect At Other Link Page
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 !
Link Display On Same Page?
I want to list the titles of all my articles from my database onto my webpage at articles.php. Then when the users click on each title, the individual articles will load on the same page.

I'm new to PHP/MySQL, so here is what i've done so far. row[0] as my unique id numbers for each article, and i've included it so that i can somehow tell the page to load the article related to the unique id number. Is this all making sense? Code:

View Replies !
Dynamic Web Page Link
I want to create a simple dynamic page where when i click on a link to automatically create the page. What i mean.. I have some news that display by date, and because they will be updated every day i don't want to create a page for each one of these.

So when the user goes to the index page of the news(where the news are displayed by date) and clicks on one, I want the php do all the job and create a new web page where it will add the hole text of the "new" the user selected in a page template. How do i do that? Can i use the dreamweaver templates?

View Replies !
Link To Page 2 From A Table
Trying to learn and create my own classified script. on page one main page i was able to read the categories from mysql databse and display the the categories in a 3 col table (row1['category']).

what can i add in terms of code so when i click on a category that it takes me to page_2.php carring with it the category i selected (the page must open in the same page)?

i tried different version of $_service(php_self) but not getting anywhere. page_2.php will display a sub category which i will work on later.

View Replies !
Use Button For Link A New Page
how to use button for link a new page.....

View Replies !
Unique Page Link
I am trying to make a page have a unique link so people can send it to friends. What I am trying to do is something like:

Your Name:
Your Friends Name:
Submit

After that, the next page will display that information and output a unique link where that friend can send the link to other people with the information saved (a unique link [I have PHP Code:

View Replies !
Check Link Page Url
I am trying to find the pages url then see if it contains a certain string. Here is the code I used but doesn't work.

<?
$link = $_SERVER["PHP_SELF"];

$exp = explode("=", $link);
$linkname = $exp[0];
$linknumber = $exp[1];

if($linkname == "/viewpage.php?page_id")
{
echo $linkname;
echo $linknumber;
}
?>

What I'm trying to do is see if "$_SERVER["PHP_SELF"]" contains a certain page. If it contains "/viewpage.php?page_id" I want it to go into that if statement. The problem is it doesn't

Btw I need it to explode it because I need the page id number in the other variable for something later.

Also another problem is if the link doesn't contain the "=" sign to explode. Would that cause a problem?

View Replies !
Changing A More Link Into Page Numbers
I have the following code which I've tried to edit to fit some examples others have posted on here, with no luck. I have a page that displays More and Prev links but not the page numbers. How can I change this code to have page numbers instead of the More Prev? PHP Code:

View Replies !
Make It Link To Another Html Page
How to retrive feild from table and make it clickable and link to another html page.

View Replies !
User Last Clicked A Link On My Page
What I want is to display how long ago it was since the user last clicked a link on my page? How would i go about doing this?

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 !
Using A Link To Change Page Content
Basically I have a page to enter data into a mysql db via a form. After the data has been input, this form disappears and instead (on the same page) the data is shown in the same format, just not editable anymore.

What I need to do is have a link that will be able to switch between the two states, being 'edit' and 'view'.

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 !
Open Link In Included Page
How to include Link that could open in same page rather than going to another page


for example, if i include a file in home.php

 <? include("/index.php") ?> and I want to open up the LINKS in  "index.php"

in same home.php.

example   - open    "/index.php?p=Hits"  on same home.php page

I know i could have FRAMES but i dont want to frames in my site

View Replies !
Multiple Page Link Exchange
I am in need of a PHP Link Exchange script (preferably free) that is not for single pages.  The use of this script will be for having 4 pages on the website - the home page with paid links for $1, and then 3 other pages for free link exchange (Free Links Page 1, ...2... and so on)

If you know of a script out there then please post a link to it here. It would be a huge help to me and I greatly appreciate it. I saw one almost a year ago on the HotScripts Most Poplar page, but cannot remmeber it nor find it in HotScripts now.

View Replies !
How To Create Dynamic Page From Link
I'm practicing to understand and learn and have the following example. My page displays the state with the pet names under them, like this: Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved