Jump to content

dewey_witt

Members
  • Posts

    151
  • Joined

  • Last visited

    Never

Everything posted by dewey_witt

  1. use a txt file write input to the text file draw input back out of txt file print to frame auto refresh the frame every .2 second disable refresh sound with java script. real time chat with .txt base filing chron job to wipe the file clean every ten minutes or so. most of this you can do with PHP but some things would have to be handled via java like refreshing just the frame and not the whole page. Also java would be needed to go to the end of that doc instead of starting at the beginning. I've actually seen this done 0nce or twice. I'll look for the source and post a link if i find it in a timely manor.
  2. OK may be an amateur question.... I haven't done it before so don't know if you can. I Have e a .txt. document with data in it as such: I would like to take this data and break it down into sections and enter it into a database like This: Field 1: Slither Field 2: BB Field 3: when you play this card take and extra turn after this one. A. Is it possible? and B. If so how ya do it? Please show me 'ol great ones...
  3. After commenting out all the connection includes etc. accept for the post data handeling.... the result of echo = So it is parsing.... maybe its my hosting. I've never had this issue before even with a simple query like this.
  4. UPDATE user_pro SET real_name='$real_name', location='$loc', signature='$sig' WHERE user_name='$user_name' lol Like this.
  5. ok... wrapped it with quotes as I should have to begin with yet still the same drab error message telling me that I've included a " <-- quotation mark near line 1 that is throwing the query syntax off. Still boggled. <?php $sql ="UPDATE user_pro SET real_name='$real_name', location='$loc', signature='$sig' WHERE user_name='$user_name'"; ?>
  6. Create two different query's one for if the city has been selected also one if it hasn't something like this should work.... <?php if(empty($_POST[city])) { $iffy = "SELECT * FROM table WHERE region= region = '$region_id' $max'"; } else { $iffy = "SELECT * FROM table WHERE region = '$region_id' AND city ='$city_id' $max"; } $data_p = mysql_query("$iffy") ?>
  7. <?php $sql ="UPDATE user_pro SET real_name='$real_name', location='$loc', signature='$sig' WHERE user_name=$user_name"; ?> I keep getting the error "Check you syntax to use near " in line 1" =/ boggling. I've done this 092387502983475029347 times.... never had this issue.
  8. TESTED a 1000 thanx my friend XD I do still wanna know what happened to the code library. It twas the bomb.
  9. Hey peeps its me again XD I am looking for a simple mysql anti-injection script. Their used to be a nice one that i could modify on the phpfreaks code library. WHAT HAPPENED TO THE CODE LIBRARY???!!!!! Loss of a great feature if ya ask me. Well any help would be greatly appriciated. Thanx
  10. wow the hostility of some of you...... and yeah i made it myself in flash.... looks good too XD STOP BEING HOSTILE! shesh meanies
  11. If anyone know where i can get (or can create) A cool gif that looks like blood flying onto the screen then sliding down it.... I would like so love you forever! I plan to put it as play once in a floating div that leave when done playing. Please if you can help I'd appriciate it.
  12. DUDEEEEEEEEEEEEEEEEEE IIIIIIIII LOVEEEEEEEEEE YOUUUUUUUUUU XDXDXDXDXD <? $sql = "SELECT * FROM 'phpfreak' where 'clue' > '0';"; ?> Output: YOUUUUUUUUUUUUUUUUU XD
  13. ok lololol.... their is post data being passed to the handeling script........ yet the php just isnt picking up what is being laid down. Im not sure why but i cant get any of the post info. This is how i have tried to retrieve and desply it. <? $user = $_POST['user']; echo "$user"; ?> And still nothing......... boggled
  14. Herer is my handeling. As you can see this code is also good. Im pretty dang sure its not my coding. Im not that much of a newb XD if you find something let me know, but im relativly sure that this is in the php.ini or http.conf file somewhere. PLZ HELP ME!!!!!!! :'( <?php $user = $_POST['user']; $mail = $_POST['mail']; $pass = $_POST['pass']; $char = $_POST['char']; $ip = $_SERVER['REMOTE_ADDR']; define("MYSQL_HOST", "localhost"); define("MYSQL_USER", "root"); define("MYSQL_PASS", ""); define("MYSQL_DB", ""); //make the db conection $conn = mysql_connect("".MYSQL_HOST."", "".MYSQL_USER."", "".MYSQL_PASS."") or die(mysql_error()); mysql_select_db("".members."",$conn) or die(mysql_error()); $sql = "INSERT INTO members (username, email, password, charName, ip) VALUES ('".$user."', '".$mail."', '".$pass."', '".$char."', '".$ip."');"; $result = mysql_query($sql, $conn) or die(mysql_error()); //echo db created and make members table if($result) { header("Thanx.php"); }else { echo"there was a problem with signup. please see your guild leader."; } ?>
  15. OK Below is the form - the html. Its just a basic form. When it gets to the next page where the data is actualy handled.... there is no post data to handle. :-\ i dun get it. Its not just this form. Its ever form i create. <form action="/DATABASE SCRIPTS/mkacct.php" method="post" enctype="multipart/form-data" name="signup" onsubmit="return checkCheckBox(this)"> <input name="user" type="text" size="19" maxlength="19" /> <input name="pass" type="password" size="19" maxlength="19" /> <input name="pass2" type="password" size="19" maxlength="19" /> <input name="char" type="text" size="19" maxlength="19" /> <input name="mail" type="text" size="19" maxlength="19" /> <textarea name="agreement" readonly="readonly" cols="52" rows="10"><? echo "$agreement" ?></textarea> <input type="checkbox" value="0" name="agree"> <input name="submit" type="submit" value="Signup" /> <input name="reset" type="reset" value="Reset" /> </form>
  16. About a month ago my HD went BB :-\ I have just set up a new machine everything works great eccept My server (appache2.2) will for some reason not send post data. I dont know whether its in the php.ini or httd.comf for appache. DB connections work perfect I can inset and retreive data fine. Just when i create a form to post to another page the next page receives no post data what so ever. any hints as to what i am doing wrong TELL ME PLZ!!!!!!
  17. I also have accounts on IXWEBHOSTING. I dont understand why your trying to use soccets. and No localhost wont work. neither will annonamous log-ins.
  18. I Like the cookie and session ideal also. It would sure help to cookie the lil biggers respocible set to live till the end of time. that may slow it down a bit but all they have to do to destroy the session or cookie is run windowss washer on windows.... and crankdestroy on linux. Another thing that might help is to break away from naming your inputs traditionaly. I know this may be a pain for some developer down the road.......... but if the spamming is that big of an issues its something to try.
  19. Not true in all cases. I've seen bots that decifer hidden feilds.
  20. Check out pear which is an extention of PHP. It deal with all the command line functions like what your asking. First of all tho you have to have rights on the router in privledged mode. But yeah check out pear. Let me know if this helped.
  21. Your code looks fine to me..... Im not sure what issue would cause this. :| Anyone help this guy?
  22. Use captcha capasha..... dang I NEVER can spell this word right. Its the box with the letters and numbers in it. Make them type in the words to the capasha image. As long as the image has alot of background noise to make it dificult for bots to pull out the numerals and letters you should be a lil effective.
  23. teng is so dang knowledgfull. That solution didnt even come to mind. Awsome!
  24. I beleive that maybe it is a root function of some sort? I dunno. They do have a section in php help that is for php math help I think you may do better there than here. If a quick anwser is what you are needing.
×
×
  • 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.