amit srivastava


{ City } gaziabad
< Country > india
* Profession * developer
User No # 72429
Total Questions Posted # 0
Total Answers Posted # 3

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 24
Users Marked my Answers as Wrong # 9
Questions / { amit srivastava }
Questions Answers Category Views Company eMail




Answers / { amit srivastava }

Question { 7381 }

How to send Email using PHP with MySQL in Linux Server?..


Answer

include("Mail.php");
/* mail setup recipients, subject etc */
$recipients = "feedback@yourdot.com";
$headers["From"] = "user@somewhere.com";
$headers["To"] = "feedback@yourdot.com";
$headers["Subject"] = "User feedback";
$mailmsg = "Hello, This is a test.";
/* SMTP server name, port, user/passwd */
$smtpinfo["host"] = "smtp.mycorp.com";
$smtpinfo["port"] = "25";
$smtpinfo["auth"] = true;
$smtpinfo["username"] = "smtpusername";
$smtpinfo["password"] = "smtpPassword";
/* Create the mail object using the Mail::factory method */
$mail_object =& Mail::factory("smtp", $smtpinfo);
/* Ok send mail */
$mail_object->send($recipients, $headers, $mailmsg);
?>

Is This Answer Correct ?    1 Yes 0 No

Question { 3801 }

How to get tabels from database in php andd display it in
the table form using codelgniter?
plz help me


Answer

require "config.php"; //for connection with database
$query2=" SELECT * FROM tablename";
$result2=mysql_query($query2);
echo mysql_error();
$nume=mysql_num_rows($result2);
$bgcolor="#f1f1f1";
echo " cellspacing=2> ";
echo "";
echo "";
echo "";
echo "";
echo "";

  face='arial,verdana,helvetica'
color='#000000'>value1
  face='arial,verdana,helvetica'
color='#000000'>value2
  face='arial,verdana,helvetica'
color='#000000'>value3
  face='arial,verdana,helvetica'
color='#000000'>value4
  face='arial,verdana,helvetica'
color='#000000'>value5
Is This Answer Correct ?    4 Yes 5 No


Question { 11453 }

Where are magic tables stored ? Is it in the same database
where it is created ?


Answer

Magic tables stored in the same database

Is This Answer Correct ?    19 Yes 4 No