My account: Login | Sign Up
Loading... 

PHP | Forum profile

Forum profile page for PHP on http://www.tek-tips.com. This report page is the aggregated overview from a single forum: PHP, located on the Message Board at http://www.tek-tips.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "PHP" on the Message Board at http://www.tek-tips.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: Tek-Tips Forums - PHP (site profile, domain info tek-tips.com)
Title: PHP
Url: http://www.tek-tips.com/threadminder.cfm?pid=434
Users activity: 34 posts per thread
Forum activity: 52 active threads during last week
 

Posting activity on PHP:

  Week Month 3 Months
Threads: 52 163 460
Post: 147 514 1,564
 

PHP Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
jpadie
38
user's latest post:
Conditional tag showing...
Published (2008-12-04 11:41:00)
you are using wordpress, right? this is occurring because the_time is an output function rather than a return function.  if you look at the code then you will see that it ends with an echo. so instead CODE echo "You are viewing all exceprts from "; the_time('F Y');
vacunita
11
user's latest post:
Why is it echoing the variable name
Published (2008-12-04 11:50:00)
You should have gotten a notice for this, but apparently your PHP is not set to display notices. But in this line I'm assuming you want that to be the variable $errorlist, not just the string/CONSTANT errorlist. So: CODE $errortmp = trim( $ errorlist); ---------------------------------- Ignorance is not necessarily Bliss, case in point: Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to...
Ruggie
10
user's latest post:
Formatting question
Published (2008-12-03 12:52:00)
Another thing to note, does the _p function return a value or does it output the text directly to the buffer/user ? If it outputs the text directly, remove the = sign before you call it. You use that to echo results, example: CODE <? $myvar = " world!"; ?> <html> Hello <?=$myvar?> ! </html> Result: Hello world! or you could use something like: CODE <?echo $myvar;?> and it would have...
DaButcher
7
user's latest post:
create job and job items
Published (2008-11-27 10:23:00)
Hi, I think I understand that you have 2 tables: [job] [job_details] Then you want a 1:many relationship. So, what you can do: 1) insert into the job table > secure your variables, strip them for tags, run htmlentities, etc. 2) use function mysql_insert_id(); > $jobid = mysql_insert_id(); 3) insert the data into the other table, setting the fk-field to the $jobid. How do you do this practically? You can, if I understand you correct,...
sen5241b
7
user's latest post:
Whant to remove last character...
Published (2008-12-03 18:32:00)
Uh oh, switch the parms I put above.
bigcat48
7
user's latest post:
PHP: Display and update radio...
Published (2008-12-04 10:40:00)
Could someone tell me what's wrong with this. What I am trying to do is select a chosen value from the database and also have the option to change the selection? Here's the code. CODE <?php include("includes/connection.php"); $id = $_GET['id']; $sql="SELECT * FROM tblCompanies WHERE id=$id"; function getOptions(){  $return = '';  $rs=odbc_exec($conn,$sql);...
followtheboat
6
user's latest post:
Conditional tag showing...
Published (2008-12-04 12:21:00)
Correct and spot on! Thank you for your prompt response.
TechieMicheal
5
user's latest post:
password encryption
Published (2008-12-03 11:00:00)
I agree with jpadie up until the recommendation of using JavaScript where I have to respectfully disagree. If you don't want the password sent in the clear, use SSL. That's what it is for. Using JavaScript, while "neat," causes problems. For example, what if a user disables JavaScript? I do by default until I know I can trust a website, then I enable it for that website alone. What about users that don't have...
ingresman
5
user's latest post:
password encryption
Published (2008-12-03 11:18:00)
Quote: Incidentally, it is not possible to unhash. A hash is a one-way function. It is possible to find the equivalent using brute force, but it is not possible to reverse the hash. Totaly agree, as a hash function can return the same value for more than one set of input (hence overflow in hash files)
gavinhall
4
user's latest post:
create job and job items
Published (2008-11-27 13:27:00)
Hi it looks like i need to do an update query one at a time for each item in job_detail - is this the best way to do it or could there be a loop to update all that are present? kindest thanks Gav
 

Latest active threads on PHP::

Tek-Tips Forums
Started 19 hours, 49 minutes ago (2008-12-04 11:33:00)  by followtheboat
Hi, newbie here. I have a condition that displays a call from the database first BEFORE displaying my text, when the code is the other way round. It should say 'You are viewing all excerpts from (date)' when instead it is displaying '(date)You are viewing all excerpts from'. Any clues? CODE <?php if (is_archive()) { echo 'You are viewing all excerpts from' . the_time('...
Thread:  Show this thread (3 posts)   Thread info: Conditional tag showing condition before echo Size: 756 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Conditional tag showing condition before echo :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 19 hours, 40 minutes ago (2008-12-04 11:42:00)  by snowboardr
new to php its echoing the variable name rather than the list i created... CODE $cid = @$_POST["cid"]; $cfirst = @$_POST["cfirst"]; $clast = @$_POST["clast"]; $caddress = @$_POST["caddress"]; $ccity = @$_POST["ccity"]; $cstate = @$_POST["cstate"];...
Thread:  Show this thread (2 posts)   Thread info: Why is it echoing the variable name Size: 7,699 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Why is it echoing the variable name :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 2 weeks, 2 days ago (2008-11-18 14:25:00)  by bigcat48
All - I need to display "yes or no" selected values for a radio button option and have the ability to update an option back to the database. Here is the code: CODE <?php // create database connection include("includes/connection.php"); $id= $_GET['id']; $query = "SELECT * FROM tblIndividuals WHERE id = $id"; // query the database...
Thread:  Show this thread (23 posts)   Thread info: PHP: Display and update radio btn values in MS Access Size: 4,692 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "PHP: Display and update radio btn values in MS Access :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 16 hours ago (2008-12-03 14:43:00)  by lexer
Hi I've a Drop down list filled from a mysql table and I've gpot also a text field, I want to send the selection made from the drop down list and the text field to another php program, I've receive the information from the text field but not the drop down list selection. This is the php program with the drop down list and the text field: <html> <h5> Select Ext</h5> <form method="get" ...
Thread:  Show this thread (3 posts)   Thread info: Sending selection from Drop Down lIst Size: 2,366 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Sending selection from Drop Down lIst :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 5 hours ago (2008-12-04 01:50:00)  by tyhand
Hey all, How can I add 1 hour to the current time in PHP? I'm using the date function. Example: $omydate = date("Y-m-d H:i:s"); What I want to do is add 1 hour to the "H". So whenever the code parses the date, it will always be the current time plus 1 hour. If current time is 14:25:30, I want it to read 15:23:30. How can I accomplish this? Thanks! - Tyhand.
Thread:  Show this thread (3 posts)   Thread info: Adding 1 Hour to Current Time Using Date Function Size: 538 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Adding 1 Hour to Current Time Using Date Function :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 5 hours ago (2008-12-04 01:25:00)  by timgerr
Here is my problem, I am used to different languages (java,flex) where I can declare somthing and then add to it when I want. Here is my problem, I want to declare an object, run a function that will add an array to the object and then add to that object from another function. It might be easier to show you what I am trying to say: CODE global $test; $test = new stdClass; $test-> name = ...
Thread:  Show this thread (2 posts)   Thread info: Declare a global object and add to it Size: 1,533 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Declare a global object and add to it :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 13 hours ago (2008-12-03 18:06:00)  by timgerr
Hello all, Here is something goofy, I am trying to remove the last character from a string so I use this method: CODE $test = '012345678'; while($test){ echo $test . '<br/> '; $test = substr($test,0,-1); } This is the output CODE 012345678 01234567 0123456 012345 01234 0123 012 01 it ends at 01. I want to recursively go through $test and get rid of the last character, what is the ...
Thread:  Show this thread (7 posts)   Thread info: Whant to remove last character from string Size: 1,021 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Whant to remove last character from string :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 1 day, 14 hours ago (2008-12-03 16:29:00)  by simon373
Hi, I would like some way of authenticating a user logging into my PHP intranet so that the user can only log in using one computer. Is there some way of implementing a certificate stored on the user's machine to do this? Many thanks.
Thread:  Show this thread (2 posts)   Thread info: PHP certificate auth system? Size: 326 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "PHP certificate auth system? :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 3 days, 9 hours ago (2008-12-01 21:51:00)  by fergmj
I have some code <tr> 309 <td align="center" valign="top" class="style6"> <span class="style11"> A:</span> </td> 310 <td width="1%" align="center" valign="top" class="style6"> &nbsp;</td> 311 <td class="style6"> <?=_p('No, our wireless site is always 100% free to you.')?> </td> 312 </tr> it prints out on the screen as A: No, our ...
Thread:  Show this thread (5 posts)   Thread info: Formatting question Size: 915 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Formatting question :: PHP :: Tek-Tips Forums"
Tek-Tips Forums
Started 4 days, 7 hours ago (2008-11-30 23:25:00)  by sen5241b
I want to write info to my debug or 'dump' file from anywhere in the scope of my app. I have a settings.php, a main.php and a LibOfFuncs.php file. Is there a way to create a 'global' file handle I can write to?
Thread:  Show this thread (12 posts)   Thread info: Write to Debug file globally Size: 265 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Write to Debug file globally :: PHP :: Tek-Tips Forums"
 

Hot threads for last week on PHP::

PHP
Started 4 days, 7 hours ago (2008-11-30 23:25:00)  by sen5241b
I want to write info to my debug or 'dump' file from anywhere in the scope of my app. I have a settings.php, a main.php and a LibOfFuncs.php file. Is there a way to create a 'global' file handle I can write to?
Thread:  Show this thread (12 posts)   Thread info: Write to Debug file globally Size: 265 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Write to Debug file globally :: PHP :: Tek-Tips Forums"
PHP
Started 3 days, 14 hours ago (2008-12-01 16:48:00)  by cmayo
I'm working on an existing project for a client and the client has asked me to prevent the system from allowing duplicate form submissions, usually produced by users backing through the system and okaying the re-post warnings, or by reloading post-submission landing pages. The project is a custom CRM system, pretty involved, and the thought of somehow tokenizing and/or recoding several ...
Thread:  Show this thread (10 posts)   Thread info: Preventing duplicate form submissions Size: 873 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Preventing duplicate form submissions :: PHP :: Tek-Tips Forums"
PHP
password encryption - 10 new posts
Started 3 days, 9 hours ago (2008-12-01 21:59:00)  by wsproperties
Using php admin (server side) I have the following code insert into admin values ('','Smith','smith_gr ',password('tlc84')) ; I have done this several times. I general get the name and an encrypted password resembling a hexidecimal numeric sequence. Now I get a long number like this *EAA2EB17BB18979A5D3824AC. The password will not work when I access it. In addition, if I want to ...
Thread:  Show this thread (10 posts)   Thread info: password encryption Size: 711 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "password encryption :: PHP :: Tek-Tips Forums"
PHP
Started 6 days, 13 hours ago (2008-11-28 17:35:00)  by dmacster
That's the best title I can think of for this. I've a client that has a bunch of html pages already created, and wants to add some banner type ads. I've added the htaccess file to the server and it will parse out the php in the file(s) with html extensions, but it won't use them as includes. Hope that makes sense. This works http://capegazette.com/timeshareAds/banner.html As well as the ...
Thread:  Show this thread (9 posts)   Thread info: Parsing php through html with includes Size: 2,037 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Parsing php through html with includes :: PHP :: Tek-Tips Forums"
PHP
Soft Delete - 8 new posts
Started 3 days, 16 hours ago (2008-12-01 14:35:00)  by bigcat48
Is there anyway to soft delete an entry. Let me further explain. Add to one table and remove from another table. Could this be done with one action or script? Please assist if so. Thank you.
Thread:  Show this thread (8 posts)   Thread info: Soft Delete Size: 305 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Soft Delete :: PHP :: Tek-Tips Forums"
PHP
Started 2 weeks, 2 days ago (2008-11-18 14:25:00)  by bigcat48
All - I need to display "yes or no" selected values for a radio button option and have the ability to update an option back to the database. Here is the code: CODE <?php // create database connection include("includes/connection.php"); $id= $_GET['id']; $query = "SELECT * FROM tblIndividuals WHERE id = $id"; // query the database...
Thread:  Show this thread (23 posts)   Thread info: PHP: Display and update radio btn values in MS Access Size: 4,692 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "PHP: Display and update radio btn values in MS Access :: PHP :: Tek-Tips Forums"
PHP
Started 1 week ago (2008-11-27 07:29:00)  by gavinhall
Hello - i am new to this site so hopefully you will understand what i am trying to do. I want to add a new row to a "job" table and at the same time add multiple rows to a "job details" in mysql The job table needs to generate a job number and add a date the job details table needs to include the job number and a list of notes. Is there a simple example that i can look at to point me in ...
Thread:  Show this thread (7 posts)   Thread info: create job and job items Size: 612 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "create job and job items :: PHP :: Tek-Tips Forums"
PHP
Shopping Cart Script - 7 new posts
Started 1 week, 1 day ago (2008-11-27 05:29:00)  by Brianfree
Hi, i am trying to find a free shopping cart script - please can someone point me in the right direction. However this is a different type of shopping cart - instead of our company selling parts from a catalogue, we have a catalogue of parts that we want - so a user can log on, do a search and displays a list of parts we want - they can then add them to a job, print an invoice and send us the ...
Thread:  Show this thread (7 posts)   Thread info: Shopping Cart Script Size: 602 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "Shopping Cart Script :: PHP :: Tek-Tips Forums"
PHP
Started 1 week, 1 day ago (2008-11-27 00:10:00)  by hex6007
hello guys, how do i code that my password would be in md5 format? pls help. thanks in advance
Thread:  Show this thread (7 posts)   Thread info: how to encrhypt password to md5 format Size: 194 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "how to encrhypt password to md5 format :: PHP :: Tek-Tips Forums"
PHP
Started 5 days, 16 hours ago (2008-11-29 15:01:00)  by followtheboat
I'm a complete noob when it comes to PHP so this should be an easy one for people to answer. I just want to include some html depending upon a condition. How do I do it? I'm using an include as an example but want to replace the include with the html: CODE <?php if (is_page('2')) { include('sidebar_about.php');} else { include('sidebar_home.php');} ?> Any help ...
Thread:  Show this thread (7 posts)   Thread info: How do I include html in IF statement? Size: 663 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "How do I include html in IF statement? :: PHP :: Tek-Tips Forums"