Jump to content

paschim

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

paschim's Achievements

Member

Member (2/5)

0

Reputation

  1. I need a regex to validate emails, but it should support period, _ , etc, i mean it should be able to validate modern email addresses too! And i am a complete beginner so a little exaplanttion of the regex will be highly appreciated!
  2. weirdly that worked, but can you tell me why i was getting that weird output in the previous case?
  3. I tried that but i keep getting that weird error, MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' SET accountLastActivity='1221848460' WHERE userName='guest'' at line 1
  4. function ltupdate($db,$user) { $now=time(); $upd_sql = "UPDATE $userRegTable SET accountLastActivity='$now' WHERE userName='$user'"; $sqlupd = $db->query($upd_sql); return true; } I am getting a error saying I have wrong syntax in the mysql query!, any ideas?
  5. Thank you Guys!! I used a different and simpler approach, i cooked up while experimenting! But your codes also taught me new things!
  6. In my database i am storing the date1 using time() of php! Now how do i get the number of years and months that has passed since date1?
  7. I have a database which needs to store huge amounts of text records! I don't need foreign keys and such! So what engine will be best for me MYISAM or InnoDB? Which will be more space and speed efficient? Also, how can i optimise these tables!
  8. thank you very much for the fast and accurate response
  9. How do i output the following as it is? <?php $output=""; $output='<Books>'."\n"; $output.='<Book ISBN=123456>'."\n"; $output.='<Title>Kulu Manali</Title>'."\n"; $output.="<Author>Me Me</Author>\n"; $output.="</Book>\n"; $output.="<Book ISBN=542631>\n"; $output.="<Title>Ghost Buster</Title>\n"; $output.="<Author>Unknown</Author>\n"; $output.="</Book>\n"; $output.="<Book ISBN=654312>\n"; $output.="<Title>Inu Yasha</Title>\n"; $output.="<Author>My Favourite</Author>\n"; $output.="</Book>\n"; $output.="</Books>"; echo "$output"; ?> This echoes: Me Me Unknown My Favourite But i need to output the text in xml format so that i can recieve it in flash as xml! Any help?
  10. Umm i dont know xml, and what other delimiter do i use, anything i use still has a chance of being entered by the user!
  11. I don't know where his thread belongs, but since it is more about the app than php, so i thought i would post here! Anyway, I am currently trying to retrieve, all the messages for a given user, in a csv string format! but when this string reaches flash, i will have to parse it , i mean split it at a given character(,) to form the array! But the message itself may contain that symbol, so when i split the string its quite possible, that it gets split into wrong sections! Is there any solution to this?
  12. Well, i don't know if this is supposed to happen or there is a mistake somewhere, but say i try to run a query where name='zoro', it returns rows for zoro, Zoro, zOro,.... any idea whats happening? I can obviously run a check in later part of code....but isn't there any way to just return rows for exactly that particular name? i mean case-sensitive search?
  13. thanks All! the guide from swiftmailer is really what i needed! thank you for sharing
  14. Well, assuming yours to be a generic turnbased fight system, I Would say: damage= Strength-((defence+dexterity/random(1))/random(5)+2);
  15. ok i somewhat understand now! Can you guys tell me, what type of measures should i take for a subject filter, and also what are the main filter checks of hotmail?
×
×
  • 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.