Lodius2000
Members-
Posts
586 -
Joined
-
Last visited
Never
Everything posted by Lodius2000
-
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
-
[SOLVED] new user activation email - theory and implementation
Lodius2000 replied to Lodius2000's topic in PHP Coding Help
gotcha... thanks -resolved -
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.
-
[SOLVED] new user activation email - theory and implementation
Lodius2000 replied to Lodius2000's topic in PHP Coding Help
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 -
[SOLVED] new user activation email - theory and implementation
Lodius2000 replied to Lodius2000's topic in PHP Coding Help
Scott ok that makes sense, Mad techie, dunno why i didnt think of session specifically, sometimes ima moran Thanks solved -
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
-
[SOLVED] Textarea info put into separate rows
Lodius2000 replied to shakingspear's topic in PHP Coding Help
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 -
[SOLVED] Textarea info put into separate rows
Lodius2000 replied to shakingspear's topic in PHP Coding Help
try exploding on \r\n linux = \n windows = \r\n -
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
-
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
-
KingPhilip, you are awesome // i knew it was something simple thanks a lot
-
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
-
its my understanding you use embed tags for 1 browser and object tags for the other, though i cant remember which uses which
-
I think its time to see the relevant code from this document
-
please click solved... o you did, sorry
-
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
-
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> "; 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
-
where is the header call in your php document
-
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
-
try putting angle brackets around id {$id} thats always my first troubleshoot with sql syntax errors, is to put those around all variables
-
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
-
ahh thanks, didnt know alter table allowed a name after it thanks
-
so something like SELECT tablename ALTER TABLE CHANGE old-col-name new-col-name would that be it?