hi
can anybody help in email.i want how to give from address.
eg
$from="l.w@gmail.com"
but in my mail i am getting from addr as
[email]l.w@bluehost.com[/email]
bluehost is my server name
please tell me how to avoid this

hi
i am using php email function .in from address i am getting my ftp email id
eg username:form,my mail id is as [email]form@connect.com[/email] but i want to give my own address...dynamically what i give.

[ICODE]
$body1="<html><head></head><body>";
$body1.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>";
$body1.="<tr><td><p>If you have net banking facility you can do an online transfer of just Rs.500 to the account ";
$body1.="</body></html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1" . "\r\n";
if (strlen($body2)>998) {
$headers .= "Content-Transfer-Encoding: base64;" . "\r\n";
$headers .= 'From: ' . $em . "\r\n" .'X-Mailer: PHP/' . phpversion();
}
[/ICODE]

hi
how to combine three tables in a single query.please send a sample code
thanks

seeker_id is commin in all the tables

when i execute the second code which i have send i am getting something like the below output

OUTPUT:

PGh0bWw+PGhlYWQ+PC9oZWFkPjxib2R5Pjx0YWJsZSB3aWR0aD0nODUwcHgnIGJvcmRlcj0nMCcg YWxpZ249J2NlbnRlcicgY2VsbHBhZGRpbmc9JzAnIGNlbGxzcGFjaW5nPScwJyBzdHlsZT0ndmVy dGljYWwtYWxpZ246dG9wOyc+PGJyIC8+

then plz tell how to do.now i am getting only the personal details and regards in the last line

this is my whole code
then wats wrong
just run this and see
[ICODE]<html>
<head></head>
<body>
<?
$headers = "From: [email]cggroup@car.com[/email]";
$toa = "lydia.whitin@gmail.com";
$subject1 = "An Agreement has been signed for your Job Order";
$body2="<html><head></head><body>";
$body2.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>";

$body2.="<br /><tr><td valign='top'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><br /><br />";

$body2.="<br /><tr><td colspan='100%' style='width:100%'><br /><br />";

$body2.="<br />
<table style='width:100%;' cellspacing='0' cellpadding='0'><tr><td class='bar' style='width:80%;'> Personal Details</td> Hi $ownername, <br /><br />";

$body2.="<br /><td class='bar' style='width:5%; text-align:right; font-style:italic;'></td><td style='width:1%'> </td></tr><br /><br />";

$body2.="<br /></table></td></tr><tr><td><table width='100%' border='0' align='left' > Hi $ownername, <br /><br />";

$body2.="<br /><tr><td height='124' colspan='2'><table width='100%' border='0'><tr><br /><br />";

$body2.="<br /><td width='6%'> </td><td width='25%' align='left'><span class='heading' style='width: 10%'>Name:</span></td><br /><br />";

$body2.="<br /><td colspan='3' align='left'></td><br /><br />";

$body2.="<br /></tr><tr><td> </td><td align='left'><span class='heading' style='width: 10%'>Address1:</span></td><br /><br />";

$body2.="<br /><td colspan='3' align='left'> </td></tr><tr><td> </td><br /><br />";

$body2.="<br /><td align='left'><span class='heading' style='width: 10%'>Address2:</span></td><br /><br />";

$body2.="<br /><td colspan='3' align='left'> </td></tr><tr><td> </td><br /><br />";

$body2.="<br /><td align='left' nowrap='nowrap'><span class='heading' style='width: 10%'>Date of Birth:</span></td><br /><br />";

$body2.="<br /><td width='26%' align='left'> </td><br /><br />";

$body2.="<br /><td width='26%' align='left'> </td><br /><br />";

$body2.="<br />
<td width='7%' align='left'><span class='heading' style='width: 10%'>Age:</span></td><br /><br />";

$body2.="<br />
<td width='36%' align='left'> </td></tr><tr><td> </td><br /><br />";

$body2.="<br />
<td align='left'><span class='heading' style='width: 10%'>Location:</span></td><td colspan='3' align='left'><br /><br />";

$body2.="</td><br /><br />";

$body2.="<br /></tr><tr><td> </td><td class='heading'>Sex:</td><td colspan='3'> </td></tr><br /><br />";

$body2.="<br /></table></td><td width='43%'><table width='93%' bgcolor='#eeeeee'><tr><td colspan='2' align='left' class='bar'>Contact Information</td><br /><br />";

$body2.="<br /></tr><tr><td width='31%' height='30px' align='left' nowrap='nowrap'><span class='heading' style='width: 10%'>Home Phone:</span></td><br /><br />";

$body2.="<br /><td width='69%' align='left'> </td></tr><tr><br /><br />";

$body2.="<br /><td height='23px' align='left'><span class='heading' style='width: 10%'>Mobile:</span></td>
<td align='left'> ...

hi,
i written a code for sending html maIL.MAIL FUNCTION IS WORKING BUT THE MAIL I AM GETTING I HAVE DISPLAYED BELOW.please do tell me how to send html mail
[ICODE]
$headers = "From: [email]cggroup@car.com[/email]";
$toa = "lydia@gmail.com";
$subject1 = "An Agreement has been signed for your Job Order";
$body2="<html><head></head><body>";
$body2.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>";

$body2.="<br /><tr><td valign='top'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'><br /><br />";

$body2.="<br /><tr><td colspan='100%' style='width:100%'><br /><br />";

$body2.="<br />
<table style='width:100%;' cellspacing='0' cellpadding='0'><tr><td class='bar' style='width:80%;'> Personal Details</td> Hi $ownername, <br /><br />";

$body2.="<br /><td class='bar' style='width:5%; text-align:right; font-style:italic;'></td><td style='width:1%'> </td></tr><br /><br />";

$body2.="<br /></table></td></tr><tr><td><table width='100%' border='0' align='left' > Hi $ownername, <br /><br />";

$body2.="<br /><tr><td height='124' colspan='2'><table width='100%' border='0'><tr><br /><br />";

$body2.="<br /><td width='6%'> </td><td width='25%' align='left'><span class='heading' style='width: 10%'>Name:</span></td><br /><br />";
$body2.="<br /><b>With Regards,</b><br /><b>CG Group</b><br />";
$body2.="</body></html>";

$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1" . "\r\n";
if (strlen($body2)>998) {
$headers .= "Content-Transfer-Encoding: base64;" . "\r\n";
$body2=rtrim(chunk_split(base64_encode($body2)));
$headers .= 'From: ' . $from . "\r\n" .'X-Mailer: PHP/' . phpversion();
}
$sent = mail($toa, $subject1, $body2, $headers)
[/ICODE]

OUTPUT:

PGh0bWw+PGhlYWQ+PC9oZWFkPjxib2R5Pjx0YWJsZSB3aWR0aD0nODUwcHgnIGJvcmRlcj0nMCcg YWxpZ249J2NlbnRlcicgY2VsbHBhZGRpbmc9JzAnIGNlbGxzcGFjaW5nPScwJyBzdHlsZT0ndmVy dGljYWwtYWxpZ246dG9wOyc+PGJyIC8+

sorry for the wrong query in the last post

[ICODE]"select seekers.firstname, seekers.middlename,seekers.lastname,seekers.totalexperience,seekers.mobile,seekers_qualification.qualification,seeker_target.jobtitle,seeker_target.ann_salary,seeker_target.state,seeker_target.relocate
from seekers left join (seekers_qualification,seeker_target)on(seekers.seeker_id=seekers_qualification.seeker_id and seekers_qualification.seeker_id=seeker_target.seeker_id and seeker_target.seeker_id=seekers.seeker_id) where seekers.seeker_id='$id'[/ICODE]

hi
i want to join four tables.i used left join.thougn value are there in my db all the datas from
seekers_qualification, seeker_target tables are getting displayed as Null.but there is no Sql error

[code=sql]SELECT seekers.firstname, seekers.middlename, seekers.lastname, seekers.totalexperience, seekers.mobile, seekers_qualification.qualification, seeker_target.jobtitle, seeker_target.ann_salary, seeker_target.state, seeker_target.relocate
FROM seekers
LEFT JOIN (
SELECT seekers.firstname, seekers.middlename, seekers.lastname, seekers.totalexperience, seekers.mobile, seekers_qualification.qualification, seeker_target.jobtitle, seeker_target.ann_salary, seeker_target.state, seeker_target.relocate
FROM seekers
LEFT JOIN (
seekers_qualification, seeker_target
) ON ( seekers.seeker_id = seekers_qualification.seeker_id
AND seekers_qualification.seeker_id = seeker_target.seeker_id
AND seeker_target.seeker_id = seekers.seeker_id )
WHERE seekers.seeker_id = '40'
AND seeker_target.seeker_id = '40'
OR seekers_qualification.seeker_id = '40'
LIMIT 0 , 30
) ON ( seekers.seeker_id = seekers_qualification.seeker_id
AND seekers_qualification.seeker_id = seeker_target.seeker_id
AND seeker_target.seeker_id = seekers.seeker_id )
WHERE seekers.seeker_id = '40'
AND seeker_target.seeker_id = '40'
OR seekers_qualification.seeker_id = '40'
LIMIT 0 , 30[/code]

when a user click a menu.it will drop down all the options.its a menu bar.
eg when u click file in IE it will display New,File.......
something like tat

hi
i tried printing the group name and it is working in one page.i have sent my file as attachment

please help me in solving the above code

this is actually a menu .i have included in all the pages.[CODE]<?
session_start();
require_once('common/dblayer.php');
$db=new dblayer();

$id=$employer_id;
$empid=$db->getgroupname($id);
$groupname=$empid[0]["group1"];
echo $groupname;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script type="text/javascript">

var menu1=new Array()
menu1[0]='<a href="employercp.php">Job Portal</a>'
menu1[1]='<a href="cggroup.php?id=<?php echo $groupname; ?>">Groups</a>'

</script>
</head>
[/CODE]

thanks for your reply.still its not working

hi
i want to pass variable from php to javascript.i want to pass my group[name please tell me.the current code is not working
[CODE]<?
session_start();
require_once('common/dblayer.php');
$db=new dblayer();

$id=$employer_id;
$empid=$db->getgroupname($id);
$groupname=$empid[0]["group1"];
echo $groupname;

?>[/CODE]
javascript code
[CODE]
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="employercp.php">Job Portal</a>'
menu1[1]='<a href="cggroup.php?id=<? echo $groupname; ?>">Groups</a>'

[/CODE]

thanks.i tried this way
[CODE]
SELECT article.id,article.ar_title,article.owner,article.ar_date,addinfo.pat,login.username
FROM article
LEFT JOIN (
login,addinfo
) ON ( login.id = article.owner
AND login.id = addinfo.userid
AND article.owner = addinfo.userid )
WHERE article.owner =17
LIMIT 0 , 30 order by article.ar_date DESC[/CODE]

hi,
i want to select from more than two table using a single mysql query.please tell me a example query/.
thanks in advance

hi i just want to how to pass data for navigation

hi,
page navigation is not working.please tell how to pass date
[CODE]<?
include_once('session_control_emp_sp.php');
?>
<html>
<head></head>
<body>
<?
//db connection

$page_name="mg_resumep.php";
//$limit=sql_quote($_GET['limit']); // Read the limit value from query string.
$limit=$_GET['limit'];
//$start=sql_quote($_GET['start']); // To take care global variable if OFF
$start=$_GET['start'];
$id=$_GET['id'];

// echo "\n";
$agent=mysql_query("select * from magic_agent where id='$id'") or die("ERROR:".mysql_error());
while ($magic=mysql_fetch_array($agent))
{
$industry=$magic[2];
$industry1=$industry;

// $industry1=$industry&$careerlevel1=$careerlevel&$day1=$day
$careerlevel=$magic[3];
$careerlevel1=$careerlevel;

// echo $careerlevel;
// echo "\n";
$chkstate=$magic[4];

$day=$magic[6];

$day1=$day;
//echo $day1;
echo $industry1;
echo $careerlevel1;
echo $chkstate;
// echo "\n";
}
$empi=$_SESSION['employerid'];
$ours=mysql_query("SELECT group1 from cggroup where userid='$empi'")or die("ERROR:".mysql_error());
while ($our=mysql_fetch_row($ours))

{

echo "ours";
$gnam=$our[0];
$gname1=$gnam;
echo $gnam;
}

if(!($start > 0))
{ // This variable is set to zero for the first page
$start = 0;
}

$eu = ($start - 0);
if(!$limit > 0 )
{ // if limit value is not available then let us use a default value
$limit = 1; // No of records to be shown per page by default.
}
$this1 = $eu + $limit;
$back = $eu - $limit;
$next = $eu + $limit;

//*****/

if($chkstate==0)
{
if($careerlevel==-1)
{

$result = mysql_query("SELECT post_resume.pid,post_resume.res_title, post_resume.candidate_type,

post_resume.ind_type, post_resume.career, post_resume.resume, post_resume.resume_upload, post_resume.groupn, login.id, login.username

FROM post_resume

INNER JOIN login ON post_resume.owner = login.id

WHERE ind_type = '$industry1'

&& groupn = '$gnam' && owner<>'$empi' && type='1' && tdate<='$day1' order by tdate limit $eu, $limit") or die("ERROR:".mysql_error());
}
else
{
$result = mysql_query("SELECT post_resume.pid,post_resume.res_title, post_resume.candidate_type,

post_resume.ind_type, post_resume.career, post_resume.resume, post_resume.resume_upload, post_resume.groupn, login.id, login.username

FROM post_resume

INNER JOIN login ON post_resume.owner = login.id

WHERE ind_type = '$industry1' ...

i want to know the page name in which u have stored this page

wat is ur page name

sorry i want the user to download in doc format.

[CODE]$query1="DELETE FROM autoalto_mail where mail_id=$mailid1";
[/CODE]
check out and reply

hi
can u please tell me how to convert html page into word document so tat the user can download the page in html format

hi data is getting inserted on page load itself

<?php
if(isset($_POST['submit'])) {

//print_r($_POST);

$des=$_REQUEST['description'];

$tomorrow = mktime(0,0,0,date("m"),date("d"),date("Y")); 
$day=date("Y/m/d", $tomorrow); 
$time_now=mktime(date('h'),date('i'),date('s')); 
$time=date('h:i:s A',$time_now);
$title=$_REQUEST['title'];
mysql_query("INSERT INTO article(ar_title,ar_desc)values('$title','$des')") or die("ERROR:".mysql_error());
echo "Thanks";
}

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>

    <script language="javascript" type="text/javascript" src="./tinymce/jscripts/tiny_mce/tiny_mce.js"></script>

<script language="javascript" type="text/javascript">

tinyMCE.init({
    mode : "textareas",
    theme : "advanced",

    plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",

    theme_advanced_buttons1_add_before : "save,separator",
    theme_advanced_buttons1_add : "fontselect,fontsizeselect",

    theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",

    theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",

theme_advanced_buttons3_add_before : "tablecontrols,separator",

    theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
    theme_advanced_toolbar_location : "top",

    theme_advanced_toolbar_align : "left",
    theme_advanced_path_location : "bottom",
    plugin_insertdate_dateFormat : "%Y-%m-%d",

    plugin_insertdate_timeFormat : "%H:%M:%S",

    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",

    external_link_list_url : "example_data/example_link_list.js",

    external_image_list_url : "example_data/example_image_list.js",

    flash_external_list_url : "example_data/example_flash_list.js"
});

</script>
</head>
<body>
<form method="post" action="test.php">

<input type="text" name="title">
<textarea name="description" cols="100" rows="27"></textarea>
<input type="submit" name="submit" value="submit" />
</form>
</body></html>

hi,
thanks a lot.its working i just want to know whether i can add fields in the same page

tinymce

tinymce

should i change anything else other than this