Jump to content

kalster

Members
  • Posts

    104
  • Joined

  • Last visited

Everything posted by kalster

  1. ty cyberRobot, that function example worked perfect.
  2. Yes, I am asking for help. code, url, ect.
  3. i need to change the color of a word in a string where the word is unknown (from $_POST) and may have one or more uppercase chars. code please.
  4. Yes, you are correct, i forgot the mysql syntax. thank you.
  5. I have noticed that some versions of mysql, the code below needs a ";" at the end of each line while other versions work with a "," and the end of each line. At what version of mysql did that change take place? $mySQL = "alter table users add `username` varchar(20) not null; add `location` varchar(100) not null; ";
  6. Actually, i would like the line to be <p>example</p><br />
  7. I have a line of text like this... <p>example<br /><br /><br /></p><br /> where the number of br tags before and after the </p> tag are unknown. I need the line displayed like this... <p>example</p><br /><br /></br /><br /> I need it in the preg_replace, where the part of the line begining with <p>example is untouched. Thank you in advanced.
  8. No. Between < and >. After searching for a few hours I just found a solution to this problem. preg_replace('/br\s\s+/', 'br ', $text);
  9. Is there a way to remove the white space seen between <br > or other html tags using preg_replace or something?
  10. That gives me the user with the highest post count. What i need is the post count of the user that posted the most.
  11. I have a mysql table like the following. post | username ______________ post1 | username1 post2 | username2 post3 | username1 I need a mysql count or max query that would get the highest post count of a user. At the table above, the post count would be 2 because username1 posted two times. Both the post and username data are unknown.
×
×
  • 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.