609 Posted Topics
Re: I've seen it happen once now too. Keeping a console open when submitting might show some clues as to what is happening there. | |
Re: Your last identical post from a week ago had 29 views, with no responses. If that were my post, I would have asked my self "what is wrong with the way I asked this question, and how can I change it so I will get an answer?". I'm not trying … | |
Re: If you have full control of your server/environment (which it sounds like you might) I would most likely use node.js with the Socket.io plugin. The reason I ask about whether you have your own server, is because a lot of hosts out there still don't support installs of Node.js. Building … | |
Re: What you actually see happening on CSS Tricks page is, the content is all there on the page aleady and it is just showing and hiding the content depending on which option a user chooses from the list. It is using jQuery and CSS for the showing and hiding of … | |
Re: What you're asking for is pagination like used with large data sets, to split out the results into different "pages". JorgeM gave a good suggestion on where you would need to start. Here is an example done with jQuery and a plugin http://datatables.net/ ![]() | |
Re: You can use base64 for the video and audio source in HTML5. Here is a blog post that gives some more information on that. http://www.iandevlin.com/blog/2012/09/html5/html5-media-and-data-uri | |
Re: You're missing a closing bracket for your foreach loop. I would do something like this probably <?php if (file_exists('note.xml')) { $xml = simplexml_load_file("note.xml"); $i = 0; foreach($xml->agent as $agent) { if($agent->id == 1){ print $agent->id; print $agent->image; print $agent->name; print $agent->company; print $agent->street; print $agent->city; print $agent->phone; $i++; } } … | |
![]() | Re: I don't see any php mail function :-\ And is this topic just duplicating this one? http://www.daniweb.com/web-development/php/threads/471398/php-mail-not-working |
Re: You're getting an error because: 1) $test was not defined. 2) You don't use a query string when using include(). Are you just trying to get the query parameter values from the query string? If this is index.php you would put into your address bar index.php?test=solved Then you could do … | |
Re: You mean like $fullname = $firstname . " " . $surname; slugify($fullname); Or am I am misunderstanding what you want? | |
Re: I didn't know what it was until I read the link, now I do. Happy Pongal :) | |
Re: To add to pritaeas suggestion, use CSS3 for the blink animation, and then maybe use a fallback to jQuery/JavaScript. Here is an example for doing it with jQuery http://jsfiddle.net/Sk8erPeter/Yca4Z/ | |
![]() | Re: I would be pretty pissed off if they removed it as a federal holiday, because I would most likely have to work on that day after they did that. In fact I think America should just make every religous day, from every religion, a federal holiday. I deserve more days … |
Re: The reason it is only working on the first row is because you are using ID. The JS goes through the DOM and finds the first ID that matches and stops there instead of continuing. You really should have more than one ID on a page at any one time … | |
Re: This is the function that I use, but I typically truncate a string by the word. function stringTrim($string, $length){ $string = (strlen($string) > $lenth) ? substr($string,0,$length) . '...' : $string; return $string; } CSS Tricks has a couple of example of functions that do that http://css-tricks.com/snippets/php/truncate-string-by-words/ | |
Re: I don't know of any sites that have these stats (that are reliable at least). I know that it is one of the largest JS libraries being used out there. I always use the Google CDN for hosting my jQuery/jQuery UI files. It is widely used, and the chances that … | |
Re: If you're using the jQuery UI dialog, then here is an example of form validation before submit. http://jqueryui.com/dialog/#modal-form If you need further help on this, you will most likely need to share the relevant code. | |
Re: Test this code from the PHP manual on your server and see if it works. If it doesn't then it is an issue with your environment. Maybe a port being blocked, or the IP is "bad". <?php $ftp_server = "ftp.example.com"; $ftp_user = "foo"; $ftp_pass = "bar"; // set up a … | |
Re: I had this problem once after I had copied and pasted the header with the doctype from another page. It was picking up something weird that I couldn't see in the editor that somehow got copied over. Go into your header.php and manually remove <!DOCTYPE html> and then retype it … | |
Re: I believe this is what JorgeM is referring to? http://fgnass.github.io/spin.js/ This looks nice for generating a indicator of activity, and like JorgeM said, you would just use an onclick event to show it. Though, there would need to be some type of callback to hide it once the download is … | |
Re: well, it doesn't respond to a ping, but this does.... http://vsshare.hop.clickbank.net | |
Re: Here was the suggestion I had gave for the last person that asked about parsing bbcode. http://jbbcode.com/ It may work for you as well, and you could just extend the class to add more of the functionality you're looking for. | |
Re: I'm not trying to shoot down your idea, but why not just use a bbcode parser that already exists (unless you are doing it to learn)? Here is a class someone had done and you could extend it if needed http://jbbcode.com/ | |
Re: So, when you say "the answer will go to the werong person", do you mean the record gets entered to your database with the wrong user id? It seems like there is more code to this that could be the problem, but is this really correct `$user_id=$_GET['edit'];` ? | |
Re: Use a hidden input `<input type="hidden" value="" />` in your form and then set the value of the input with jQuery. | |
Re: An important part to include in this would be the error message you're seeing. Make sure the smtp settings are correct/enabled in your php.ini file as well. | |
Re: Yup. You can do something like this $imageCode = htmlspecialchars('<img src="images/banner/'.$data2['images'].'" width="900px">'); echo '<td>'. $imageCode .'</td>'; Or even this would work echo '<td>'. htmlspecialchars('<img src="images/banner/'.$data2['images'].'" width="900px">').'</td>'; | |
Re: > How can I pass my ID to fancy box when I click the image I don't understand what you're asking here. Can you clarify this question a little more? Maybe describe the problem you are seeing rather than what you might think is the problem. | |
Re: You might of not read all the way down the page. He has a solution towards the bottom regarding changes to htaccess. > I have scanned Google search pages for more than an hour to find the perfect solution. But finally got my answer from maxcdn official support page. | |
Re: Bulky tables is going to be more a burden in the long run if they keep growing than a bunch of lighter tables, so I would creating more tables, rather than trying to cram a bunch into one. You're most likely going to be working with a relational database, and … | |
Re: The css validator isn't the holy grail authority on css, it is just a tool. They even say that on the site. The css should work fine in most browsers. Even the site you got the css from will have massive amounts of warnings and errors. It is more common … ![]() | |
Re: This may not be what you're looking for but, you could use Google calendar on your website. https://support.google.com/calendar/answer/41207?hl=en http://www.webdesignerdepot.com/2012/04/integrating-google-calendar-with-your-website/ | |
Re: What about the tutorial is not working for you? It shouldn't really matter weather you generate an array of products with prices using PHP, or put it static on the page. The Javascript is just using what exists in the DOM, and that won't change without a page reload, or … | |
Re: You could try using an API http://dictionaryapi.com/ Or you could see if this might be helpful http://wordweb.info/developer/SQL.html | |
Re: > The calculation I'm trying to get is sum of total+shipping, once I add this code i'm getting strange numbers on the total label. I am confused a little here, you mean that you're trying to get the sum of **Grand Total (fish)** + **Shipping** right? And then put that … ![]() | |
![]() | Re: Those areas of text that did not translate are most likely static in the theme files, which is why they didn't translate. The only option would be to open those files that are part of the theme and find those areas of text that need to be changed and then … ![]() |
Re: This code has a number of issues in my opinion. Setting this variable isn't necessary. `$file_name = $_FILES['upload']['name'];` You should just do this. `$file = preg_replace('/\s+/', '_', $_FILES['upload']['name']);` What are you doing here? `$_FILES = $file;` The reason it that it is not replacing the spaces in the file name … | |
Re: > I'm not advocating TB at all It is pretty nice, I see nothing wrong with that ;-) | |
Re: I see no link for "ingredients". Are you sure it isn't just browser plugin you have installed? | |
Re: this might interest you http://www.cssbuttongenerator.com/ | |
Re: When you say "gets messed up", is it because the page size isn't big enough to accommodate the size of the table? You might try changing the size of the paper size for the PDF file. It shows information about this option on https://code.google.com/p/dompdf/wiki/Usage | |
Re: Change this `mysql_select_db($conn, "yourmil_content");` To this `mysql_select_db("yourmil_content", $conn);` | |
Re: I agree with JorgeM, use mysqli or PDO. With this though, you should be checking for errors as well. `$result=mysql_query($query) or die (mysql_error());` |
The End.