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`...
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...
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...
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...
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"...
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...
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...
---------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...
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...
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))...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.