Basic PHP filtering...

I have a product page showing all the products. This is related to the product-detail page and works fine

< div id = "indexImage" > < a href = "SS13product - description.php?" ID = <? PHP echo $row_Recordset1 ['ProductID'];? > "> < img src ="... / pictures/SS13/thumbs / <? PHP echo $row_Recordset1 ["ImageDetail"];? > "/ > < / a > < / div >"

on the description page, I have the following SQL code

$var1_rsProduct = "-1";

If (isset($_GET['ID'])) {}

$var1_rsProduct = $_GET ['ID'];

}

@mysql_select_db ($database_beau, $beau);

$query_rsProduct = sprintf ("SELECT * FROM beauSS13_Cat, beauSS13_products, beauSS13_Stock, beauSS13_SizeList WHERE the beauSS13_products.") CatID = beauSS13_Cat.catID AND beauSS13_products. ProductID = beauSS13_Stock.ID AND beauSS13_Stock.SizeID = beauSS13_SizeList.SizeID AND beauSS13_products. (ProductID = %s", GetSQLValueString ($var1_rsProduct,"int"));

$rsProduct = mysql_query ($query_rsProduct, $beau) or die (mysql_error ());

$row_rsProduct = mysql_fetch_assoc ($rsProduct);

$totalRows_rsProduct = mysql_num_rows ($rsProduct);

what I want to do on the product description page as well, is to show all the products in this category

I did the following, but it just shows the same product and not all other products

@mysql_select_db ($database_beau, $beau);

$query_rsCategory = "SELECT * FROM beauSS13_Cat, beauSS13_products WHERE the beauSS13_products.» CatID = beauSS13_Cat.catID;

$rsCategory = mysql_query ($query_rsCategory, $beau) or die (mysql_error ());

$row_rsCategory = mysql_fetch_assoc ($rsCategory);

$totalRows_rsCategory = mysql_num_rows ($rsCategory);

where I'm going wrong?

You provide the incorrect argument for the function:

should be

Tags: Dreamweaver

Similar Questions

  • Basic PHP email form does not work after upgrade to 20141

    I have a MAC OS X 10.7.5 - I have 2 sites that use e-mail very basic PHP forms that worked very well until I upgraded to Dreamweaver.  Now, I can fill in the form and there is not error - it seems that it works as before, but I never have the email.  Says Adobe support has nothing to do with the upgrade and there is an error in the script code.  Can someone help me?  Here is the send.php

    <?

    $name = $_POST ['name'];

    $email = $_POST ['email'];

    $tel = $_POST ['such'];

    $comments = $_POST ['comment'];

    $security = $_POST ['security'];

    $to = " [email protected] "; "

    $subject = 'New Contact site';

    $message = ' a visitor of DLPRecordingStudios.com introduced a contact request.\n\nName: $name\n\nEmail: $email\n\nTelephone: $tel\n\nComments: $comments\n\nPlease answer to the request.\n\nBest contact cordially, \n\nYour Webmaster (and master of your universe);

    If ($security == '7') {}

    mail ($to, $Subject, $message);

    Header("Location:contact.php?s=1");

    }

    else {}

    Header("Location:contact.php?s=2");

    }

    ? >

    Thanks - Tracey

    Sure that you will find the upgrade is not to blame, and the timing is a coincidence.

    Cause the most likely problem is your SMTP server being modified settings. It is very common to block mail scripts because they are a major source of spam.

    In addition, as Rob says, always include a "From" header It is not required, but doesn't it have will significantly increase the chances of your anti spam mail.

  • Basic URL filtering

    Hello

    I need to purchase a firewall with a base URL filtering. I only need to deny access to certain URL and do not use a service like Websense or something like that.

    I would do it with an international search report, as the family of 2800, because I don't need anti-x features but only base firewall, VPN and voice features.

    The other option is to use the ASA 5520, but I would like to make the URL simple filtering without the need to use the module of CSC.

    Is there a way to do this?

    Mario.

    There is no need to go to an ASA. Will do a Sri 2800.

    See the following url for more details

    http://Cisco.com/en/us/products/SW/iosswrel/ps5460/prod_bulletin09186a00801af451.html

    http://Cisco.com/en/us/products/ps6643/products_white_paper0900aecd804abb11.shtml

  • How to replace the filtering agent component base windows?

    Apparently, I have a Trojan (Trojan Gen 2 and/or zeroaccess Trojan) virus that has somehow touched Norton (error 5013,3).  Has gone through steps recommended Norton and was able to complete all of them.  Final solution was to replace the motor component of basic Windows filtering.  How can I do this?

    That's your problem (Ive not necessary or personally tried, but found via a search site) - http://answers.microsoft.com/en-us/windows/forum/windows_7-system/replace-the-windows-base-filtering-engine/71e3d196-e97a-4bb9-8cd6-c027247188fe

    Edit - as they are registry patches (I think), I am tempted to back up my system first, or at least back up the registry first - just in case.

  • A simple PHP Question

    Hey guys,.

    I learn some basic PHP to make a simple form, and I have a small question. I have these two test of the PHP, Form.php and acion.php files. What you enter in the form is then displayed via $_POST to action.php that gets displayed. Here are the test sites:

    http://christianstest.info/phptest/form.php

    http://christianstest.info/phptest/action.php

    And for two, verry simple code:

    Form.php

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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" />
    <title>PHP Form Test</title>
    </head>
    
    <body>
    <form action="action.php" method="post">
     <p>Your name: <input type="text" name="name" /></p>
     <p>Your age: <input type="text" name="age" /></p>
     <p><input type="submit" /></p>
    </form>
    
    </body>
    </html>
    

    and action.php


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    Hi <?php echo htmlspecialchars($_POST['name']); ?>.
    You are <?php echo (int)$_POST['age']; ?> years old.
    </body>
    </html>
    

    Now I want to do is have action.php store data entered in Form.php so that someone could link directly to action.php and see what the end user concluded Form.php. Now, if you go directly to a non action.php caching it does nothing for the return of name and age. How can I get this data stick? If in fact, it is not a simple question, can you point me to a tutorial? Thank you!

    You'll want to republish this topic in the Dreamweaver forum:

    http://forums.Adobe.com/community/Dreamweaver?view=discussions

    Take care, Mike

  • Q. how get several results from a single column in a recordset using PHP

    Hello world

    I hope someone can help. I have a column called categories and about 5 categories listed. I want to show all the products listed in say 2 categories. I don't have that basic php skills so know only how to pass a value to the url to display the products of 1 category for example

    Select *.

    PRODUCT

    Category WHERE colname =

    $colname = $_GET ['category'];

    URL... page.php? category = result

    Question is how can I get products in several categories to show for instance all the products of the categories "fruits", "dairy products", 'meat '.

    Your help will be much appreciated, because I'm tired of beating my head against the wall. (should invent a pillow of wall PHP and sell online)

    Thank you

    $colname1 = $_GET ["category1"];

    $colname2 = $_GET ["Category2"];

    $colname3 = $_GET ["category3"];

    Select *.

    PRODUCT

    Category WHERE the ('$colname1', '$colname2', '$colname3')

    > Your help will be very appreciated because I'm tired of beating my head against the wall

    My guess is that you are trying to build a web application without first learning the basics of PHP and SQL. It is certainly the hard way.

  • Contact FlashBuilder php form

    Hi guys,.

    My friend made a flash site, but can not get the order form work so gave it to me since I work in .  I'm pulling my hair out in the course of this sort would appreciate really comment because I'm not a programmer.  The site is hosted on a server that supports PHP, using the demo source code I can get a flash than e-mails from work site but I can't intergrate on his site...

    This is the code for the State of order form.  The site has been designed in flash catalyst, so I can import to flash builder to play with the code.

    http://pastebin.com/aRiZXMMH

    Can someone tell me the simple code which will DISPLAY the values in the text boxes. Name; Electronic mail; Main phone; secondary phone and inquiry/order to a basic PHP script it will send.  Doesn't have to be fancy, I just want to integrate it with this site.  At the time where the Send button just changes the State of State order form thank you.

    See you soon,.

    Damian.

    Have a look here:

    http://pastebin.com/n2L6Qy6t

    and here's the part of PHP:

    http://pastebin.com/Dka1uf8p

    The mail function does not work on my local machine, but it should work on a real server?

  • W8 pro-life, how do you find how much battery life is left on the Tablet?

    I just this receipt for Christmas, I would like to know how you find how much battery life remains on the shelf so I don't know when it needs to be recharged?

    http://batterybarpro.com/Basic.php

    I hope this helps...

  • Base URL Cisco

    Hello!

    Where can I see the basic URL filtering. I want to see which category a particular site.

    Sorry for my English

    Evgeniy salvation,

    You can either go to policytrace.scansafe.net and enter the URL in the output, it will show you the site category. Alternatively you can access senderbase.org and enter the URL here.

    Sincerely,

    Mudachi El Bahja

  • RV042 feature to filter WEB V3

    Dear all,

    We currently install RV-042 V3 Dual routers VPN WAN for a customer with a HQ Office and 3 branches. The client recently asked to use the WEB filter feature in the RV-042 V3 router do the following:

    -' Block all HTTP traffic with the exception of the company Web site.

    We tried all the combinations of "Access rules" & "Content filtering" available under the 'firewall' but we always get the result that is to allow all HTTP Tarffic of all the websites or block ALL HTTP traffic.

    Any ideas on how to block all traffic except for certain URL HTTP (using the URL DO NOT name the IP address).

    Concerning

    The basic content filtering feature, which provides the keyword and URL blocking, on RV042 does not support the scenario you need.

  • How to deal with the error "failed to get the kernel function pointer".

    I was running smoothly first Pro CC all day today. I stopped at the end of the day and now when I try to launch first yet, only a few hours later, the program will not open and I get the error "unable to get the kernel function pointer.  Help!

    I run first on a Macbook pro i5 processor at 2.3 Ghz with 16 GB RAM, graphic card 512 MB intel HD 3000 running OS 10.10.3.  It worked well (although sometimes a little slowly) for one year. I keep the project file on the portable hard drive, media files on a port firewire 800 Gdrive.  It has been working well.

    The only thing that happened between the first success today and refusal to open the first tonight, I ran something of card/holiday calendar interactive multimedia for my son that I had installed a few days ago but not yet opened. When he installed Abobe AIR opened and did the installation.  To see if this can help, I uninstalled the holiday card and rebooted the computer a couple of times. No dice.

    Help!  Luke

    I have the same problem on several machines. What seems to be the case is first is losing track hence basic audio filters are on the system. The only solution that works for me is uninstalling first, then put it back. I found myself to do this every day or almost.

  • In our application, we RESUME Builder and after, we want to show the pdf format. and also, we want to save and send option.

    In our application, we RESUME Builder and after, we want to show the pdf format. and also, we want to save and send option.

    1. for the PDF see TCPDF

    2. for the record, see PHP insert data in MySQL

    3. to send see Basic PHP mail() code function to send e-mail from a form. InMotion Hosting

  • Non-Standalone forums

    Not even sure if this is the place to ask this question, but all the forums I find on the web are autonomous forums. Are there attained forums? I basically want the forums just put on a page and then copy and paste the sidebar to put this in the sidebar. I don't want to have to use iFrames or whatever it is to give the impression that it is part of the site, I want it is in fact part of my site.

    I can't see the rest of the answers for a reason, so I apologize if this has already been answered.

    You will need to install a forum on your server framework.  Here's a comparison of a bunch of different software (thanks wikipedia!): en.wikipedia.org/wiki/Comparison_of_Internet_forum_software

    Choose the one that has the features you want.  I recommend you do one of them written in php, as it will be probably the easiest to set up.  After that, you need to customize the appearance of the software to accompany the rest of your site.  With some very basic php skills, you can get the forum to accompany the rest of your site, and it will reside on your server as well.  Most software has a lot of documentation on their Web sites.  I personally like phpBB: https://www.phpbb.com/

  • get the variable in a URL returned

    Hello, I have a url returned by a payment Center, and I need to use the information to make the variables of

    for example

    www.website.com/Cancel.php?OrderID=969 & Currency = GBP & amount = 0% 2E01 & PM = & Acceptance = & Status = 1 & = CARDNO & ED = & CN = & TRXDATE = 06% 2F03% 2F13 & PAYID = 719527322 & NCERROR = & BRAND = & IP = 86% 2E130% 2E167% 2F 99 and SHASIGN 8D01371831130CFADEB12345678911391FD8332D6B

    so I need the

    $orderID

    $currency

    $amount

    etc...

    How this is done?

    Thanks in advance

    You use the _GET table to retrieve the query string values. http://www.php.net/manual/en/reserved.variables.get.php

    Jonathan, please bookmark the guide to php: http://www.php.net/manual/en/index.php

    It should be your first stop for basic PHP info.

  • Form validation - best method?

    Hi all

    Just curious what people think is a good and simple method of form validation, we can use these days. BTW: I know some php if that helps...

    PHP validation is certainly the best way to do it, and using the native PHP filters makes it almost too easy. You know about them?

    http://NET.tutsplus.com/tutorials/PHP/sanitize-and-validate-data-with-PHP-filters/

Maybe you are looking for

  • Android Market since the Reset problems

    All trying to solve another problem, I reset my phone using the data reset option in the privacy settings Menu. Now after resetting, I find the Android Market with a different style and presentation than before. He used to have an option for "My Apps

  • Remove the apple programs

    How can I remove Quicktime from my computer and all the programs Apple. I went into the control panel and tried, but I got a message that this program is a network service. I can not remove this program, I also want to delete itunes as well.

  • Keeps going back to the screen "computer is not stopped correctly?

    A friend's computer won't start. When you press the power button, it loads well, until the screen where you can choose to start Windows normally, in SafeMode etc due to an improper shutdown. When you select one of the options, it is moving towards th

  • (Redirect) Possible to carry out work

    I have an Ispiron 570 and last year, I bought a dell graphics card, a Geforce GT 610, I realize that the computer is not a gaming PC, but it does the job, I was wondering that if someone could help me choose a graphics card that is a little better th

  • BlackBerry Smartphones Media Manager works only with "BOLD"

    I installed the Desktop Manager 4.6 v software, but Media Manager is greyed out and cannot be used. Any ideas?