609 Posted Topics
Re: Well, there's this https://www.etsy.com/developers/documentation/resources/jquery And some more documentation on the Etsy API https://www.etsy.com/developers/documentation/getting_started/api_basics | |
Re: One post on this question is sufficient. Spamming on DW is frowned upon. | |
Re: If your query comes back with multiple arrays like this, then you probably need to refactor your query, rather than cleaning up the results. If there's really no other way, or really need to merge arrays, I've used the following in the past to do this. array_unique(array_merge($array1,$array2), SORT_REGULAR); http://php.net/manual/en/function.array-merge.php http://php.net/manual/en/function.array-unique.php | |
Re: There are probably hundreds, if not thousands of tutorials and information on creating custom forms that input to the datatbase using Wordpress. Not to mention all of the Wordpress extensions out there that can do it as well. | |
Re: Websockets is what you're wanting. You may still run into issues with browser support, but then again, there are work arounds you can use as well. Websockets allow for data to be pushed to a client, rather than a client requesting data. I would probably check out http://socket.io/ as they … | |
Re: So you want a button that closes the users browser window, but opens a dialog first? The code works for a prompt if a user tries closing the window the normal way, not really sure why anyone would have a button on the page the closes a browser window though. | |
Re: I would use jQuery or javascript for the visual display to the user. Something like http://jsfiddle.net/pixelsoul/xh4t2hoy/ | |
Re: You could build a database/flat file of the cities yourself, or you could use an API that pulls the cities in as a user types them as well. For example, here is an API that does just that http://www.geobytes.com/free-ajax-cities-jsonp-api. In addition to that, I believe http://www.geonames.org/ has an API as … | |
Re: It's called parallax scrolling. https://ihatetomatoes.net/simple-parallax-scrolling-tutorial/ http://webdesign.tutsplus.com/tutorials/create-a-parallax-scrolling-website-using-stellar-js--webdesign-7307 http://jquer.in/random-jquery-plugins-for-superior-websites/parallax-js/ | |
| |
Re: Try that. <?php include('inc/header.php'); require('connection_db.php'); if (isset($_POST['submit'])){ $uname = mysql_escape_string($_POST['uname']); $pass = mysql_escape_string ($_POST['pass']); $pass = md5 ($pass) ; $uname = mysql_query("SELECT * FROM `users` WHERE `uname` = '$uname' AND `pass` = '$pass'"); if(mysql_num_rows($sql)) > 0 { echo "you are now logged in successfully!"; exit (); }else{ echo "Wrong Username … | |
Re: > a day would kill you if you were on at least 25 hours a day Well.. uh.. nevermind.. | |
Re: You could do it with file_get_contents, but I would recommend trying the HTML DOM library. Here is a decent blog post from Nettuts on this. http://code.tutsplus.com/tutorials/html-parsing-and-screen-scraping-with-the-simple-html-dom-library--net-11856 | |
Re: > but I want to validate, when I select the image, not in submitting. The code cereal provided does exactly that. | |
Re: It really depends on what the problem is, who your target audience is for that site, and how easy it would be to put a hack in for IE7. IE7 has a fraction of a percent in market share for browsers these days. You could also detect older versions of … | |
Re: Sure. INSERT INTO funny_people (nose, ear, brain) VALUES ("Gangotri troll nose", "Gangotri hairy ear", NULL); | |
Re: I'm not sure what you mean by "change alignment" but, you could use the **non-standard** <marquee> tag https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee You may want to look at the supported browsers first though. Personally I think the marquee went out of style a long time ago, and they're really annoying. | |
Re: Can we change the font to Comic Sans also? Because that would just be too awesome. ![]() | |
Re: The span tag and class look good, assuming you're using Font Awesome, then the most likely reason is that the path to the CSS is not valid. http://fortawesome.github.io/Font-Awesome/3.2.1/get-started/ | |
Re: It wasn't very easy... but here you go! ** ## The Secret Formula For The Original Krabby Patty ## ** - S**e**s**a**me Seeds - Bo**t**tom bun - Chum (Food) - Ketchup - Mu**s**tard - Mayonnaise - Relis**h** - Cheese - P**i**ckles (Food) - Let**t**uce - Tomatoes - Onions - **Salt** … | |
Re: > I think, the best way to create a website for beginner is to use some web builder. I disagree, unless that person is only interested in building a website without actually learning HTML, CSS, etc. | |
Re: the root of your web server is the "www" directory. To create a "front page" of your website you would create an index page. If you're using PHP it would be index.php After that you can create directories to structure and organize the files for your website like images, css, … | |
Re: Are you talking about just the font color that you have set to "0"? It's instant for me in Chrome and Firefox. | |
Re: If you paste the url into your address bar in your browser and go directly to it, does it work? If it works and you truly are just trying to make it a clickable link in the email, then $message .= "<a href='$s_web/confirmaccount.php?code=$encryptpass&id=$id'>confirm account</a>"; | |
Re: It looks okay to me, try `var_dump($_POST)` on your results.php page to be positive. I want to point out also, the original mysql functions are now deprecated in PHP and you should be using mysqli or PDO for your database connections. http://php.net/manual/en/migration55.deprecated.php | |
Re: Yes, that is CSS that you would put in your stylesheet preferably. It can go into the head of your document, but it's not really suggested. Here is a pretty good blog article on using custom fonts http://css-tricks.com/snippets/css/using-font-face/ | |
Re: > These anonymous could very well be a western intelligence agency. I think it's unlikely, unless the show they put on for the media was to achieve some other agenda they have, maybe to keep cyber security issues in the news. If not an agency, it's admirable that they want … | |
Re: Here is a decent article about using jQuery to accomplish this. http://tech.tiffanyandjeremy.com/Articles/Two-level-JQuery-check-and-uncheck-all-child-checkboxes-of-a-parent-checkbox I'm sure there is some stuff about it in raw JavaScript, but I prefer jQuery over raw JavaScript for something like this. | |
Re: If you're being prompted for your routers credentials, I can guarantee you that you won't fix it in XAMMP's configuration. Your port 80 is available externally, if it wasn't you wouldn't even get a response from your router (if it is really your router that is responding). Which leads me … | |
Re: I would recommend using jQuery. It makes using AJAX calls trivial. http://api.jquery.com/jquery.ajax/ Here is a tutorial from Nettuts that might give you an idea. http://code.tutsplus.com/tutorials/submit-a-form-without-page-refresh-using-jquery--net-59 | |
Re: http://jdmweb.com/creating-a-simple-image-gallery-with-php-jquery http://www.sitepoint.com/php-gallery-system-minutes/ http://www.tutorialized.com/tutorial/Image-gallery-using-php-and-mysql-blob-storage-and-displaying-the-image-from-mysql-blob/75423 and about 61,400,000 more results on Google ![]() | |
Re: I'm wondering the reason for even have a "cart" when you only have one product. Wouldn't it make it a lot simpler to just have a "buy now" button that takes them off to Paypal to pay for it? I wouldn't use a cart at the grocery store for one … | |
Re: They're libraries that PHP uses to edit the images, so they are installed on your server, where the image is manipulated. Nothing needs to be installed on the client PC. | |
Re: Exactly what diafol said. In your loop you're creating the structure each pass through. You want to create your array outside of your loop and then add the new data to the array with the loop. $values3 = array('repo' => array()); while($row = mysqli_fetch_assoc($get2)) { $values3['repo'][] = array('name3'=>$row['user_name']); } The … | |
Re: click a button automatically when? on what event? the page load? | |
Re: The easiest method is to use jQueryUI's autocomplete IMO http://jqueryui.com/autocomplete/ | |
Re: It really shouldn't matter whether you write the html for this, or if it is generated by PHP. PHP doesn't manipulate the DOM after the page has been rendered. Do you have a live page somewhere that we might be able to see it in action? | |
Re: You've got one line of PHP here that is for a form error. The code that actually gets the size of the image would be helpful. And when you say "i got nothing.", what do you mean? Do you get an error message? does the $_FILES array even exist? etc. | |
Re: Maybe with cURL, best way I can think of. http://php.net/manual/en/book.curl.php | |
Re: They've pretty much documented the entire framework, including forms and databases. Basic Database Usage http://laravel.com/docs/4.2/database Query Builder http://laravel.com/docs/4.2/queries Forms & HTML http://laravel.com/docs/4.2/html | |
![]() | Re: When I started using Laravel I didn't really care for them. It comes with the blade templating engine, and once I understood the syntax I thought it was nice. Thought you have the option of using other templating engines with it as well. ![]() |
Re: It's being caused by `Cobreloa - O'Higgins`. Try escaping with backslashes like `Cobreloa - O'Higgins`. You should be sanatizing your data before inserting it into your database, which includes add backslashes. An example, css-tricks.com has an example function for doing this, which I'm sure is fine to use. http://css-tricks.com/snippets/php/sanitize-database-inputs/ | |
Re: When you're outputing images that are stored in the database you need to declare a header that tells the browser that the content is an image so it knows how to handle it. On the page where your query is for the image, you'll want to declare a header for … | |
Re: Seriously? | |
Re: You can bind an ajax call on the selector of your choice with the event of your choice. Using jQuery helps stream line the code for making a call with AJAX to your script that runs the query, then returns the results back to the page, in the div, table, … | |
Re: I want one billion dollars and peace on earth. Oh and a pizza. https://code.google.com/p/php-excel-reader/ |
The End.