Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. surtam

    If statement problem

    If I understood right, what you are trying to achieve is, not to show null in the listing, instead you want a space. Your initial statement is correct, just change it like this. SELECT IF ( isnull( sub_page.sub_id ) , "", sub_page.sub_id ) as subpid, page.name, page.url, page.id FROM `page`...
  2. surtam

    Date Display in PHP

    Based on the format you have given, here's the soln <?php $t = "20050812202916"; $yr = substr($t,0,4); $mon = substr($t,4,2); $day = substr($t,6,2); $hour = substr($t,8,2); $min = substr($t,10,2); $sec = substr($t,12,2); $bday = mktime($hour,$min,0,$mon,$day,$yr); $dformatted...
  3. surtam

    Putting a select query result into table/array

    Zor, Please go thru this link, it will help you to understand the form submission and handling form data. http://www.w3schools.com/php/php_forms.asp http://www.thesitewizard.com/archive/feedbackphp.shtml http://www.onlamp.com/pub/a/php/2004/08/26/PHPformhandling.html And let me know about...
  4. surtam

    Putting a select query result into table/array

    If you are going to compare just one name against the values stored in the database, you can very well do it with the sql query, I am not sure, why you want to compare each and evey value. There are many ways to accomplish the task, but this is one, which is very simple to implement. For...
  5. surtam

    Putting a select query result into table/array

    its not printf("<tr><td>%s</td>",$colvalue["Names"]); Change it to printf("<tr><td>%s</td>",$colvalue); -------Information is not knowledge-------
  6. surtam

    Putting a select query result into table/array

    Say, if the column name is col1 $qry =mysql_query ("select * from table"); while ( $result = mysql_fetch_array($qry) ) { $colvalue = $result["col1"]; //here you can use this $colvalue to assign to array or compare it with the user input. ..... } -------Information is not...
  7. surtam

    Attach a pdf to an email

    As sleipnir214 said, we don't have to put the variable inside the quotes. your code $PDF_file = "$DOCUMENT_ROOT/intranet/PDF/$SubmissionID.pdf"; $mail->AddAttachment("$PDF_file", '$SubmissionID.pdf'); can be modified as $PDF_file = "$DOCUMENT_ROOT/intranet/PDF/$SubmissionID.pdf"...
  8. surtam

    Attach a pdf to an email

    Thanks for the detailed information. Here's the code, which does the similar thing. Look how the $PDF_File is constructed and used in the code. //clientID and clientDOC are post variables $PDF_file = "$DOCUMENT_ROOT/$clientID/LDR$clientDOC.pdf"; class mime_mail { var $parts; var $to; var...
  9. surtam

    Attach a pdf to an email

    you mean to create the file dynamic and attach it to email. -------Information is not knowledge-------
  10. surtam

    Really simple program...strange error message

    I am sure, its nothing to do with the version you are using. Its the path in your system. I tried to execute in the lower version the program works fine from the command line. Try this, go to the source directory and from their give the full path to the javac and java, like this. C:\Documents...
  11. surtam

    Numeric range from text string function

    ---------your post--------- Examples of what I would consider valid entries would be "1-6" or "6+9+14" or "1-4,12" or "12". ---------your post--------- Can you explain in detail about the ranges? What you trying to achieve here? One intrepretation of the valid entries could be "1-6" --> 1 to 6...
  12. surtam

    Really simple program...strange error message

    I don't see any problem with the code. Just copied and compiled it, got the results. import java.io.*; //import javax.swing.*; //import javax.swing.event.*; //import java.awt.*; public class ListMod { public static void main(String[] args) { new ListMod(); } public...
  13. surtam

    Attach a pdf to an email

    Submitted the code, without giving any explanation to it. Its very generic and you can use this code to attach any files and if you want to attach more than one file, declare attachments and call the member function. $attachment5 = fread(fopen($PDF_file, "r"), filesize($PDF_file))...
  14. surtam

    Attach a pdf to an email

    <?php class mime_mail { var $parts; var $to; var $from; var $headers; var $subject; var $body; function mime_mail() { $this->parts = array(); $this->to = ""; $this->from = ""; $this->cc = ""; $this->subject = ""; $this->body = ""; $this->headers = ""; } function...

Part and Inventory Search

Back
Top