a link to a recordset using a filter using confused php

I have a product page that shows all the products in the form of images.

When the user clicks on an image I need to link to all products with the same id of category

below, I have the product of the product page

"" < a href = "trousers.php" > < img src = "... / pictures/BL2012/romper costume, small, JPEG, Black Superhero.jpg" width = "115" height = "86" alt = "Raglan romper" / > < / has >

I then the results page and all I want to see on this page is the pants which are in category 4 in the mysql database

This is the detail page php content (I have so far joined the product with the category table table

<? PHP

@mysql_select_db ($database_beau, $beau);

$query_Recordset1 = "SELECT * FROM beaProdSizes, beauCat WHERE beaProdSizes.CatID = beauCat.catID";

$Recordset1 = mysql_query ($query_Recordset1, $beau) or die (mysql_error ());

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

$totalRows_Recordset1 = mysql_num_rows ($Recordset1);

? >

I have also a menu "select" currently fulfils all the products that the category has not been filtered

< form id = "FormName" action = "" method = "get" name = "FormName" > "

< select id = "selectName" name = "name" >

< option value = "select Design" > select Design < / option >

<? PHP

{}

? >

< option value = "<?" PHP echo $row_Recordset1 ['name'];? > "> <?" PHP echo $row_Recordset1 ['name'];? > < / option >

<? PHP

} While ($row_Recordset1 = mysql_fetch_assoc ($Recordset1));

$rows = mysql_num_rows ($Recordset1);

If ($rows > 0) {}

mysql_data_seek ($Recordset1, 0);

$row_Recordset1 = mysql_fetch_assoc ($Recordset1);

}

? >

< / select >

Thanks in advance

Jonathan Fortis wrote:

When the user clicks on an image I need to link to all products with the same id of category

Add a query string for the link:

?CatID=4">Raglan Romper Suit

In the advanced Recordset dialog box, change the SQL query like this:

SELECT * FROM beaProdSizes, beauCat

WHERE beaProdSizes.CatID = beauCat.catID

AND beauCat.catID = var1

Click on the button "+" next to the Variables and use the following settings:

Name: var1

Type: Integer

Default value: [use-1 or ID of a default category]

Running value: $_GET ['CatID']

Tags: Dreamweaver

Similar Questions

  • What are the type of links in e-mail used in Eloqua?

    Can someone tell me the type of links in e-mail used in Eloqua?

    Hello

    There are two types of links direct and redirect that serve to Eloqua.

    Thank you

    Eloqua Experts

  • My CS5 Illustrator (just updated) guard smoking when I either try to re - create a link, scroll through fonts, use the pipette for the selection of the color of police/or save to a new folder outside of the previously used. Even when I choose to close, he

    My CS5 Illustrator (just updated) guard smoking when I either try to re - create a link, scroll through fonts, use the pipette for the selection of the color of police/or save to a new folder outside of the previously used. Even when I choose to close, he said that it "unexpected." Really irritating - ideas?

    Your options are:

    -try to make it work (could take a few hours and may does not always work)

    -get the CS6 (has problems as well, but works a little better)

    -get CC

    -install a virtual machine with an older system (10.6 or 10.8)

    -Check if your Mac is not as new as you think and you can still run Yosemite (also has problems, but perhaps not as much)

  • Links to learn and use Oracle audit

    Hi all
    I want links to learn and use Oracle DB audit featured
    I heard recently that the audit has two types: manual right and by Oracle? I want this one by Oracle
    This is the right forum for this thread?
    Thank you

    Note: I use DB Oracle 10g R2

    Dev. Men wrote:
    Hi all
    I want links to learn and use Oracle DB audit featured
    I heard recently that the audit has two types: manual right and by Oracle? I want this one by Oracle
    This is the right forum for this thread?
    Thank you

    Note: I use DB Oracle 10g R2

    Find this link to use Oracle audit:
    http://download.Oracle.com/docs/CD/B19306_01/network.102/b14266/cfgaudit.htm

  • What is the difference between the use of PHP and BlazeDS to connect to a service?

    Definition from wikipedia:

    BlazeDS is a server Java remoting and web messaging technology that allows you to connect to back-end distributed data and send data in real time to Adobe Flex and Adobe Integrated Runtime (AIR) Rich Internet applications (RIA). Because of its open licensing, BlazeDS is not forbidden to be used with other client platforms, such as JavaScript/Ajax.

    This means that BlazeDS acts as a server like Apache?

    What is a back-end distributed data?

    Basically, is that you use right PHP, then you do everything yourself, unless you use a framework written in PHP such as AMFPHP.

    So with PHP you use Flex HTTPService control to call your PHP scripts, and the communication is one-way, you call the script and handle the returned data.

    With BlazeDS and AMFPHP, you can use the Flex RemoteObject controls for two-way functionality "server push", as a stock market update automatically without the user do anything if the price of a stock rises.

    Backend distributed data simply means that you have the data elsewhere (not on the user's computer), and it could be distributed (on several servers).

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.chikaradev.com
    Adobe Flex development and Support Services

  • How to download a file using FileReference + PHP?

    How to download a file using FileReference + PHP?

    If you could help me with two examples of code AS code and code PHP to a working example.

    Thank you

    Jorge

    http://www.Flash-DB.com/tutorials/upload/upFiles.php?page=1

  • Keep using Sc_results.php

    Dear all

    I work with the service to keep using Sc_results.php in which we have the function of keeping employees.

    In what we can use the report to send the right to Notification?

    My problem is that I need a few new Notifications to join this list and also remove some of the Notifications that are specific to the United States.

    It would be a great help if someone can tell me how we can do it.

    Thanks for the help in advance.

    ML 130795.1 refers to notifications workflow (p33) "issued Messages of model reporting forms.

  • How to filter the Recordsets using the session variable?  Please help this makes me crazy...!

    I'm having the same problem as user "Gabe the facilitator" in a message sent in 2007.

    «My recordset that animates a PivotTable will not filter the results based on a session variable.» I know that the session variables are working because I have the echo of session variable in the page (dragged-n-dropped my session variable since the panels on my page links), and that works fine. So why can't filter my recordset with the same session variable? »

    Here is the code:

    <? php require_once('Connections/mockconn.php');? >

    <? PHP

    session_start();

    ? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    {if (! session_id ())}

    session_start();

    }

    $colname_info = "-1";

    If (isset($_SESSION['email'])) {}

    $colname_info = $_SESSION ['email'];

    }

    @mysql_select_db ($database_mockconn, $mockconn);

    $query_info = sprintf ("SELECT name, last_name, email, password registration E-mail WHERE = %s", GetSQLValueString ($colname_info, "text") ");

    $info = mysql_query ($query_info, $mockconn) or die (mysql_error ());

    $row_info = mysql_fetch_assoc ($info);

    $totalRows_info = mysql_num_rows ($info);

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    Home < title > < /title >

    < / head >

    < body >

    < div id = "info" > Hello <? PHP echo $row_info [""];? > < / div >

    <? PHP

    If (isset($_SESSION['email'])) {}

    echo ' your email: '.' '. $_SESSION ['email'].' '.' good work ";}

    ? >

    < / body >

    < / html >

    PLEASE PLEASE HELP... I've been to this day of...

    How do I filter the recordset based on the value of the session variable

    Then it works fine.

    Each test returned correct results.  We checked one) your session variable is set correctly, b) the SQL statement is properly filtered by email, and c) the returned results are as expected.

  • Impossible to filter a recordset using a session variable

    I have a voluntary application page, then when volunteers press < Submit > their info is stored in a MySQl db table and a session variable is created containing the primary key of the record in the table, control is passed to a page of 'success' The success page accesses the session variable (I proved this by displaying the session on the success page variable) so my next step was to create a recordset in the success with a filter page using the session variable to select the appropriate line in the table, allowing me to view the volunteer to the info They argued.

    I created a page to pass the test that displays the session variable and a field of the volunteer info. When I test this I can't see the session variable is displayed, but the corresponding volunteer info of the recordset field is not displayed.

    The volunteer application page is here www.hollisterairshow.com/volunteerapp.php and the successpage is here www.hollisterairshow.com/thanksvol.php

    The code that creates the session variable in the voluntary application page is displayed below

    $_SESSION ['volunteer_id'] = mysql_insert_id();

    The code to display the session variable in the success page is shown below

    <? PHP echo $_SESSION ['volunteer_id'];? >

    The code to display the volunteer info is shown below

    Thank you < h1 > <? PHP echo $row_rsVolunteerApp ["FirstName"];? >! < / h1 >

    The recordset definition is shown below

    rsVolunteerApp.jpg

    The result of the test success page is shown below, as you can see the name of the volunteers is not displayed immediately after the "Thank you" message, but the session variable containing the correct primary key (41) is displayed correctly.

    sessiontest.jpg

    Someone has an idea what I am doing wrong?

    Thank you

    Tony

    Where did you put session_start()? It should be before the variable is accessible. This is obviously before the line that displays the value in your page, but that's before the SQL query is generated?

    Also, have you checked in phpMyAdmin to see if volunteernumber 41A all values in the database?

  • Filter a recordset using the other.

    I have two tables called shopping_cart and products that have the following columns:

    products - product_id, name, size, price, reviews, inventory

    Shopping_Cart - cart_id, product_id, quantity, session_id

    I want to be able to display the contents of my basket on screen, using only the items in the shopping_cart table filtered by session_id but with all the product information which is held in the products table.

    I have created a recordset to filter basket session_id without problem, but I do not know how to extract the information in the table for each entry?

    Using PHP/MySQL - have very limited knowledge I'm afraid.

    Thank you

    Mark

    marcobraynio wrote:

    I do not understand the code generated here - DW has placed a %s where I thought $_SESSION ['session_id'] would go.

    The code generated by Dreamweaver is correct. Dreamweaver uses the sprintf() function to insert the variable in the SQL query. Get your head around sprintf() can be difficult at first. The function takes a minimum of two arguments. The first argument is the string that you want to insert variables in. Instead of insert variables directly in the string, you use placeholders that always start with %. In this case %s represents a string.

    The remaining arguments are the values that you want to replace the placeholders. If you look at the script generated by Dreamweaver, the second argument of the sprintf() function is GetSQLValueString ($colname_getCart, "text"). GetSQLValueString() is a custom function created by Dreamweaver that checks the value of a variable and makes it safe to insert in a SQL query. In your case, $colname_getCart is the equivalent of $_SESSION ['session_id'].

    There is no problem using the $_SESSION ['session_id'] because PHP uses a different to value refers to the session ID (internal that identifies the session, not your variable). However, to avoid confusion, it would be preferable to use a different name, e.g. $_SESSION ['user_id'].

    If your application works with a name that is hard coded, but not with the session variable, this means that the session variable is not recognized on the page. Use echo to check if the variable is passed to the page.

    if (isset($_SESSION['user_id'])) {
      echo $_SESSION['user_id'];
    } else {
      echo 'Session variable does not exist';
    }
    
  • You can use a php variable to filter a Recordset?

    I have a table of "events", which have a description and, more importantly, for this a number of months. (1-12 for the months of the year, when the event takes place).

    I used the function date of php on a page for digitally, what month it is now $thismonth = date("n");

    I want to filter my recordset by bringing only events which take place during the current month so where event_month = $thismonth

    IS this possible? It seems it should be easy to do but I can't make it work.

    Thanks in advance

    Dave

    jnkjnkjnkjnkjn wrote:
    > I want to filter my recordset by bringing only events taking place
    > during the month so where event_month = $thismonth
    >
    > IS it possible? It seems it should be easy to do but I can't seem to
    > work.

    Yes, it is very easy, but you need to do a little coding by hand. In the
    Advanced Recordset dialog box set the end of the SQL query to the place WHERE
    event_month = 1. When you save the Recordset, change the SQL for
    WHERE event_month = $thismonth.

    --
    Adobe Community Expert David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • link to the interactive report with filter

    I tried to put in place a link to an interactive report in passing along a filter setting using the method described in the user guide. I've tried everything I can think of to make it work, but the report always ends by displaying as unfiltered. I don't get any errors, I don't see any filtering. I tried to directly modify the URL and adding the filter data (that is, add IREQ_ParentSeqID:2 to the URL) and I also tried to pass the filter data by creating a branch from another page and have the branch collar data. In both cases, I was unable to make it work. When I create the filter directly in the report, it works fine. Here is a sample
    URL: / f? p123:1302:3440331697632217:no:IREQ_ParentSeqD:2

    The URL takes me to the correct page but no filtering occurs. Here is the definition of the column in the interactive report:
    Column name: ParentSeqID
    Column type: NUMBER

    I'm under APEX version 3.2.0.00.27

    Dale,
    What happens if you remove the EQUALIZATION of the setting? Theoretically, it shouldn't matter, but I always send my equals as just IR_COLUMN and it works fine.

    You can try f? p = 123:1302:1023072115021841:NO:IR_ParentSeqID:25

    and see if that makes a difference? Just a shot in the water.

    If this does not work, try to delete the alias for the moment and sending the column full name and see if that makes a difference. I wonder if its because your alias is in a specific case (per the "")

  • I can't open links in google search using Firefox.

    I can open the links when I search with Bing or Yahoo and Google looking for work when I use IE, so it's only when I use Google with Firefox. Also, if I try to open links in a new tab, I get error 404. For example, if I try to open bbc.co.uk/news from the search page it does not do anything, if I try to open it in a new tab I get Error 404 and this string in the address bar: https://www.google.com/url?sa=t & rct = j & q = & esrc = s & source = web & cd = 1 & cad = AJLN & uact = 8 & ved = 0CB4QFjAAahUKEwjEzpKmif3IAhUM9GMKHQZeClQ & url = http %3 has % 2F % www.bbc.com%2Fnews 2F, & usg = AFQjCNFZIG7IKy3foMCFY0dzRExKv9KjFQ

    I tried refreshing Firefox and disabling add-ons; I don't know what else to do.

    I have Windows 10, if this has something to do with the problem.

    You can try to delete the files (extensions.json and extensions.ini) extensions.* and compatibility.ini in the profile folder of Firefox to reset the extensions registry.

    New files will be created if necessary.

    See "extension corrupted files:

    If you see disabled extensions or is not compatible in "Firefox button/Tools menu > Modules > Extensions ' and then click the Tools button at the left end of the search bar to check if there is an update available compatibility.

    If that didn't help then also delete the addons.json file and the file prefs.js reset setting pref of the extension of the Protection of Kaspersky.

    You can use this button to go to the current Firefox profile folder:

  • visited links not changing color using the latest Firefox and windows 10

    running windows 10 and the latest firefox freshly downloaded and installed.
    have checked the visited_links is enabled, and I'm not running in private mode
    I know it's only a problem of firefox like links change color using other browsers

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • Link to serial number USE of test bench with a labview VI

    Hello

    I want to use the number of input series to USE test bench in one of the labview VI of in my sequence so that I can output a few numbers in a spreadsheet, and they include the serial number of the object to measure. Is there a way to link the 2?

    Chris

    (See the attached example)

    Hello

    You can get your serial number using the following search string "RunState.Caller.Locals.UUT.SerialNumber".

    There is an example on the following link:

    http://forums.NI.com/NI/board/message?board.ID=330&message.ID=6938&query.ID=198397#M6938

    Hope this helps

    Concerning

    Ray Farmer

Maybe you are looking for

  • How can I save an email as a text file before you delete it my Inbox?

    Some emails I want to save on my computer so that I can view without opening to the top of my email. I'm used to be able to do this by registering in a document as a text file folder. (Outlook express). I don't find this capablity in Thunderbird. If

  • How to reset the time on my iPad?

    How can I st the clock on my iPad?  I can set the clock of the world, wake up, the timer, but not the time that appears at the top of the screen.  My iPad is not operated by a satellite.

  • Qosmio F-15 does not turn on

    Hey all. So I've dealt with a friends Qosimo F15. A long story short, after that I have all done in my knowledge/power lift the computer and works well, that the system is returned to my friend with no sound and bad running. The problem with the soun

  • c:\windows\installer\{85cd21f0-2d0b-14e9-2cc5-c96608e07b98}\u 00000008

    This is one of the two folders that the trogan. DropperBCMiner virus keeps creating after running in SafeMode to Microsoft Security Essentials and removes the file. The other file is Trogan.Sirefef the same url with 80000000 @ on the end. When the sy

  • Desktop icons disappear over and over again

    Whenever I turn on my laptop (I have Vista 64) my desktop icons are invisible. I have to right-click, select this option to make the invisible icons (even if they are already), and then repeat the process to choose to make visible again. After that,