Jump to content

dalecosp

Members
  • Content Count

    471
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by dalecosp

  1. It might also be wise to redact (that is, remove or obfuscate/cover-up) your DB credentials in your example code's mysqli_connect() function. 😉
  2. Nice to hear ... thanks for the heads up! And I hear you ... switching to Sphinx on OMBE has made a LOT of difference ... :-)
  3. If I'm understanding your question, a simple websearch should suffice; investigate iContact, ConstantContact, aWeber, MailChimp, Drift, Wishpond, Robly, Infusionsoft, Emma, getResponse, and some few others.
  4. Use case (statistics) I can think of: you're doing tracking of "logged-in" as well as "not-logged-in" users. We have some tables like that.
  5. Right. 3500 x 3500 = 12.25M rows in/of itself, and let's not think about the possibility of multiplying the result set size again.
  6. (Aside: your code should start with <?php ) You will probably get some comments like "don't just d'load scripts from the 'Net without understanding what they do." That might be decent advice, but let's try. I'm not sure that the problem is entirely clear. Let's start with: If PHP is substituting "$count" with a value in the JavaScript at the top, it seems a little strange that jQuery is then setting ALL the elements with class "cd-popup" to "is-visible". However, the PHP at the bottom isn't setting any such variable: $show_admin = " | <a href=\"attractions/edit.php?id=$attract_id\">EDIT</a> | <a href=\"\" class=\"cd-popup-trigger\"><font color=\"red\">DELETE</font></a>"; There's nothing there but "cd-popup-trigger" ... So, one question is: Does the JavaScript at the top include an additional value here? $('.cd-popup-trigger$count').on('click', function(event){
  7. In over my head here ... did you "blank" the canvas first? If it had anything in it, it would need to be erased and then redrawn, as I understand it.
  8. Check the "network" tab in the console?
  9. You might want to look at "best practices" ... although that's something of a nebulous concept. I read a piece some while back about Amazon's work in this area. As you may have noted, they recognize you all the time by a cookie, and only require login for "sensitive" operations. You can even add stuff to the cart if you're cookied in ... it's only at checkout you're asked to verify credentials. It might be worth it to read up and put some thought into that ...
  10. True dat ... HECK of a lot better than eBay
  11. For performance, see if they would agree to omit 3rd party adverts ;-) I know that sometimes it's fast and other times Google Ads really slow down render times on some of my work. (What I don't know is what on their end is doing it ... huge traffic or real-time bidding wars, etc.) For design, I know the "C-suite" people in this company wouldn't like the white space to the right of the lady on the laptop. The paragraph/div "You can select any carpet or floor covering from our website" ... what does that look like with text-align:left? Also maybe some whitespace in there, it's kind of tight in that area. The "tiles" near the bottom suffer from a common problem that I'm not sure of the answer to: variable shape images. I really think they'd look better if they were all "same sized", but that's hard to do. We have tried to fix that on the homepage of OMBE.com by using a backgrounded-DIV. However, you can see the problem is very real in the sellers/stores list (ombe.com/stores). If it were me I'd make the Twitterbox wider also, although perhaps not full width; I might attempt to center it. There's my two-pence (Is that still what you call it over the pond there?)
  12. Great registrar, creative ( ) marketers, pile-o-crap hosting.
  13. What told you to compress images? Images are already *fairly* compressed. There are some things that can be done, but if you're looking for a silver bullet you might come up disappointed. You might give this a read: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/image-optimization
  14. There are lots of ways to skin this cat. A trick I often use: $style = ""; if ($bolding_condition) { $style = "style='font-weight:bold;'"; } echo "<span $style>" . $content . "</span>\n"; Of course, that yields inline CSS, which bothers some people. You could also append "<b>" or "<strong>" tags and the corresponding closure tags at the beginning and ended of $content if the condition matched. Or, you can set a specific class if the condition matches true. OR, you can wait under you're done and echo a JavaScript snippet that does what you want if the condition is matched.
  15. <input id="email"> also needs a name attribute. Perhaps more coffee?
  16. Don't lock your screen? I'm not sure you've given much of the needed information. What does "the game stops" mean? "It doesn't work" is rather nebulous. Are error message produced? If the screen is unlocked, does the game resume? Is this game written in PHP? If not ... are you in the correct forum?
  17. dalecosp

    Hello!

    Greetings and welcome! I'm sure you can probably get some help here, if your questions are asked The Smart Way. Many mostly-programmer's sites are a tad reluctant to "do your (home)work for ya" as I'm sure you've probably noted in the past. All that said, many popular PHP Forum systems have their own user community; for example, vBulletin (vbulletin.org) and phpBB's Community. You'll often get BETTER help from a dedicated forum such as those, if there is indeed such a site for whatever system you're now managing and your question relates directly to the forum software than to PHP as a more abstract scripting language. Good luck!
  18. Nothing for sure .. off the top of my head ... time-outs, file size limits? cURL should have some debugging capability ... you might try curl_getinfo() to see what's going on with the request.
  19. Some general advice: read through the server logs and find where this script is being accessed. If it does it work by using the POST method, look only for POST actions to this URL. You might also wish to add some logging statements to the questionable code using something like "file_put_contents($some_log_message, '/tmp/mylogs');", so that you can read '/tmp/mylogs' later and see what's being done to your script. Example code: $variable = filter_input(INPUT_POST, 'foo'); file_put_contents("received $variable from POST", '/tmp/mylogs', FILE_APPEND); Next, when something is POSTed, check that the refering page is the one you expect it to be. If it isn't, reject the input. Also investigate the possibility of placing a token in the form that will vary from pageload to pageload and must be validated by the POST routine on the receiving script. (This is basically a CSRF protection). Finally, consider adding Google's ReCaptcha to any forms that are being abused. Although we'd all like to think that some Russian Mafioso is sitting at his computer targeting our site personally, the truth is that most attacks are by "bots" and the ReCaptcha technology is pretty good at weeding those out.
  20. That's JavaScript, and assuming that the browser encounters the proper <script> tag, and 'xmlHttp' is an object with a property named 'responseText', and there are no previous execution errors in the page's JavaScript, it should do exactly what it says it will do.
  21. Welcome back! I'm glad you're able to get back online (bet you are for SURE!) Feel free to read about and post questions ... perhaps it will come back to ya!
  22. Did you change this: class MYSQL_DB { to this? class MYSQLi_DB { Because he said make your code use mysqli functions ... he didn't say to rename the classes. If you did, you created this error: Because the code in database.php already had THIS at line 20: class mysqli_DB { I don't like to call people names, but unfortunately this is starting to look like a more & more accurate statement. If we ARE able to make you see any light, you might have to apologize for wasting somebody's time. Although we volunteer it, or we wouldn't be here ... still people shouldn't take advantage of others like that. Well ... it's kind of like that. But you don't try that unless you're a mechanic or a very avid DIY type. Same goes here.
  23. Because "text-decoration:none;" isn't being honored for those elements, either because something else in the CSS takes precedence, or because the selector "a.nav" isn't computing with those user-agents. I can verify that assigning "text-decoration:none;" directly to the element will rid it of underscores, but it would be much better/cleaner to do it in the CSS file. Perhaps this? .nav a { text-decoration:none; }I don't KNOW that this will work (without writing a bunch of code to test it), but it should give you an idea of what to do. Yes; the <UL> element is marked "position:absolute;", so the browser ignores its height in setting up the page. If you can turn off absolute positioning and still have the layout and JS functionality you need, that might solve the issue; the alternative is to enforce some top spacing (margin, padding, positioning) on the #siteWrap DIV.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.