How I wear on the variables in the database of a page to another?

I have a MySQL database displayed in a table on one page, with a link in each row, pointing to a DETAILS.php page where I want to show the end user all the details of this record or a line item in a different format. After that I have a link to the new page, how should I address variables for "this particular record" clicked on in the 1st page? What is the system automatically knew which record of the row in the table that I linked to?

lesliebrownadobe wrote:

I have a MySQL database displayed in a table on one page, with a link in each row, pointing to a DETAILS.php page where I want to show the end user all the details of this record or a line item in a different format. After that I have a link to the new page, how should I address variables for "this particular record" clicked on in the 1st page? What is the system automatically knew which record of the row in the table that I linked to?

Each record in your database must have a "unique" identifier (primary key), tying the record to it.

You then pass this "unique identifier" to the details page in the link that you create using php for loop through each record found in the database, which no doubt you already have.

On the details page then use you php to get the id of the file sent to the page via the link:

$id = $_GET ['id'];

Once you have the id that you are in business and can create a mysql on the database query to get the record corresponding to the code

SELECT * FROM table WHERE id = "$id".

'id' is the 'unique' field in the database that identifies records and the "$id" being the variable passed from the link

Tags: Dreamweaver

Similar Questions

  • How to connect to the database

    Hi all

    I use labsql (and quite new to him m) and the server Mysql 5.1.I wanted to know how to connect to the database without changing the name of the dsn from the tools administrative/ODBC 5.1 driver manually. I want to install exe in several PC and it would be a great help if I could make the connection directly but my Vi.

    I went through several forums and came to know that 'Provider = ProviderName; Data Source = DatabaseSource; Initial Catalog = DatabaseName; User = username ID; Password = password', should solve the problem. But where in my case I m still confused. The connection string above does not sit well with me.

    Can someone help me please.

    Have a look here, where I have such a picture to show how to form a string constant to connect to the database. Some subsequent posts in this thread should also be useful.

    Good luck!

    Ian

  • How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    You are allowed to install Photoshop on two computers. Recent versions allow to choose if they are versions Mac or Windows, or one of each!

  • How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    How to make all the fields on one page read only (for the recipient) without having to make each field read-only?

    Hello Jmbtexas4,

    By default, you will need to individually click on the fields of the form and check the 'read only' and save it. From now on, it is not possible to select all together and make the changes.

    -Usman

  • How to check if the database for DRDA gateway is installed and configured.

    Hi all

    How can we check if the database for DRDA gateway is installed and configured.

    Our operating system is AIX 5 L 64 bit OS.
    RDBMS: 11.2.0.3

    Kind regards

    Duplicated
    How to check if the database for DRDA gateway is installed and configured.

    + - locked thread-+.

    Nicolas.

  • How do you get the help of a Page element to display text?

    How do you get the help of a Page element to display text? We entered our text in the help text of our Page element part. However, when you place the cursor of the mouse on the Page element, any help text is displayed? Any comment is appreciated. Thank you.

    How do you get the help of a Page element to display text?

    .. .a page element...

    Is there a link for the point label? Otherwise, change the model of wording of article to use the model named "Necessary with assistance" or "optional with assistance.

    When you place the cursor of the mouse on the Page element, any help text displayed?

    If there is a link, you must click on the link.

    Scott

  • How can I get the thumbnails on a page of the new tab?

    I get a Secure AVG search instead of the thumbnails page page now when I insert a new tab. How to bring back the thumbnails? I don't have a gear on the page icon to switch back. This after I did a reset of Firefox so that MapQuest would work once again, he does now.

    What is interesting is that I get photos if I open a second window of Firefox and then click on a new page of tap.

    I have install the searchreset addon with no luck. I ran Microsoft Security Scanner and no problems have been identified.

    It was very good work. Play well.
    Please mark your last post as solved so other will know.

  • How can I change the default e-mail account to another account?

    Thunderbird assumes that the first account, I placed on it is the default value. I need another email account to be default; How can I pass?

    Click with the mouse right button on the e-mail account > > settings > > select the account else Insignifiants Acconut button > > default

  • How can I increase the size of web page?

    I just downloaded Firefox 3.6.6. & after I restarted my computer, all of the pages that I went on the internet are now very low. I have a big screen and had no problem with the previous version of Firefox. The web pages were all big. I know you can click on ' Ctrl + ' to manually expand a page, but how do I adjust the settings so that all pages are big again? Help!

    This has happened

    Each time Firefox opened

    == I downloaded Firefox 3.6.6.

    Try using the Default FullZoom Level extension and set a default zoom level:
    https://addons.Mozilla.org/en-us/Firefox/addon/6965

  • Remote Desktop connection - how do you find the databases

    Objective: see Web site and code that someone has written/produced in ASPX.NET and MS SQL Server 2008 database.

    The reason is that, the website and the database need some changes (to be able to do that, I also know the names of tables-> SQL-> database query).

    I didn't have the right to communicate with someone who made this Web site (this task is different)

    Using Remote Desktop connection, I connected to the server where our Web site is hosted.

    It shows me this:

    http://S13.postimg.org/5xkwpn7lj/Pic_1.jpg

    http://S3.postimg.org/niz6si5cz/Pic_2.jpg

    Question: How do you get to the tables in the databases?

    I'm still a beginner on this remote connection.

    Do you need to download another SQL Server (Microsoft SQL Server 2014 Express) software on my laptop and ASPX.NET to add remote connection via the connection code?

    Can I change/add code directly to its SQL Server software?

    I also see its databases?

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to get down the database since the failure of the upgrade in case of physical standby

    Hi people,

    Can you please tell me how to get down the has no upgrade in case of physical standby database?

    Kind regards

    Taoqir

    The generic steps to upgrade db at the dg environment

    1. stop the database pending the application of recovery logs

    2. stop the recovery of his expedition logs

    3. upgrade the primary database server executable files

    4 level database server executable files shall ensure that

    5. switch to the main database using DBUA or upgrade scripts

    6 mount the backup database

    7 reactivate shipping again Eve elementary school

    8 restart the recovery process run on the standby database again progress apply

  • How do we install the 2nd user of InDesign on another computer?

    How to install the 2nd user of InDesign on another computer? I think I need to record the serial number on my account first, but not sure.

    Help, please!

    It is not a user 2, the license allows you to install and activate twice

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a way to go to a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -Membership questions and problems https://forums.adobe.com/thread/1146459

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    -for Lightroom https://helpx.adobe.com/lightroom/kb/lightroom-downloads.html

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • How can I disable the DC Acrobat and install on another computer?

    Should I sign the Adobe ID on old computer?

    It is for the use of the company, my question is when the user has changed or the computer has changed.

    How can I deactivate the license and install on new user or a new computer?

    Hello

    Launch Acrobat > go to help > deactivate.

    Install and download on a new machine and the license the same as has been done on the previous machine with the same ID or serial number.

    Concerning

    Sukrit diallo

  • How can I start the database without using crsctl? ~ Xev

    Hey guys, it's Xev.

    I'm trying to recover cancellation based, and when I try to put the database to mount with sqlplus, it won't let me.

    How to use srvctl to put the database in a mode of editing?

    I stopped the entire stack of crs on both nodes, but I'm not clear on how to assemble the database now to the CCR?

    Thank you

    Xev.

    Xev Bellringer wrote:

    Ho Toby, when I try this command, srvctl start db d db_unique_name o mount

    It gives me the following two errors:

    PRCD-1027 unable to recover the RAC database

    RPRC-1070 has been unable to verify

    I have the GRID_HOME of source and I use root of course srvctl start because it is in srvctl.

    I have crs stack while I do this? If yes how do I start the CRS battery without the database?

    Hi Xev

    On this step, I'm assuming that you have defined cluster_database = false and have stop the CRS.

    Remember: -.

    1 take a full backup still running (assume that you already have).

    2. make cluster_database = false, before starting the recovery.

    3 went parallelmediarestore the RMAN parameter, because it can slow down the recovery process.

    4 restore the db.

    5. you start db.

    6. set cluster_database = true.

    7. stop your db in normal mode, immediate.

    8. start your database by srvctl

    Good luck...

    Concerning

    Jihane Narain Sylca

  • How to connect to the database for all reports EN

    Hello

    I've developed 100 reports in the client of the production, test purpose that I moved
    test client. How can I connect to the database for all reports at once?

    Concerning
    Thaer

    Hi Thaer,

    You can connect to the connection of database for all reports through the workspace of HFM.

    Connect to the HFM area--> click--> Explorer, and click Tools--> click Manager of database and respective connections of Production Instance to the Instance of Test required information and that you will be able to connect to the Test database for all reports both change.

    Kind regards
    Srikanth

Maybe you are looking for