User Profile
Collapse
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPMy problem is solved! I create another table column in database for this. -
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPI use this option tag by replacing previous one, but same result! No images on page before clicking 'go' button! Is there any solution which display images of first category on page load?
thanks in advance!Leave a comment:
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPIs there any way to display the 1st category images on page load? i.e when the web page will load first time, the images from Featured art list will be on page as Featured art is the first category.Leave a comment:
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPOk thanks. I have done this. My problem is solved.:) Below is the complete code:
Code:<!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=iso-8859-1" /> <title>Untitled
Leave a comment:
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPHere I use single image according to each category, so use only one table with id,art_name and path fields. this works fine with a dropdown list of art_names.
Code:<!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;
Leave a comment:
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPOk I understand your point, but what to set in $categoryVariab le? Now I totally confused because still I tried a lot of things to work it out. Sorry for any silly question.
Here I have two database tables. The dropdown list of category will populate from table1 which have id and 5 category names. The images belong to a particular category will fetch in web page from table2 which have id,category id, image path. The becuart table is a demo table...Leave a comment:
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPCan you elaborate a little please? I have two database tables. One with id, category name and another with id, category id, image path.Leave a comment:
-
Monomita Har replied to How to display images from mysql table at below after selection of dropdown categoryin PHPHere is the code for product.php page where a dropdown list is populated from database:
Code:<body> <form name="product" method="post" action=""> <table align="center" width="10%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Shoplist</td> <td> <select name="shoplist">
Leave a comment:
-
Monomita Har started a topic How to display images from mysql table at below after selection of dropdown categoryin PHPHow to display images from mysql table at below after selection of dropdown category
I want to show a category based shopping items with images on web page that can be found in the most Online shopping sites.I crated two mysql tables: Ist with id, category_name and 2nd with id, category_name, product, image_path. I am able to display all product images at a time on page, but I don't know how to show product images of a single category selected from a dropdown list with submit button at the top of the page. I hope my point is clear... -
Monomita Har replied to how can i show specific data based on currently selected option in a dropdown list?in JavascriptYeah I read it and also tried to find out the problem but cant be able.That's why I request you to explain a little bit.Thanks for any help.Leave a comment:
-
Monomita Har replied to how can i show specific data based on currently selected option in a dropdown list?in Javascriptdear acoder,
Please help me regarding this issue.I have one dropdown list with one button.When user select one among them the web page will show the image from mysql database.
Can you please show me one example if I add one "GO" button and use iframe to show the result on that page? I am very new in this.Thanx in advance!Last edited by acoder; Mar 20 '13, 10:53 PM.Leave a comment:
-
Monomita Har started a topic how can i show specific data based on currently selected option in a dropdown list?in Javascripthow can i show specific data based on currently selected option in a dropdown list?
little background: currently putting together a website that is selling products, many of which come in various sizes, with respectively different prices. I have the database set up to handle all of this.
However, my issue is thus - how can I go about dynamically changing the product type from dropdown on the product's page, based on the user selecting, display related product from this category on the webpage.
My current... -
How do I reset an html validation control via JavaScript? The current code sample clears the error message but does not reset the validation control for the next form submission.Here is my Code:
Code:function resetFrm() { var myTextField = document.getElementById("n"); var myTextField1 = document.getElementById("e"); ; if(myTextField.value != "") { myTextField.style.display
Leave a comment:
-
Can you show me an example?Actuall y I just want to find the shortest way to do that.Leave a comment:
-
Removing of error msg using reset button
I have a form where I use some field validations which shows messages if getting errors or corrects.At bottom there is a reset button to reset all previously input data and javascript messages also.My reset button cant be able to remove javascript messages from page.Can anyone guide me?
Code:<?php /*?><?php session_start(); include "config.php"; ?><?php */?> <!DOCTYPE html PUBLIC "-//W3C//DTD
-
populating from database and autofill textboxes using ajax,php
0 down vote favorite
I am facing a small problem regarding this topic.I had write a code to autofill textboxes from database values when I type a id value in the previous textfield.i.e.i f I type userid,the next textfields will autofill from database without refresh in ajax and php.my problem is that I cant find the error in my code.help me to find out.Here is my code:
a.html
Code:<!DOCTYPE html
-
Monomita Har replied to how to autopopulate dropdown list with previous textfield input from database?in PHPIn this part of code,autopopula te from database part works perfectly.but dropdown is not populated!
Please post the modified code!Leave a comment:
-
Monomita Har replied to how to autopopulate dropdown list with previous textfield input from database?in PHPI am new in ajax and php.Please provide some code.I make a form with fields(autopopu late textbox,selectb ox)here is what I was trying..
a.php
Code:<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="../CSS/autocomplete.css" type="text/css" media="screen">
Leave a comment:
No activity results to display
Show More
Leave a comment: