Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

dan...

Members
  • Joined

  • Last visited

Everything posted by dan...

  1. Hi Thank you so much for the reply, that's what i thought, i'm always a bit sceptical when sites on you tube etc say that they can promise the world lol
  2. Hey guys, i'm new to seo, my site has recently gone live and although some content still needs to be edited it's working and getting hits, although not very many. I've been going through this part if the forum for days seems like weeks but everything i see seems more advanced or i don't understand it. Basically i have narrowed the keyword down to what people search for my industry and the keyword is canvas, canvas artwork etc which i have put in my site, i've also put in my town name to get me to rank in local places. So first question 1) I am showing on google places but as a dot, you have to zoom in and click on the dot to get my info which no one is ever gonna do, just to let you know, it's no longer in my places list when i log in and have contacted google to delete it from the maps so i can start again, when i try to add it and input the telephone number, it says no company is found matching so i have not added it again until i know the other is deleted, does anyone have any info on what to do or should i just wait for google? 2) I keep seeing sites and people claiming they can get your site ranking in google in a matter of hours or days, surely this is not possible? but it's making me feel that i am doing something wrong, the only way i show up in google is if i type in my company name? I've looked at the guides on here and everywhere else and i think i've followed them correctly so why am i not showing Thanks
  3. Funny that, i look at mine and I see the links go up, then i realise that i have been on it editing ha ha
  4. I've never added an image to the database before, do i use varchar or something else?
  5. i might have to take that on board, the evco-design site which i use for testing is free at the moment but i think that runs out soon.
  6. p.s. I have added another page to it, so i do now understand more
  7. Your right, but i actually understand it, i'm now trying to see if i can add more pages to see if i can actually do it by myself, i find this is my best way of learning. Let's start on the first selection, I would like an image to show next to the drop down list (I guess i can do this with css, i hope) then once i choose Acrylic, it will replace the standard image with an image of acrylic, then if i select Block Mounted, it will replace the Acrylic image with the Block Mounted one etc etc check out my site to show you what i mean but this is done in html and i need it working the new way to talk to the database etc http://www.evco-design.co.uk/
  8. I get it now lol, even then i had to keep going back and checking it before it clicked. ok, could you please help me out with the image part, i know i'm asking a lot but you've been great and patient.
  9. OK, i have deleted the test table and put this in the database, but i don't get what you mean ? Does it mean that if i select 2 Block Mounted / 4 Clipped or 5 Framed then the field that has 2,4,5 will show?
  10. acrylic 5mm 10mm block mounted white black wrapped canvas white black coloured wrapped
  11. I forgot about that, but yeah i need it to link somehow, what you have put down is how it should be, i need that put in as well somehow lol
  12. This is my database, i've just been testing it at the moment database : test [frames] [iD][frame] [image_style] [iD][image_style] [edge_style] [iD][edge_style] page1 <html><head></head><body> <form method="get" action="test8.php"> <select name="frame"> <?php error_reporting (0) ; $connect = mysql_connect ("********","******","******") or die(mysql_error()); mysql_select_db("test") or die (mysql_error()); echo "connected<p>"; //extract data $extract = mysql_query("SELECT * from frame ORDER BY id ASC"); $numrows = mysql_num_rows ("$extract"); echo "<option>Please Select</option>"; while ($row = mysql_fetch_assoc ($extract)) { $id = $row['id']; $frame = $row['frame']; echo " <option>$frame</option>"; } ?> </select> <input type="submit" value="next page" /> </form> </body></html> page2 <?php if(!isset($_GET['frame'])){ header( 'Location: test7.php' ) ; }?> <html><head></head><body> <form method="get" action="test9.php"> <input type="hidden" name="frame" value="<?php echo $_GET['frame']; ?>"> <select name="image_style"> <?php error_reporting (0) ; $connect = mysql_connect ("********","******","******") or die(mysql_error()); mysql_select_db("test") or die (mysql_error()); echo "connected<p>"; //extract data $extract = mysql_query("SELECT * from image_style ORDER BY id ASC"); $numrows = mysql_num_rows ("$extract"); //Selection 1 echo "<option>Please Select</option>"; if($_GET['frame'] == "Acrylic") {while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 2 echo ""; if($_GET['frame'] == "Block Mounted"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 3 echo ""; if($_GET['frame'] == "Canvas"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 4 echo ""; if($_GET['frame'] == "Clipped"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 5 echo ""; if($_GET['frame'] == "Framed"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} ?> </select> <input type="submit" value="next page" /> </form> </body></html> page3 <?php if(!isset($_GET['image_style'])){ header( 'Location: test8.php' ) ; }?> <html><head></head><body> <form method="get" action="test9.php"> <input type="hidden" name="image_style" value="<?php echo $_GET['image_style']; ?>"> <select name="edge_style"> <?php error_reporting (0) ; $connect = mysql_connect ("********","******","******") or die(mysql_error()); mysql_select_db("test") or die (mysql_error()); echo "connected<p>"; //extract data $extract = mysql_query("SELECT * from edge_style ORDER BY id ASC"); $numrows = mysql_num_rows ("$extract"); //Selection 1 echo "<option>Please Select</option>"; if($_GET['Image_style'] == "Original") {while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $edge_style = $row['edge_style']; echo "<option>$edge_style</option>";}} //Selection 2 echo ""; if($_GET['Image_style'] == "Black & White"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $edge_style = $row['edge_style']; echo "<option>$edge_style</option>";}} //Selection 3 echo ""; if($_GET['Image_style'] == "Sepia"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $edge_style = $row['edge_style']; echo "<option>$edge_style</option>";}} //Selection 4 echo ""; if($_GET['Image_style'] == "Colour Splash"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $edge_style = $row['edge_style']; echo "<option>$edge_style</option>";}} //Selection 5 echo ""; if($_GET['Image_style'] == "Framed"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $edge_style = $row['edge_style']; echo "<option>$edge_style</option>";}} ?> </select> <input type="submit" value="next page" /> </form> </body></html> page 4 <html><head></head><body> <?php if(isset($_GET['frame'])) { echo "frame = " . $_GET['frame']; } if(isset($_GET['image_style'])) { echo "<br /><br />color = " . $_GET['image_style']; } ?> </body></html>
  13. Hi geeks, you have been a fantastic help and i don't know where i would be if it wasn't for you but i think you over estimate me, i've never used ajax before and and i've looked at the link and can't make sense of it or know where to add it, i've also got the next page which again need the images to show on the selection, could you help me out one last time <?php if(!isset($_GET['frame'])){ header( 'Location: test7.php' ) ; }?> <html><head></head><body> <form method="get" action="test9.php"> <input type="hidden" name="frame" value="<?php echo $_GET['frame']; ?>"> <select name="image_style"> <?php error_reporting (0) ; $connect = mysql_connect ("*****","******","*******") or die(mysql_error()); mysql_select_db("******") or die (mysql_error()); echo "connected<p>"; //extract data $extract = mysql_query("SELECT * from image_style ORDER BY id ASC"); $numrows = mysql_num_rows ("$extract"); //Selection 1 echo "<option>Please Select</option>"; if($_GET['frame'] == "Acrylic") {while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 2 echo ""; if($_GET['frame'] == "Block Mounted"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 3 echo ""; if($_GET['frame'] == "Canvas"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 4 echo ""; if($_GET['frame'] == "Clipped"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} //Selection 5 echo ""; if($_GET['frame'] == "Framed"){ while ($row = mysql_fetch_assoc ($extract)){ $id = $row['id']; $image_style = $row['image_style']; echo "<option>$image_style</option>";}} ?> </select> <input type="submit" value="next page" /> </form> </body></html>
  14. Can someone please help me, does anyone know how i can get an image to show depending on the selection. Can this be done in php? i know it can if it where a normal html drop down list i.e. <option value='1'>selection 1</option> as i could use the value but with the php, i don't have that Thanks in advanced. the <option>$frame</option> has 5 options in the sql database, i would an image to show for each selection so that when you click on it, the user has something visual to confirm what they are about to buy etc. Please find the code below <html><head></head><body> <form method="get" action="test8.php"> <select name="frame"> <?php error_reporting (0) ; $connect = mysql_connect ("*****","*******","******") or die(mysql_error()); mysql_select_db("********") or die (mysql_error()); echo "connected<p>"; //extract data $extract = mysql_query("SELECT * from frame ORDER BY id ASC"); $numrows = mysql_num_rows ("$extract"); echo "<option>Please Select</option>"; while ($row = mysql_fetch_assoc ($extract)) { $id = $row['id']; $frame = $row['frame']; echo " <option>$frame</option>"; } ?> </select> <input type="submit" value="next page" /> </form> </body></html>
  15. Looks good but i can't get the code to work, i'll have a play about with it and see if i can, in the meantime, if you can figure it out before me, i'll keep checking back as it takes me ages todo stuff like this.
  16. Hi I'm new and i'm not sure what the correct name for this is. I have drop down lists on separate pages and want them linked to each other. i.e. the first list has options 1,2,3,4 if i select 1 and submit, it will take me to another page with a drop down list displaying 1's options, but if i select 2, it will take me to the same page but with the drop down list displaying 2's options, can some one help, i guess it's javascript which is why i have put the message in this section. code i already have is: PAGE_1.php <html><head></head><body> <form method="get" action="PAGE_2.php"> <select name="material"> <option value="Acrylic">Acrylic</option> <option value="Block Mounted">Block Mounted</option> <option value="Canvas">Canvas</option> <option value="Clipped">Clipped</option> <option value="Framed">Framed</option> </select> <input type="submit" value="next page" /> </form> </body></html> PAGE_2.php <html><head></head><body> <form method="get" action="PAGE_3.php?"> <input type="hidden" name="material" value="<?php echo $_GET['material']; ?>"> <select name="color"> <option value="blue">blue</option> <option value="red">red</option> <option value="yellow">yellow</option> </select> <input type="submit" value="next page" /> </form> </body></html> PAGE_3.php <html><head></head><body> <?php echo "material = " . $_GET['material']; echo "<br /><br />color = " . $_GET['color']; ?> </body></html>
  17. Thats quality, thanks, how do i now adjust it so that if i click acrylic, it will only take me to acrylic options, i.e. if i click acrylic, it only brings up yellow?
  18. if anyone is interested, i managed to tweak it myself, i have to files first called test.php second is test2.php, here is the code for test.php <?php $connect = mysql_connect ("localhost","root","root") or die(mysql_error()); mysql_select_db("dd") or die (mysql_error()); ?> <html> <head> <title>Multiple drop down list box from plus2net</title> <script language=JavaScript> function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='test.php?cat=' + val ; } </script> </head> <body> <? @$cat=$_GET['cat']; // Use this line or below line if register_global is off if(strlen($cat) > 0 and !is_numeric($cat)){ // to check if $cat is numeric data or not. echo "Data Error"; exit; } echo "<form method=get name=f1 action='test2.php'>"; $quer2=mysql_query("SELECT DISTINCT category,cat_id FROM category order by category"); echo "<select name='cat' onchange=\"reload(this.form)\"><option value=''>Please Select</option>"; while($noticia2 = mysql_fetch_array($quer2)) { if($noticia2['cat_id']=$cat){echo "<option selected value='$noticia2[cat_id]'>$noticia2[category]</option>"."<BR>";} else{echo "<option value='$noticia2[cat_id]'>$noticia2[category]</option>";} } echo "</select>"; echo "<input type=submit value=Submit>"; echo "</form>"; ?> ************************here is the code for tes2.php <?php $connect = mysql_connect ("********","********","********") or die(mysql_error()); mysql_select_db("******") or die (mysql_error()); ?> <html> <head> <title>Multiple drop down list box from plus2net</title> <script language=JavaScript> function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='test2.php?cat=' + val ; } </script> </head> <body> <? @$cat=$HTTP_GET_VARS['cat']; // Use this line or below line if register_global is off if(strlen($cat) > 0 and !is_numeric($cat)){ // to check if $cat is numeric data or not. echo "Data Error"; exit; } if(isset($cat) and strlen($cat) > 0){ $quer=mysql_query("SELECT DISTINCT subcategory FROM subcategory where cat_id=$cat order by subcategory"); }else{$quer=mysql_query("SELECT DISTINCT subcategory FROM subcategory order by subcategory"); } echo "<select name='subcat'><option value=''>Please Select</option>"; while($noticia = mysql_fetch_array($quer)) { echo "<option value='$noticia[subcategory]'>$noticia[subcategory]</option>"; } echo "</select>"; echo "<input type=submit value=Submit>"; echo "</form>"; ?> ************************ I hope this helps someone like me who's new, i just need to figure out how to post the data to the database once all the selections have been made, anyone?
  19. Hi I found this code by googling, I would like to place the second list on a separate page and possible add a 3rd, can anyone help to tweak as i've stared at it for ages and it's over my head? <?php //*************************************** // This is downloaded from www.plus2net.com // /// You can distribute this code with the link to www.plus2net.com /// // Please don't remove the link to www.plus2net.com /// // This is for your learning only not for commercial use. /////// //The author is not responsible for any type of loss or problem or damage on using this script.// /// You can use it at your own risk. ///// //***************************************** $dbservertype='mysql'; $servername='localhost'; // username and password to log onto db server $dbusername=''; $dbpassword=''; // name of database $dbname='dd'; //////////////////////////////////////// ////// DONOT EDIT BELOW ///////// /////////////////////////////////////// connecttodb($servername,$dbname,$dbusername,$dbpassword); function connecttodb($servername,$dbname,$dbuser,$dbpassword) { global $link; $link=mysql_connect ("$servername","$dbuser","$dbpassword"); if(!$link){die("Could not connect to MySQL");} mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error()); } //////// End of connecting to database //////// ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title>Multiple drop down list box from plus2net</title> <script language=JavaScript> function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='dd.php?cat=' + val ; } </script> </head> <body> <? /* If register_global is off in your server then after reloading of the page to get the value of cat from query string we have to take special care. To read more on register_global visit. http://www.plus2net.com/php_tutorial/register-globals.php */ @$cat=$_GET['cat']; // Use this line or below line if register_global is off if(strlen($cat) > 0 and !is_numeric($cat)){ // to check if $cat is numeric data or not. echo "Data Error"; exit; } //@$cat=$HTTP_GET_VARS['cat']; // Use this line or above line if register_global is off ///////// Getting the data from Mysql table for first list box////////// $quer2=mysql_query("SELECT DISTINCT category,cat_id FROM category order by category"); ///////////// End of query for first list box//////////// /////// for second drop down list we will check if category is selected else we will display all the subcategory///// if(isset($cat) and strlen($cat) > 0){ $quer=mysql_query("SELECT DISTINCT subcategory FROM subcategory where cat_id=$cat order by subcategory"); }else{$quer=mysql_query("SELECT DISTINCT subcategory FROM subcategory order by subcategory"); } ////////// end of query for second subcategory drop down list box /////////////////////////// echo "<form method=post name=f1 action='dd-check.php'>"; /// Add your form processing page address to action in above line. Example action=dd-check.php//// ////////// Starting of first drop downlist ///////// echo "<select name='cat' onchange=\"reload(this.form)\"><option value=''>Select one</option>"; while($noticia2 = mysql_fetch_array($quer2)) { if($noticia2['cat_id']=$cat){echo "<option selected value='$noticia2[cat_id]'>$noticia2[category]</option>"."<BR>";} else{echo "<option value='$noticia2[cat_id]'>$noticia2[category]</option>";} } echo "</select>"; ////////////////// This will end the first drop down list /////////// ////////// Starting of second drop downlist ///////// echo "<select name='subcat'><option value=''>Select one</option>"; while($noticia = mysql_fetch_array($quer)) { echo "<option value='$noticia[subcategory]'>$noticia[subcategory]</option>"; } echo "</select>"; ////////////////// This will end the second drop down list /////////// //// Add your other form fields as needed here///// echo "<input type=submit value=Submit>"; echo "</form>"; ?> <center><a href='http://www.plus2net.com'>PHP SQL HTML free tutorials and scripts</a></center> </body> </html>
  20. ok, i've managed to get the code working and it takes me to another page but after 2 selections, the first variable disappears from the url, is that normal? here is the code: <?php //get current url $page = $_SERVER["REQUEST_URI"]; ?> <form method="get" action='acrylic_image_styles_new.php'> <select name="frame"> <option value="Acrylic">Acrylic</option> <option value="Block Mounted">Block Mounted</option> <option value="Canvas">Canvas</option> <option value="Clipped">Clipped</option> <option value="Framed">Framed</option> </select><br /> <br /> <form method="link" action="http://www.paypal.com"><input'>http://www.paypal.com"><input type="submit" class="submit_next" onclick="MM_validateForm('email','','RisEmail');return document.MM_returnValue" value="" /></form> </form> ************************************************************ Also, i have a script that allows me to change the image on selection, but when i add it i can't get both working together, here's the code: pay particular attention to <select id="selection" name="selection" method='post' action='dk.php'> <script type="text/javascript"> window.onload=function() { var caption=['Default Image Caption', 'Our one piece frame selection comes in all sizes and frame styles, and ideal choice for any picture, please beaware that image cropping may occure', 'This lovely 3 piece is a fine choice to break up that wide image, the dimensions are 40" x 30", please beaware that image cropping may occure ', 'Caption3', 'Caption4', 'Caption5', 'Caption6', 'Caption7',], // This will be your images caption bp='my images/Thumbnails/', //base url of your images imgnum=14, //Number of your images. This should match on your comboboxes options. thumb=document.getElementById('thumb'), //id of your image that will be changing description=document.getElementById('caption'), //id of your caption combobox=document.getElementById('selection'); // id of your combobox. combobox.onchange=function() { thumb.src=bp+'supports'+this.value+'.jpg'; description.innerHTML=caption[this.value]; } } </script> </head> <div id="customise_wrapper"> <div id="customise"><br /> <div id="customise_stage1"><img src="my images/Thumbnails/lets1_2.jpg" width="120" height="70" /></div> <div id="customise_stage2"><img src="my images/Thumbnails/lets2_3.jpg" width="120" height="70" /></div> <div id="customise_stage3"></div> <div id="customise_stage4"></div> <div id="customise_stage5"></div> <div id="customise_text"><br /> Please select the type of frame that you would like your image placed onto</div> <div id="customise_content"> <div id="customise_menu1">Frame Types<br/> <br/> <?php //get current url $page = $_SERVER["REQUEST_URI"]; ?> <select id="selection" name="selection" method='post' action='dk.php'> <select name="frame"> <option value="1">Acrylic</option> <option value="2">Block Mounted</option> <option value="3">Canvas</option> <option value="4">Clipped</option> <option value="5">Framed</option> </select><br /> <br /> <form method="link" action="http://www.paypal.com"><input type="submit" class="submit_next" onclick="MM_validateForm('email','','RisEmail');return document.MM_returnValue" value="" /></form> </form>
  21. I've put it on another domain and now it works, try www.digitalkandi.com but when you click the submit button below the drop down list, it doesn't take you to the next page, just the php file? it should be taking you to: style.html

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.