Search results

  1. M

    500 Internal Server

    Start by checking for the problems outlined in the X10 Wiki article on the 500 response.
  2. M

    Add friend script

    Experience isn't solely a matter of time; quality of experience counts for much. What's your understanding of the relational model? It's crucial in modeling objects in the solution domain. The first step in any development project is to define the problem (is friendship a symmetric...
  3. M

    Problem with "status updates"

    Instead of incrementing the ID in your script (which could lead to a race condition where two instances of the script executes nearly simultaneously, giving the same ID to two different status updates), declare the statusID column as AUTO_INCREMENT and UNSIGNED. ALTER TABLE statusTable MODIFY...
  4. M

    Problem with implementing forms in PHP while loop

    There are automated tools to check for SQL injection vulnerabilities, such as sqlmap. One thing I left out of my previous post: since multiple copies of the form are generated in a loop, there are multiple elements with the same ID ("postid"), which is illegal in HTML. Either leave the ID...
  5. M

    Need help with php mysql membership system

    A security token is handed out by a service when you authenticate so you don't need to re-authenticate. If you look at the URL of a phpMyAdmin page, you'll see a "token=", followed by the token. As long as the token is valid (phpMyAdmin will expire tokens after a certain time passes where there...
  6. M

    Need help with php mysql membership system

    From the "Create table" button, I'd guess that the reason you don't see "ccrowe1_member" on the left is that phpMyAdmin already opened it, which it might do if there's only one database you have access to. For comparison, see the attached screenshot from the pmahomme project page. Make sure...
  7. M

    Problem with implementing forms in PHP while loop

    The code sample isn't very readable. Use indentation to show the block structure of PHP and tree structure of HTML. Use (or [html]) rather than [code] to colorize portions of the code. Code samples should be complete yet concise. <font> isn't semantic; don't use it. You should be using...
  8. M

    Need help with php mysql membership system

    The password is what's dangerous to include. If you posted your actual password, change it right now. Not only have others seen it, but search engines may have cached the page. Please use , [html] or [code] tags (as appropriate) to separate and format code. There's no advantage to placing...
  9. M

    difference of c# and c++

    I don't like making assumptions; this could also be a homework question. We shouldn't even assume the OP is male. As for C++ being more versatile than C#, there are things C# supports that C++ doesn't (though boost closes the gap, as does C++0x). There's no reason one couldn't learn both. As...
  10. M

    php ? include require

    Don't revive long dead threads. This one is over five years old. Don't repeat information that's already been posted. You're not helping.
  11. M

    os whats best

    LCARS. The Berkeley offshoot of AT&T Unix is BSD, not UNIX. UNIX was AT&T's trademark (now owned by The Open Group). BSD in turn spawned the likes of FreeBSD, OpenBSD, NetBSD and (in part) OS X. According to "What is Android?", it uses a Linux kernel and a BSD-derived libc. As for the...
  12. M

    difference of c# and c++

    The number of similarities and differences are numerous and would fill a book. Why do you need to compare the two?
  13. M

    PHP Optimization Techniques?

    It's not only available as a PDF. The MySQL manual is available in HTML and can be searched using the MySQL site's searches (there's a site wide search and another that searches only the manual) or with Google. There are plenty of other reference sites available online, but if you're doing any...
  14. M

    Security: where to put PHP and MySQL Files

    For DB administration, use phpMyAdmin, which is accessible from cPanel. If you need to perform tasks at a higher level (site admin, webapp), you can password protect folders using cPanel. This uses HTTP Basic authentication, which sends authentication tokens as plaintext. To prevent...
  15. M

    Replacing all img src in loaded html

    If you like a post, use the "like" link. If you have nothing useful to add, please don't post. You're just raising the signal to noise ratio.
  16. M

    how to put links on right and left side of page

    Run a web search for "three column layout". The article "In Search of the Holy Grail" on A List Apart has one implementation.
  17. M

    "Status updates"

    Consider how to model the data before considering what you want to do with it, because what you want to do with it may change in the future. Just designing the model may give you ideas about how to use it. Consider the properties of what you're modeling. There's the status text, the user and the...
  18. M

    Codrops is a Web Development Blog

    @thindson80: this forum is not for you to advertise. This forum is to request help with 3rd party scripts and software.
  19. M

    Displaying user ID within their profile after login?

    You haven't provided enough information to answer your questions. When asking for help, describe in sufficient detail what you have (preferably with sample code) in addition to what you're trying to do and what's missing/not working. What else are you storing as session data? What's your DB...
  20. M

    Replacing all img src in loaded html

    Think about what DOMXPath::query returns and what /html/body selects, then what the DOMNodeList::item returns. Not quite. Here's what I wrote: My first line differs from yours: I use "ETX", you use "STX", which makes all the difference. It also appears that vBulletin is adding spaces...
Top