197 Posted Topics
Re: I suspect you have a cross-browser JavaScript issue. | |
Re: If I were going to use tables for a quick layout they would have been for the 3 columns at the top, but you have used floated divs, then further down you appear to be using a table where simple divs or paras are called for. I would start by … ![]() | |
Re: Your appear to be missing a mysql_select_db() | |
Re: Are you able to provide an attachment of real data, of perhaps fake data that also results in the duplicate records? | |
Re: Without looking at the js first things I see are 2 ids called "messages" each with display:inline. | |
Re: I've recently added [The Uniform Server](http://www.uniformserver.com/) to my bookmarks. But I currently used [WAMP](http://www.wampserver.com/en/) | |
Re: Hi, I haven't thoroughly read this thread and the code, but just want to point out that you may need to click something in your email client to allow images to display. | |
Re: Remove all JavaScript. Get a simple test form submission up and running. | |
Re: I would say yes. Depends on your definition of **OS** and what features your **OS** will provide. | |
Re: For lazyness I've just updated your $_GET array $_GET['totalWeight'] = 0; for($i=0; $i<$_GET['packageCount']; $i++) { $_GET['totalWeight'] += $_GET['weight'][$i]; $_GET['volume'][$i] = $_GET['width'][$i]*$_GET['length'][$i]*$_GET['height'][$i]; } | |
Re: You will need to use JavaScript and ajax. First you should create a php page that will return true or false for the values you are testing. e.g. yourwebsite.com/ajax/checkemail.php?email=someone@somewhere.com When you have done this your main page will use JavaScript to call the ajax page with the user input and … | |
| |
Re: There is no string **company name** in the code you published. The code you published looks okay. Is the error really with the code you have published? | |
Re: Yes. If PHP.... http://php.net/manual/en/function.mysql-insert-id.php Although deprecated, has links to alternatives. | |
Re: [Javascript calculator with jQuery](http://blog.if-act.net/javascript-calculator-with-jquery/) | |
Re: Is the problematic page publicly available to view? | |
Re: Like Squidge said. You are already accessing the database to display product information, so it shouldn't be difficult to add another column to contain productTitle information and inject it into the <title> tag. | |
Re: Beware. The site has links to malware sites according to Chrome. | |
Re: If your CMS allows you to use JavaScript and ajax to post data, you can get away without the form tag. | |
Re: Where is the php script executing from? Server1 or Server2? | |
Re: <form class="form1" action="linksaddform.php" method="post" enctype="multipart/form-data" name="links_upload_form" id="links_upload_form" style="margin-bottom:0px;"> <p><?php for($i=0; $i<9; $i++): ?> <b>Link</b> <input type=text name="alink[]"> <b>Description</b> <input type=text name="aname[]"><br /> <?php endfor; ?></p> <input type="submit" name="submit" value="Upload Links" /> <input name="submitted_form" type="hidden" id="submitted_form" value="links_upload_form" /> </form> <?php // include '../inc/connect.php'; if (isset($_POST['submit'])) { foreach($_POST['alink'] as $key => $notused) … | |
Re: Are you looking to store a "history" of the value changes or to simply continue to overwrite them with each form submission? | |
Re: It looks like there already is a record with patientid = a67 I would expect patientid to be in your where statement (where patientid='a67') not in your update statement. | |
Re: I think you left out the display **result** bit.... $(document).ready(function(){ var array = ["foo","fool","cool","god",'searchstring']; var src_keyword=""; $("#search_str").click(function(){ src_keyword=$("#str_search").val(); result = find(array,src_keyword); console.log(result); }); }); function find(arr,src_keyword1) { var result = []; // alert(src_keyword1); //src_keyword1="oo"; for (var i in arr) { var search = new RegExp(src_keyword1, "gi"); if (arr[i].match(search)) { result.push(arr[i]); … | |
Re: Have you thought about using a GUI - e.g toad or workbench ? http://www.toadworld.com/Default.aspx http://www.mysql.com/products/workbench/ and just run the script from within. | |
Re: I use the following meta tag:- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> There's a MS article here [Click Here](http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx) | |
Re: As a quick hack you could try amending if (DIRECTORY_SEPARATOR !== '\') on line 1064 to if (DIRECTORY_SEPARATOR !== '\\***') to see if the fallback function on 1118 works | |
Re: What event must happen for your JavaScript to submit the form? | |
Re: > This is for a collage assignment and we are not allowed to use jquery...They are only interested in the students using the tools they cover in the course. But you are using JavaScript. jQuery is simply a user defined JavaScript function. :) | |
Re: What's really strange, is when I load the google developer tools and refresh, it corrects itself. | |
Re: Hi, They look very similar to me in all but IE7. But, may I make some suggestions about the layout? Remove the "Store Number" line, and if you are not too fussed about the numbers lining up vertically put them to the right of the city e.g. Alabama (205)567-7843. Remove … | |
Re: Hi, I'm not understanding what your goal is, so wondering if it can be achieved without looping. Can you explain some more scenarios of the makeup of your strings (haystacks) and chars (needles)? | |
Re: justzamir, pixelsoul's question was > What exactly is it that is supposed to happen when you hover the image Do you want a different image to appear instead of the panda? | |
Re: Apologies, but I'm a big fan of jQuery. There are many solutions to problems. Here is a quick jQuery one. <div id="test"> <h2>Test</h2> <h2>change this text</h2> </div> <button type="button" onclick="loadXMLDoc('test1.txt')">Message 1</button> <button type="button" onclick="loadXMLDoc('test2.txt')">Message 2</button> <button type="button" onclick="loadXMLDoc('test3.txt')">Original</button> <p id="colour-buttons"> <button>Red</button> <button>Blue</button> <button>Black</button> </p> $(document).ready(function() { var colour = { … | |
Re: This HTML looks like [Click Here](http://www.w3schools.com/jsref/met_table_insertrow.asp) <!DOCTYPE html> <html> <head> <script> function displayResult() { var table=document.getElementById("myTable"); var row=table.insertRow(0); var cell1=row.insertCell(0); var cell2=row.insertCell(1); cell1.innerHTML='<input name="myinput" type="input">'; cell2.innerHTML="New"; } </script> </head> <body> <table id="myTable" border="1"> <tr> <td>cell 1</td> <td>cell 2</td> </tr> <tr> <td>cell 3</td> <td>cell 4</td> </tr> </table> <br> <button type="button" onclick="displayResult()">Insert … | |
Re: In your form your price field does not contain an actual numeric - only the string "price" Your sql is not sure whether it is an insert (INSERT) or an update (SET) You need to add validation Here is some untested code to try and help you along. You will … | |
Re: Your sendmail_from should be in quotes. ![]() | |
Re: Are you able to provide the HTML code? | |
Re: Do you have existing code that you can show? | |
Re: At line 6 (just before the error) add if(!$result) { echo mysql_error(); die; } to see what error is being reported | |
Re: What is the result of <?php die($Geneprocess); ?> | |
Re: Hi, How do you know which option should be selected for each page load? | |
Re: http://net.tutsplus.com/ http://www.smashingmagazine.com/ http://www.webplatform.org/ | |
Re: Hi, Without looking at your code in detail I can see that you haven't executed the query. e.g. $result = mysql_query($strSQL,$conn); before your mysql_fetch_array line. | |
Re: http://jqueryui.com/autocomplete/ |
The End.