Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. Something like this should do it. $line=explode('|',$linex); $line = (ctype_upper($line[0])) ? $line : continue 0; // After you've exploded them you can check the first key. If it fails.. go to the next loop. $line=array_map('trim',$line); $line=array_map('mysql_real_escape_string',$line);
  2. still can't reproduce it. probably need to clear your cache.
  3. works fine for me
  4. From which point the misc board would be useless.
  5. It's called "Quick Reply". It's designed for when you need to write quick replies, not for when you're writing CV style novels I could understand a few buttons being on the quick reply, but not all of them. Things like bold, italics, underline and strikethrough. And the code button(s). The only thing missing would be to have the mod that allows a user to select the text he/she wants to quote before pushing "quote". But yeah. typically I just hit preview whenever I need to do some formatting.
  6. go into your command prompt again start run.. "cmd".. then type in this order: For each line push enter then tell us what happens. If that works.. then your installation is good and It's like I said... your classpath (environment variables) are not set to have MySQL.. Most likely that is the problem. In fact. I'd say that is the problem, but it's not really a problem.. it just means you need to specify your path.
  7. you can always make one yourself. You seem to have the syntax down pat. Just create yourself a Form Class. That's exactly what making classes are for. At which point you can extend upon it in the future with such things as form verification. If you don't feel like doing that kind of work then search through PHPClasses.org
  8. You're going about it just fine.. it's just you forgot to use the variable you created. $target //This is the directory where images will be saved $target = "images/"; $target = $target . basename( $_FILES['Image']['name']); //get the values from the form $Image=($_FILES['Image']['name']); // Wouldn't it be more logical to make $image = $target...? In fact.. Why even reassign $target to a new variable..? It would be the same as this Instead you are essentially doing this
  9. Are you saying that you're tired of typing HTML? Do you want a instant form button? I don't quite understand. Perhaps use a WYSIWIG editor? Be a little more elaborative..
  10. you probably have some javascript or CSS impeding your anchor tags' functionality.
  11. instead of using SAM2 (a third party software) to test your installation. Try using the actual mysql console. Assuming you're running Windows Go to Start > Run > type "cmd" Then type "mysql" and push Enter. If this fails then it means MYSQL is not in your system path. reply with your results.
  12. meaning?.... you can't click on it? it doesn't redirect?... be more specific.
  13. [/b]
  14. Oh! Well, in that case... All brute force is.. is a loop. Research loops if you want to get down and dirty.
  15. You need the move_uploaded_file function. CLICK THE LINK.. and view the example for the best explanation. you control where the image goes on your server.. therefore you control what the image link will be, there's nothing dynamic other than the filename. Other than that it's nothing different that INSERTing that link into the table column. Moreover, if you really want some efficient help. Post the code you are currently using.
  16. Zane

    TGIF

    Ya know... theoretically, this thread is unofficially .. expired. Until next Friday that is.
  17. You're missing the closing bracket for your online function function online(){ if(document.respond.online_response.checked) { document.respond.response.disabled = false; } else{ document.respond.response.disabled = true; } } /* A cleaner way of doing this would be this though. function online() { document.respond.response.disabled = (document.respond.online_response.checked) ? false : true; }
  18. You'll most definitely need a modem to do such a thing. Unless there's a newer fancier way (i.e. USB) of connecting to a fax machine. Even still, it'll use a phone line/fax line. The only other option that would eliminate the use of a modem or even a fax machine is if you used a third party API such as eFax.. if they even offer an API.
  19. Moreover, what is misspelled in the first place.. as your thread title suggests? Other than what Nightslyr pointed out
  20. use MAX() for the highest value use MIN() for the lowest value example SELECT MAX(id) as latestGame, MIN(id) as firstGame FROM games
  21. I love it. so so true. That's pretty much how my first and only web-designing experience went.
  22. You know... usually if you hit the back button, values you entered in previous input fields will still be there. As far as your problem goes. That function doesn't exist so it's most likely a custom function.. created by WordPress. Although the ONLY WAY to use a custom function is if that function is defined either within the same file or included from another. example 1 - defined within the same file //First we define it function hybrid_header() { // A whole bunch of other things that make up this function /// more stuff } hybrid_header(); // Then we use it ?> example 2 - included from another file File 1 - hybrid.php function hybrid_header() { // A whole bunch of other things that make up this function /// more stuff } ?> File 2 - index.php include('hybrid.php'); hybrid_header();
  23. phpmyadmin, cPanel, mysql console ... ?
  24. try using NOT IN with it and see what happens. The fact that it showed the opposite means we're getting close Perhaps this revision SELECT * FROM TESTDB WHERE song NOT IN (( SELECT DISTINCT song FROM TESTDB WHERE weeknum ) as songCheck)
  25. Consider it from this perspective. Imagine that third party server wasn't yours. Better yet, let's assume it is yours still. Now, lets say I use the same script you wrote to connect to your database. Should I be allowed to do this? No. That is why MySQL is set up in such a way that you have to tell the server whom will be connecting to it... and from where they will be connecting. This is the part where you tell us how you manage your third party mysql server so that we can inform you how to ALLOW YOURSELF to connect to it from YOUR "AUTHORIZED" server.
×
×
  • 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.