User Profile

Collapse

Profile Sidebar

Collapse
Rana Chakra
Rana Chakra
Last Activity: Dec 14 '10, 04:12 AM
Joined: Sep 14 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I am maintaining the mail function signature perfectly. But, the error is still there. I guess I have messed up something with ini_set() but not getting it. I need the total php settings or example to send the mail from my php page through my gmail account.
    Can you please help me?
    Even if I copied the code from the referred link. Still it is not working an it is giving the following error:

    Warning: mail() [function.mail]:...
    See more | Go to post
    Last edited by Rana Chakra; Dec 10 '10, 12:31 PM. Reason: missed a point

    Leave a comment:


  • How to Send Mail with account activation link after filling up registration form

    I am trying to send an automatic mail containing the account activation link to the person who is filling up the registration form after he/she clicks on Create account button. But every time it giving an error .... Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. w42sm3532376wfh .15 in C:\wamp\www\Key West\NewRegiste r.php on line 66... can I get some help. The code I have written is as follows:...
    See more | Go to post

  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    This code removed the problem....
    Code:
    <center><table border="1" bordercolor="orange">
      <tr>
    	<td bgcolor="black">&nbsp</td>
    	<td bgcolor="black"><font color="orange" face="verdana" size="2"><b>Job Number</b></font></td>
    	<td bgcolor="black">&nbsp</td>
    ...
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    OK got it.... <tr> and </tr> is firing for only one column...... Sorry for the sily question.
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    code under if is working for i%3==1 .... help

    I just want to display three columns in one row. But, when value of $i is 1 or 4, the statements under if is firing. Dont know why it is happening, and how to solve it.
    Code:
    $i=0;
       while ($row = mysql_fetch_assoc($result))
       {
        if(($i%3)==0)
        {
          echo "<tr>";
          echo "<td><input type=radio
    ...
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    Yep.. solved the problem. I changed the code as follows:
    Code:
    $query="select * from employee where srl ='". $r."'";
    $result=mysql_query($query);
    while($row = mysql_fetch_assoc($result))
        {
    	echo "<br><strong>Employee Name:".$row['ename'];
    	echo "<br>Designation  :".$row['desig'];
    	echo "<br>Department   :".$row['dept'];
    ...
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    mysql_fetch_ass oc() expects parameter 1 to be resource.. line 58

    mysql_fetch_ass oc() expects parameter 1 to be resource at line 58... Please help
    Code:
    <?php
    session_start();
    if($_SESSION['UID'])
      {
       if($_SESSION['RGT'] == "R")
          header("location:NoAccess.php");
      }
    else
          header("location:NoAccess.php");
    $message="";
    ...
    See more | Go to post
    Last edited by Rana Chakra; Sep 20 '10, 12:41 PM. Reason: Wrong subject

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    Thanks for replying

    Thanks to you too for paying kind attention. will come back if got stuck anywhere.
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    SOlved it. wrote msg="...." instead of $msg="..."
    Thanks....
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    replied to Why getting parse error in PHP at line 20?
    in PHP
    Modified - Now getting in Line 38

    Code:
    <?php
    $username="root";
    $password="";
    $database="lko_phone";
    $host="localhost";
    $msg="";
    mysql_connect($host,$username,$password);
    @mysql_select_db($database);
    
    if($_POST)
    {
      $myusername=$_POST['unm'];
      $mypassword=$_POST['pwd'];
    
      $sql="SELECT
    ...
    See more | Go to post

    Leave a comment:


  • Rana Chakra
    started a topic Why getting parse error in PHP at line 20?
    in PHP

    Why getting parse error in PHP at line 20?

    Code:
    <?php
    $username="root";
    $password="";
    $database="lko_phone";
    $host="localhost";
    $msg="";
    mysql_connect($host,$username,$password);
    @mysql_select_db($database);
    
    if($_SERVER["REQUEST_METHOD"] == "POST")
    {
      $myusername=$_POST['unm'];
      $mypassword=$_POST['pwd'];
    
      $sql="SELECT
    ...
    See more | Go to post
No activity results to display
Show More
Working...