|
More site info...
|
|
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.
|
|
|
|
|
Posting activity on PHP:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
52
|
163
|
460
|
|
Post:
|
147
|
514
|
1,564
|
|
|
PHP Posting activity graph:
|
Top authors during last week:
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');
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...
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...
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,...
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);...
user's latest post:
Conditional tag showing...
Published (2008-12-04 12:21:00)
Correct and spot on! Thank you for your prompt response.
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...
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)
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::
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('...
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"];...
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...
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" ...
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.
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 = ...
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 ...
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.
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"> </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 ...
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?
|
|
Hot threads for last week on 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?
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 ...
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 ...
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 ...
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.
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...
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 ...
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 ...
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
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 ...
|
|