Jump to content

Lodius2000

Members
  • Posts

    586
  • Joined

  • Last visited

    Never

Everything posted by Lodius2000

  1. agreed, tacohtml on the mac has a good find-all and replace-all, If you are using joomla, there are probably only a few dozen (ok maybe a few dozen dozen) files to modify, or you could download a joomla skin and change all the phpbb class names to the joomla ones, that would get a lot done fast. then you have to work on layout, which you will have to do either way
  2. i think you are in need of what i once came across as the definition of the perl language: the continuing search for the ultimate, perfect, regex equation.
  3. Scott if you deactivate the account, the `active` is set to zero, so if they were to run this script the `active is set back to one, so affected rows will always be more than 0, right or am i missing something -unsolved
  4. Scott ok that makes sense, Mad techie, dunno why i didnt think of session specifically, sometimes ima moran Thanks solved
  5. can someone tell me what php does when the user clicks the activation email link? is there a pending users table and when the verification email link is clicked the pending user goes into the user table? is there a active/inactive field per user? if this is true then how do you check on each page if the user is active, or do you just do the check once, if so where whats going on, can you just tell me the theory and general implementation thanks
  6. hehe I hope this isnt the problem and is just a transcription typo but <textarea name="textarea" rows="20" cols="30"</textarea> should be <textarea name="textarea" rows="20" cols="30"></textarea> // text area needs a closing angle bracket //mjdamato provides a good change for your php also
  7. aperantly pear doesnt allow the $q= $db->query($sql) structure I replaced with $db->query("INSERT INTO users (username, password, email, real_name) VALUES (?,?,?,?)", array($username, $password, $email, $real_name)); and all is well SOLVED
  8. im getting a parse error on line 148, which is the line that defines $sql I use pearDB thus the placeholders (they auto escape data) on that line, but either way, I cant find the error <?php function process_form() { global $db; $password = $_POST['password']; $username = $_POST['username']; $realname = $_POST['realname']; $email = $_POST['email']; //add user to database $sql = ('INSERT INTO users (username, password, email, real_name) VALUES (?,?,?,?)', array($username, $password, $email, $realname)); $q = $db->query($sql); $_SESSION['message'] = "$username has been registered as a user\n"; print '<a href="index.php">Login here</a>'; } ?> thanks
  9. KingPhilip, you are awesome // i knew it was something simple thanks a lot
  10. blarg Im drawing a major blank in defining this function I want $size to be an optional value, it doesn't need to be there, and if it isnt there then html makes a default sized text input, if it is there is makes a text input at the size that is placed there, but when i call the function using input_text('name', $_POST); i am getting a warning:Missing argument 3 for input_text() <?php function input_text($element_name, $values, $size){ print '<input type="text" name="' . $element_name .'" value="'; print htmlentities($values[$element_name]) . '"'; if(isset($size)){ print 'size="'.$size.'"'; } print ' />'; } ?> I tried putting an else{ print "";} but that didnt work so how do I make argument 3 optional Thanks
  11. its my understanding you use embed tags for 1 browser and object tags for the other, though i cant remember which uses which
  12. I think its time to see the relevant code from this document
  13. please click solved... o you did, sorry
  14. ok.... all of the prints need to be inside your if() that way if the if() is false then the header is the only thing sent to the browser, if it is true then the prints get sent
  15. i still dont see the header call in there mike but regardless I assume you want the print "<A href='index.php'>Click here</a>&nbsp"; to be the header call in which case it cant because headers have already been sent in the first thing that outputs to the browser ie your first print command: print "<link rel='stylesheet' href='style.css' type='text/css'>"; EDIT: what does this page do, then I might be able to help more
  16. yeah i was expecting some translation from english (which is kinda what this is) of semicolon or some other operator or what is it, ENCAPSED WHITESPACE
  17. where is the header call in your php document
  18. yup wat ratcateme said.... what language is this T_PAAMAYIM_NEKUDOTAYIM?
  19. get a good book 'learning php 5' by david sklar really helped me EDIT: you will be able to do all the things that you stated above after reading that book
  20. try putting angle brackets around id {$id} thats always my first troubleshoot with sql syntax errors, is to put those around all variables
  21. Im wondering of there is a way (plugin, wp function, etc) to display all categories on every page, so when you are currently viewing an entry filed under 1 category you still see all of the other categories in the sidebar widget, i cant figure it out and I'm really thinking of hardcoding it thanks
  22. ahh thanks, didnt know alter table allowed a name after it thanks
  23. so something like SELECT tablename ALTER TABLE CHANGE old-col-name new-col-name would that be it?
×
×
  • 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.