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.





Linking Functions To Data Displayed On Page


I have a text input box, in which you can enter a user ID. You click 'find user' and this populates a table with this users details. So far pretty straight forward.

What I want, is a set of functions relating to this user, such as a simple button: 'Delete User' (the functionality of which is self explanatory). Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Page Linking
Currently the sites that i make are in this format e.g. http://localhost/phpscript/test.php. I noticed some sites have it in this format e.g. http://down.com/up/index.php?p=cs. How do they get the format of "index.php?p=cs" and what does it mean?

View Replies !
Page Not Displayed!
I have a site in PHP with a page 'approveMembers.php' within 'approve' directory under the site directory. This site has been hosted on net. Now the problem is when i access this page from my machine that uses a proxy server to connect to the internet, the contents get displayed properly.

However, when i use a machine that connects to the internet directly (without using a proxy), the contents do not appear in the page even though the status bar read 'Done' after loading the page. Code:

View Replies !
Page Cannot Be Displayed
OS: Windows 2003 Server
Program: EasyPHP1.8

Changed port to 81 in httpd.conf, rebooted and everything....

127.0.0.1:80 still connects to the index page
127.0.0.1:81 doesnt connect (Page cannot be displayed)
192.168.1.181:80 & 192.168.1.181:81 doesnt connect either (192.168.1.181 is the computers IP)

Is there any configuration I have to do with Windows Server 2003? This is all after a clean install of the OS. Firewall is off (default) or anyone have any advice what the problem could be?

View Replies !
The Page Cannot Be Displayed!
I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox.

Have someone found the problem like this before? And how can I solve it?? My very very simple code is:

View Replies !
Calling For Data To Be Displayed Using The URL
I'm having a problem getting my code to pull the appropriate information when I call for it via URL. (example: http://..../.php?id=2). For some reason I can't get it to pull the information for ID #2 (or any ID over 1) and input that information into my dynamic page. No matter what ID i type, or even if I neglect to type in an ID to begin with, it displays the same information.

What am I doing wrong? The entire code for my page is pasted below. If anyone could help I would be grateful. I know there's something simple i'm over looking, but I can't figure out what. 

It connects and downloads the information for ID #1 if I remove $_GET and replace it w/ $row_StaffDirectory, but this is where it only pulls information for ID #1 and no other, no matter which ID I call it from in the URL. Any ideas? Code:

View Replies !
Linking To Page.php?id=variable
I am trying to create an edit/delete user interface similar to the edit/delete section of the mysql database page. each record in the table will have an edit delete beside it.

All my attemps so far to link the 'edit' to the corresponding record bring up mypage.php?=(my calculations trying to get the record id, instead of the record id itself)

how does one go about creating a dynamic link coorsponding to the record that is needed to be editted? I have the table being created corectly, with edit/delete beside them, but I can't get the link to turn out correctly.

View Replies !
Linking Within A Single Page
i want to create a single PHP page where the links are linked to contents within that single page. can anyone please help me with this?

View Replies !
PhpMyAdmin - Page Cannot Be Displayed
I programmed my config.inc.php file with the codes below. But i cant go to the website.. It shows an error msg, "page cannot be displayed"

What haf i done wrong.. N i m actually not sure about my local host.. Cos i m using my school wireless network..

$cfg['PmaAbsoluteUri'] = 'http://www.example.com/phpMyAdmin-2.5.7-pl1/'

$i = 0;

$cfg['Servers'][$i]['host'] = 'example.com' // MySQL hostname

$cfg['Servers'][$i]['port'] = ''

$cfg['Servers'][$i]['socket'] = ''

$cfg['Servers'][$i]['connect_type'] = 'tcp'

$cfg['Servers'][$i]['controluser'] = ''

$cfg['Servers'][$i]['controlpass'] = ''

$cfg['Servers'][$i]['auth_type'] = 'config' // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'username' // MySQL user
$cfg['Servers'][$i]['password'] = 'my_pass' // MySQL password (only needed
// with 'config' auth_type)

View Replies !
Page Cannot Be Displayed Using Php.exe On Win2k
Im using php.exe on win2k. When I visit a php page i get page cannot be
displayed. Other pages work fine. Any ideas? the php dll wont work at all,
it refuses to read the ini file at all.

Really anonying, cant figure this out.

View Replies !
SQL Statements Displayed On Every Page
Every php page that queries my MySQL db outputs the SQL string on the result page. I just want to output the results. Code:

View Replies !
&JAVA - Page Cannot Be Displayed
I have installed j2sdk1.4.2_14 to work with my php-4.3.9-3.15. And i have follow all the step from head to tail.

Now, i suppose to just create a simple php coding on java function. When i exec the page...it did not show any error but just 'The page cannot be displayed'.

I hava added a line of : export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_14/jre/lib/i386/server:/usr/java/j2sdk1.4.2_14/jre/lib/i386 to etc/init.d/httpd. Seems not working as well.

View Replies !
CHMOD 777 - Page Cannot Be Displayed. Why?
I have placed a CHMOD 777 on a folder and now all of the files inside that folder return 'page cannot be displayed' error, an internal server error (500).

I have tried on individual files as well.. the same thing happens. Anyone know what is going on?

View Replies !
Linking Tables To Display Data?
I want to link two tables together to create a list. The unique value
loppnum appears in both tables. I need to look up its corresponding value
for each entry.

table1 has 2 cols
A Jag
D Cht
E Lio
P Mkn
Q Res

table2 has 2 cols
MN A
PL D
RT E
PO P
LM D
NB D

In the first table both values are unique
In the second table the first value is Unique

Now I need to display a list of data in this form

MN Jag (Displays second table data and looks up value of A in first table)
PL Cht (Displays second table data and looks up value of D in first table)
RT Lio (Displays second table data and looks up value of E in first table)
PO Mkn (Displays second table data and looks up value of P in first table)
LM Cht (Displays second table data and looks up value of D in first table)
NB Cht (Displays second table data and looks up value of D in first table)

I have made a start

$upgcollect='SELECT * FROM table1 ORDER BY scfmfor'
$upg1=mysql_query($upgcollect);

$ml_collect='SELECT * FROM table2 ORDER BY loppnmn'
$upg2=mysql_query($ml_collect);

That gives me two variables with complete table data.
The rest of this is beyond me at the moment.

View Replies !
Linking Data And Generating New Pages
i have seen websites that have data stored in databases and when a link is clicked a template page is generated with the data instead of having a separate page for every single item associated with a user. The address bar when clicked will look something like this:

http://www.blahblah.com/user/index.php?id=view&&1918373707

I have two flat file databases. One, categories with the structure --> username|catname|catid and the other content with the structure  --> username|catid|date|text

I need some code please that will make a link between the 'catid' in both databases and then do that URL thing above to link to a generated page (or template page) where i can then echo out all information. I will post the code to show you how i am producing the links that i want people to click. Code:

View Replies !
Change Column Data Displayed
i have the following code that displays data in a double column in the format:

id1|id2
id3|id4
id5|id6

Code:

View Replies !
Linking A Page With Phpbb Forum
iv been trying to do this for a while, link my website users with phpBB forum users so they only need to register once. Now someone was kind enough to give me this code to get the users information: Code:

View Replies !
Included Page Anchors Not Linking
My home page, index.php, includes another page, test.php. test.php has a script on top of an HTML page with anchors in the body ie) the test php is = to... <?php><?> HTML page with anchors My problem, is that the anchors do not seem to work. There are no hypers on the anchors on index.php After uploading test.php, I downloaded it and the anchors are there, but they do not seem to be present when included on index.php Does anyone know why anchors could exist in test.php but not be included in index.php? I put the links on with Nano, could that mess up the paths.

View Replies !
Make Page Linking Easy
To make linking all my pages,and also to automatically include new pages in each of the other pages as and when I make them, I thought if I can make a row entry, where I shall append the newer pages so that I can use PHP code to print the row entry directly on the pages by invoking the content of the row.

Now, I want to know if doing this will work.Like I have two categories - Blue widgets and Red widgets. All pages on blue should be interlinked and similarly for red. Now, take a code such as shown:

<a href =...>A</a>&nbsp<a href =...>B</a>&nbsp..

Now all this will be on row 1 of my table and all red entries will be on row 2. Now, will such a row entry,when called using the PRINT command, help me directly present the links on my webpage.

View Replies !
Hiding Hyperlinks For Page Displayed
Can anyone point me in a direction to find a tutorial on writing a script that will hide, (not show) The text link for the home page if my vistor is on the home page. i have read a book and they have on th4ere but it only deals with changing the type of image not disabling it and hiding it from veiw.

View Replies !
Pagination Displayed In One Long Page
My site is a virtual pet style site where there are user shops and at the moment all items are displayed in one long page, not so great when theres over 100 products in one store.

Below is a copy of the code. If anyone could please give me some pointers, Id really appreciate it. I've gone through tutorials but they seems to be to advaced for what I need and I simply get lost. Code:

View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere.

In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:

View Replies !
Flip Flop The Displayed Page
I want to test different content on a landing page to see which my visitors like the most. Version A is to be shown 50% of the time, Version B to be shown 50% of the time.

So, visitor #1 gets shown Version A, visitor #2 is shown Version B, visitor #3 shown Version A and so on.

My idea is that I would have some code that would say include(content-a.php) or include(content-b.php) depending on which is due to be shown next.

View Replies !
Upload Something To Gets Displayed On The Pagination Page
I coded an upload system, and a pagination script. These 2 things are linked together so when you upload something it gets displayed on the pagination page. Now I want to make it so if the upload page is executed, then refresh the pagination page.

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
How To Limit Number Of Lines Displayed On The Page?
I just wrote this script to read information from a TXT file that contains list of JPEG files, and the list is rather huge. So I want to limit the number of displayed files to like 20 per page (with NEXT/PREVIOUS links to the next or previous 20), but I have no clue how to do it. Code:

View Replies !
Phone Number Is Not Displayed In The Paypal Page
I am using Paypal in my site. The problem is the phone number is not
displayed in the paypal page, but am sending the phone number in a
hidden value with the name "H_PhoneNumber".

Can anyone tell what could be the problem? Why am not getting Phone
number in the paypal page.

View Replies !
Page Cannot Be Displayed While Post Or Reply To A Topic
I can send emails through my forum can access Admin and change etc. for the first time ever the other night tried to post or reply to a topic and I get the below message I have tried everything I can think of. Code:

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 !
Editor To Be Displayed On A Page Giving To The User
I want an editor to be displayed on a page giving to the user the chance to write anything he likes, and then save those contents and display then into an html page, which is exactly what i'm doing now, posting this new thread. How can i do that?

View Replies !
How To Control The Number Of Page Links Displayed With Pagination?
Does anybody know how to control the number of page links displayed with pagination?  I mean like, with the tutorial on this site, if I had, say 50 pages of results, it actually creates individual links for page 1-50.  How could I make it truncate say 1-5, and then an arrow to goto 6-11 and vice versa? Here is the code the tutorial uses

    for($i = 1; $i <= $numofpages; $i++){
        if($i == $page){
            echo($i." ");
        }else{
            echo("<a href="$PHP_SELF?page=$i">$i</a> ");
        }
    }

View Replies !
Session :: Problems With This Web Page Might Prevent It From Being Displayed Properly
when i add php session

<?
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>

I just get this error "Problems with this web page might prevent it from being displayed properly bla bla". Of course am adding those lines just the first thing in each page b4 anything else. so am getting that error in pages that have template applied to it.

and when i delete the session lines it just back to normal. So i dont get whats the problem with the session.. there is no other way of writing it. and the session is working already properly in another project on same computer. am using php & IIS.

View Replies !
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved.

I'm on a Windows 2003/PHP 5.22 setup.  I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well.  I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work.

The install dumped all the PHP related files under "c:program filesphp".  I've ensured that path is in my windows PATH statement for my env vars.  I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". 

From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine.  It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed".  I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine.  It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error.

My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.

View Replies !
Size The Page Displayed To The Size Of The Persons Browser.
I would like to know if there is some code in php that will size the page displayed to the size of the persons browser.

View Replies !
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's
like a 404 error but I think it might be something else.

Basically, I have a page where a user inputs his email address. The system
is supposed to look up the email address and send the associated password to
that email address. It worked up until a few months ago. Note that the
validation works. So, if the user tries to submit a blank text box, it
returns an error. If the email address is not found, it returns an error
"Email not found." But if the email is valid, it just dies. This code
worked a few months ago when I initially wrote it....

View Replies !
Which Functions To Use For Data Loading
I need to make a script where users will upload a comma seperated values (CSV) text file which will be inserted in a table. The user must be able to review and approve the extracted data from the CSV file before it is inserted in the table. There could be up to 1000 rows of data. What PHP functions must I utilize to complete this script?

View Replies !
Data/math Functions With Php/mysql
Hey everybody, I have a tricky problem that i need to solve... I'm currently using apache/php/mysql , developing a custom ticket system... now i'm working on one of the final parts which are reports...

here is the scenario: I have a few rows of dates, such as when a ticket was opened and when that same ticket was closed...

ie: open_ticket, closed_ticket

I need to calculate the number of days it took me to complete each ticket, then i need to calculate the MEDIAN time it took me to complete tickets...

see, kind of tricky, I noticed that mysql can do averages, but can it do MEDIAN values?

View Replies !
Forms Data Format (FDF Functions)
Anyone used FDF functions in PHP like to share ideas how to populate, say a HCFA1500.PDF file from a MySQL database? Where do I start :-O ? Do I need to install the PDFlib at all? Or is it included in the PHP libraries already?

View Replies !
Passing Variable Between Functions On The Same Page
I have a function (below). The part I am confused abbout is the variable $cnt (in bold). I wish to use this variable in another function that is on the same PHP page, how can I pass the $cnt variable onto another function in the same page? I keep gettin the undefind variable message! Code....

View Replies !
What Functions Should I Use To Fetch Data From A Flat File ?
What functions should i use to fetch data from a flat file ?

View Replies !
Sending Basic Data Between Functions On Internet
I would like to send basic data (like a set of integers & strings) from one php function to another php function. Sounds easy, However, the functions are located on a different computer. Or, said differently, I would like to use

function oncomp1($integer1, $string1, $string2)
{
// ...
//string3 = function of string2

//<-- call oncomp2($string1,$string3,$integer1);
}

where function oncomp1 is on computer 1, and oncomp2 is on computer 2.

What to do?
The strings can be to long (a few kb) to pass it simply in the URL.
However WDDX is heavily overkill, because u need to compile php with
--enable-wddx to use those functions. And WDDX do not cover communnication.

View Replies !
Weird Errors With Including A Page With Functions On It
I have a page called htmlglobals.php that has a few functions in it, such as: error_message and success_message. This page is included on every page in the site.

These functions are used when an error occurs or when the page has been successfully completed. I have never had a problem doing this before, but all of a sudden I am getting errors like PHP Code:

View Replies !
Magic_quotes Do Not Apply Any Addslashes Or Stripslashes Functions To My Gpc Data
Magic_quotes_gpc is active on my server, and I do not apply any addslashes or stripslashes functions to my gpc data.

When a user submits my login form, the following is run: ....

View Replies !
Display The Data In The Browser By Reading From DB Using Php Functions Mysql_connect
I am develpoing web pages which support i18n. My database is Mysql and it's charset is shift_jis. when I tried to display the data in the browser by reading from DB using php functions mysql_connect() & mysql_fetch_row(), data gets displayed in UTF 8 encoding. DB Details:

mysql> show variables like '%char%'
+--------------------------+-----------------------------------------------------+
| Variable_name | Value |
+--------------------------+-----------------------------------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | sjis |
| character_set_results | sjis |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /home/intlmysql/working/mysql/share/mysql/charsets/ |
+--------------------------+-----------------------------------------------------+
7 rows in set (0.00 sec)

View Replies !
Calling Functions From An Included File Causes Page Not To Load
I created two php files one for database connection string dbconfig.php and another one for all functions related to database processing libdb.php. In another php file I want to call a readDB() to read the database and returning a set of value. THis is what i put:

<?php
require "lib/libdb.php";

$values = readDB(values);

echo "here is the value:".$values;
?>

when I do this one, the page wont load (document not found) on php engine ver 4.3.10..... but works on ver 5.0.......My hosting site still using ver 4.........But when I commented that function calling, the page loads.... of course with error that $values doesnt exist.....

Am i missing anything? this thing has bugged me for the last 3 days.....I read some article that suggested that require should be put on top of every php php...

View Replies !
Security - Encrypt Data Using Php Functions Before Send It To Database (mysql)
What is more secure ?

Encrypt data using php functions before send it to database (mysql), or
Encrypt directly on database, using encryption functions of database
server ?

Ex:

$key = "this is a secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
---
$encrypted_data = mcrypt_ecb (MCRYPT_AES, $key, $input,
MCRYPT_ENCRYPT);
or
$query = "insert into myTable (text)
values(AES_ENCRYPT('".$input."','".$key."'))";

I think encrypt data directly with php is better because the
information is sent directly encrypted to database server, but i not
sure.



View Replies !
Simulate Send Data With POST And Get Data From A Web Page (whith A Session)
I'd like to get text of a webpageB that I reach by putting
a login and a password in a webpageA.

I mean:
I'd like to get text of a WebPageB with a php script.
But before I can see WebPageB I have to autenticate myself
in a WebPageA writing my login and my password in a form,
the host recognise me and (by session) let me see the WebPageB.

The question is:
1)how to simulate send data (login an password) in form with a PHP script?
2)how to navigate in a Web usin the same session?

View Replies !
Build A Page That Takes Form Data, Processes It In A Second Page
I'm trying to build a page that takes form data, processes it in a second page, then sends the user to a third,depending on data processing.

On the second page, I am trying to get the page to have some sort of "Loading" message while the backend processes the data, but I can't seem to get anything to work. Does anyone know how I can get that Loading message to display?

View Replies !
If Value =1 Direct To Page Otherwise Show Data On Page
In the member account area there is a button saying (list) when the member clicks this they are redirected to add.php here i am wanting to check if a members account is limited, if it is direct them to a page saying you must pay your bill. if its not display the info on the page.

in the database there is a field called limited which is tiny in if its not limited the value of the field would be 0 if it is limited the value would be 1.

View Replies !
Sending Data From One Page To Another Page
how to send a data from one page to another page using php code...

View Replies !
Save Form Data - How To Temporarily Store The Form Data Of Page 1
i have separated a form into 3 separate php pages as step 1, step 2 and step 3. i would like to know how to temporarily store the form data of page 1 when the user is moving onto page 3 after completing form 2 on page 2?? then retreive and send the data of all 3 forms together in one email to the webmaster when the user clicks submit on page 3 after completing the 3rd form as well as the previous 2.

View Replies !
Getting Data From Another Page
Is there any way I could get the information from this page (http://www.domain.com/rankcapture.php?name=dylandcor2&check=true) such as level and experience into a variable so I can use it to create an image. The page that is linked isn't mine, so I don't know how it is set up. I know how to create the image, I just can't seem to get all of the data out of the page.

View Replies !
Data On A Page
if there is a function call in PHP that will clear out old data after the you have process it?  This is like after submitting a form and posting it to the second page for process.

View Replies !

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