pranshu82202
Members-
Posts
125 -
Joined
-
Last visited
Never
Everything posted by pranshu82202
-
I dont think masters reply is gonna work... The i have some password stored in my Database ... let us assume it "hello" And their is a variable $userpass which is the md5 hash of "hello" So to select i should my query not the masters one
-
I didnt get you
-
$sql = "select * from user_info where us_name='$username' and md5(us_pass)='$userpass'"; $result=mysql_query($sql); $row = mysql_fetch_assoc($result); $count=mysql_num_rows($result); But it is giving error : arning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\...\verify.php on line 19 I am not getting why it is so
-
FRANK P yes it is supported by all versions of google chrome and safari, mozilla 3.0+ and IE9
-
I am using mozilla firefox. i want to make a division transparent so i used the code <style type="text/css"> #mydiv { opacity: .2; } </style> It is making the division almost transparent but the text which i hav written turned transparent also... I also tried to put text in another division and setted it opacity to 1 but that too was not a success .. Basically i want to make background a little transparent but not the text.. Tell me what should i do... -pranshu.a.11@gmail.com
-
<?php //$_SESSION['email']="pranshu.a.11@gmail.com"; //$_SESSION['fname']="pranshu"; //$_SESSION['uname']="pranshu82202"; $msg = "Hello World"; require("class.phpmailer.php"); // path to the PHPMailer class $to="abc@def.com"; $sub="Personal Mail"; $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Mailer = "smtp"; $mail->Host = "mail.abcxyz.com"; //$mail->Port = 587; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "xyz@mydomain.com"; // SMTP username $mail->Password = "password"; // SMTP password //$file = './abc.txt'; // attachment //$mail->addAttachment('./apache_pb2_ani.gif'); $mail->From = "xyz@mydomain.com"; $mail->AddAddress("$to"); $mail->Subject = "$sub"; $mail->Body = "$msg"; //$headers = "MIME-Version: 1.0\r\n"; //$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$mail->WordWrap = 50; $mail->IsHTML(true); $mail->Send(); ?>
-
I am using smtp to send email .. the script is working fine but when i send an email to some gmail account (or any other) the reciever recieved it withe name "ROOT USER".. How can i change this name to my name..... -pranshu.a.11@gmail.com
-
Yes admin and WebStyles the code worked correctly... Thanks...
-
I have a form validation script which is written in php.. I want to add a validation (in registration form) that if the desired username contains either admin or owner keyword user will have to change his user name.. I made the following code but it does not work.. if(strpos($user_name, "admin")>=0 || strpos($user_name, "moderator")>=0 || strpos($user_name, "owner")>=0) { $error=$error."You are not allowed to take such Username<br>"; $bool=false; } In this code i am not able to enter any username.. And if i change >= to > then "admin123" username is going to be valid... I am troubled .... help me out guyzzz -pranshu.a.11@gmail.com
-
I have a doubt, suppose we have started a session and stored some variables, then we started another session and stored some session variables, will this session destroy yhte previous session.. ???
-
Hey thax harristweed it was actually great...
-
Well, i dont know exactly whether its a problem of PHP or of any other topic but i am posting it only in phpfreks.com as i think its the most active forum and ADMINS always want clear our doubts... Now comming to the problem: I am creating a forum kinda stuff where users post their doubts and other user try to solve them by commenting. I want to know how can i create such a window in which user can post with Formatting... like BOLD, ITALIC, HYPERLINKS, CODE, IMAGES, FONTS and all... It would be great if you guyzz tell me how can i create such a posting window.... (For example something like PHP FREAKS POST COLUMN... or (in which i m typing))... -pranshu.a.11@gmail.com
-
Is anyone their ??? to solve HTML EMAILS
-
Is anyone their ??? to solve HTML EMAILS
-
Kira i updated my code ... Have a look .. When i run this php file i only got the source code.. htmlspecialchar does not worked also Thanx
-
i am using a php mail scriot which is perfectly sending emails... <?php require("class.phpmailer.php"); // path to the PHPMailer class $to=$_POST['email']; $msg='<html> <body><h1>My HTML Message</h1> <p>This is text</p> </body> </html>'; $sub=$_POST['sub']; $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Mailer = "smtp"; $mail->Host = "mail.mydomain.com"; //$mail->Port = 587; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "user@mydomain.com"; // SMTP username $mail->Password = "password"; // SMTP password $file = './abc.txt'; // attachment $mail->addAttachment('./attachment.jpeg'); $mail->From = "USER"; $mail->AddAddress("$to"); $mail->Subject = "$sub"; $mail->Body = "$msg"; $mail->WordWrap = 50; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent.'; } } ?> Every thing is working fine.. But when i paste any html thing in the $msg variable i got just the source code... Any assistance will be very helpfull... -pranshu.a.11@gmail.com
-
I am very confused in between these three terms INCLUDE, REQUIRE, HEADER... Can anyone tell me the difference between these three terms... I just want to run a php file in the if condition.. Basically i do not want to open i just want to run ... for ex. <?php if(condition) { // run mail.php file } ?>
-
But sir i think by this we can only change our email address by which we are sending the email address.. It is not changing the name...
-
i am just using a php script... HERE is the code of php script <html> <?php require("class.phpmailer.php"); // path to the PHPMailer class $to=$_POST['email']; $msg=$_POST['message']; $sub=$_POST['sub']; $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Mailer = "smtp"; $mail->Host = "mail.mydomain.com"; $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "abc@mydomain.com"; // SMTP username $mail->Password = "password"; // SMTP password $mail->addAttachment('./apache_pb2_ani.gif'); $mail->From = "to@anydomain.com"; $mail->AddAddress("$to"); $mail->Subject = "$sub"; $mail->Body = "$msg"; $mail->WordWrap = 50; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent.'; } } ?> </body> </html> It is sending mesages perfectly but the problem is the name of senders (shown in the recievers mail box ) is always ROOT USER which i want to change to my name...
-
I am using my own smtp server mail.mydomain.com and my own email address... Can you advice how should i change the name according me....
-
Hey mjdamato, It cleared all my doubts regarding confirmation url. Thnks for your kind help... pranshu.a.11@gmail.com
-
I have created a registration form for my website. I want that, whenever any user register to my website an automated mail is send to the Email (with an confirmation link of registration) which he had given their.... I am able to send mails via smtp but dont know how to create a confirmation link url... :confused: :confused: I thought so that it must be the cookie which automatically generated on the registration.. I need your help.. Thanx in advance...
-
Whenever i send emails via SMTP the reciever recieved it with Name 'ROOT USER'... I want to know How to change it to my Name..... What should i do for that... And also what should i do if i want to embed an image in the message..... It would be great if you provide me some link for styling the SMTP mail... Thanx... pranshu.a.11@gmail.com
-
Hey mjdamato, Thanx for your reply.. I have solved my Doublt... Thanx ...
-
Can anyone tell me what does default means in phpMyandmin Database... I want to store timestamp automatically whenever user registeres to my site... can i do it by just selecting timestamp in the default column of the databse table.. Whether i need to write something in registration.php to insert the timestamp (which i set in the default column of my php databse)... Thanxx for your keen interest... -pranshu.a.11@gmail.com