User Profile

Collapse

Profile Sidebar

Collapse
tutu saint
tutu saint
Last Activity: Jun 21 '13, 03:33 PM
Joined: Jun 3 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tutu saint
    started a topic PHP Gmail SMTP Error
    in PHP

    PHP Gmail SMTP Error

    I have a registration script that sends email through Gmail SMTP with the below script.

    i received errors (SMTP Error: Could not connect to SMTP host. )


    Please what is wrong with this code.


    Code:
    <?php
    
    require_once('Connections/dbcon.php');
    
    if (isset($_POST['formsubmitted'])) {
        $error = array();//Declare An Array to store any error message
    ...
    See more | Go to post

  • tutu saint
    started a topic Get Products with expiry days within 90 days
    in PHP

    Get Products with expiry days within 90 days

    I need to get list of products that has expiry days withen 90 days from current date.
    I have written the below coded but it is displaying nothing even when i have some withen 5 days.

    Code:
         <?php	
    							include "Connections/conn.php";
    	
    
    
    	
    
    //PHP Example code to add one moth to a date
    
    $todayDate = date("m/d/Y");// current date
    ...
    See more | Go to post

  • tutu saint
    started a topic PHP MS SQL connection (Dreamweaver cs6)
    in PHP

    PHP MS SQL connection (Dreamweaver cs6)

    I am having problems setting up a connection to a MS SQL server using PHP. I have tried to changes the string in the Connections folder to use mssql_connect, rather than mysql_connect and set the various parameters, but keep getting an error the the server does not exist.
    I have edited the php.in file to use php_mssql.dll and for good measure, also copied the dll to the Windows directory.

    I am using DW CS6 and any help with...
    See more | Go to post

  • tutu saint
    started a topic PHP MSSQL connection
    in PHP

    PHP MSSQL connection

    How can i connect PHP script to MSSQL server.
    See more | Go to post

  • tutu saint
    started a topic Expiry date notification
    in PHP

    Expiry date notification

    I need to display applications with expiry date wethen 60 days, and have written the below codes which is not working.
    Please help in correcting it.

    Code:
    $curdate = date("m/d/Y");		  
    	
    $result = mysql_query("SELECT app_name, entity, license_expiry FROM app WHERE license_expiry = $curdate, INTERVAL 60 DAY)");
    
    
    while ($row = mysql_fetch_array($result)) {
    ...
    See more | Go to post

  • tutu saint
    started a topic Feed not working
    in PHP

    Feed not working

    Hello,

    I created a php feed page for my site and needs the page to show rescent jobs which can be clicked to access the particular link.

    This is what i have and it is not working.
    Please help

    Code:
    <?php  header('Content-type: text/xml'); ?>
         
    	<rss version="2.0">
    	<channel>
    	<title>xcvxcv</title>
    	<description>xcvxvxcv</description>
    ...
    See more | Go to post

  • tutu saint
    replied to PHP Corn Job not inserting into database
    in PHP
    Hello Luuk,
    The file works perfectly when viewed with a browser. I mean, it inserts the date and value. But when created a corn job in cpanel with the is "/usr/local/bin/php -q /home/username/public_html/corn.php"

    It gives the below given error
    ---------------Error Message -----------------

    could not insert into database

    ---------------End Error --------------------
    See more | Go to post

    Leave a comment:


  • tutu saint
    started a topic PHP Corn Job not inserting into database
    in PHP

    PHP Corn Job not inserting into database

    Please help
    I have a php script that inserts current date and value into a table.
    The scripts work fine on my local system when run but trows up error when run as corn job in my cpanel.

    Code:
    <?php 
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_dbconnect = "localhost";
    $database_dbconnect = "database";
    ...
    See more | Go to post

  • tutu saint
    replied to Mail function not delivering
    in PHP
    Murat,
    Row[0] containes receivers email addresses.
    line 25 of the codes echoes the result and says "Mail sent to addd@add.com successfully" but the mails are not delivered.
    See more | Go to post

    Leave a comment:


  • tutu saint
    started a topic Mail function not delivering
    in PHP

    Mail function not delivering

    The below given was supposed to send emails to subscribers but the mail is not being delivered.

    Please help.


    Code:
      $allemails="select email from members";
      //mysql_select_db($database_dbCon, $dbCon);
      mysql_select_db($database,$db_connect) or die( "Unable to select database");
      $Result = mysql_query($allemails, $db_connect) or die(mysql_error());
    ...
    See more | Go to post

  • tutu saint
    replied to Emailing members of a forum
    in PHP
    Niheel's link was very helpful and i was able to get the below codes working
    Code:
      $allemails="select email from members";
      //mysql_select_db($database_dbCon, $dbCon);
      mysql_select_db($database,$db_connect) or die( "Unable to select database");
      $Result = mysql_query($allemails, $db_connect) or die(mysql_error());
     
    //  $str="";
      while($row=mysql_fetch_array($Result)){
    ...
    See more | Go to post

    Leave a comment:


  • tutu saint
    replied to Emailing members of a forum
    in PHP
    Thanks Niheel,
    I am still very new in php and can implement this but with time. can you help me with a sample code?
    See more | Go to post

    Leave a comment:


  • tutu saint
    replied to Emailing members of a forum
    in PHP
    I want to send a mail informing all registered members of the new members registration. I wan every registered member to receive the email informing them of a new user.
    See more | Go to post

    Leave a comment:


  • tutu saint
    started a topic Emailing members of a forum
    in PHP

    Emailing members of a forum

    I have a registration form which sends confirmation email to the new user. i also want the same email to be sent to all registered users.

    I have a view containing all registered members email and i need to inform all of them of the new user.

    This is what i have so far and i need help in achieving this.


    Code:
    <?php
    //define the receiver of the email
    $to = 'youraddress@example.com';
    ...
    See more | Go to post

  • tutu saint
    replied to Stock Quantity leven
    in PHP
    Hello John, Like i said i am new to php and really need your help.
    Please add these to the above code or modify it accordingly.
    See more | Go to post

    Leave a comment:


  • tutu saint
    replied to Stock Quantity leven
    in PHP
    Johny, thanks for your respons to my post.
    I already have a table with product id and quantity sold and quantity in stock. I just need this script to check for the quantity and echo a message when the quantity is below 10.
    Please help me.
    See more | Go to post

    Leave a comment:


  • tutu saint
    started a topic Stock Quantity leven
    in PHP

    Stock Quantity leven

    I am new to php and is developing an inventory system for my father.

    i need the application to show a message when the reorder lever of an application is reached.
    I want it to display a message when the product quantity is less than or equals 10
    The below scripts does the transaction for me.
    Please help

    Code:
    <?php
    
    $con = mysql_connect("localhost","root","");
    ...
    See more | Go to post

  • tutu saint
    replied to Show Default Image if Profile Image is Null
    in PHP
    @John,

    I am new to Php and having difficulties in understanding you posting
    bellow is the Picture table structure


    `pictureId` int(11) NOT NULL auto_increment,
    `EmailAd` varchar(33) NOT NULL default '',
    `status` varchar(33) NOT NULL default '',
    `picture` mediumblob,
    PRIMARY KEY (`pictureId`)


    I have a default pics in the pix table with
    pictureid = 3
    ...
    See more | Go to post

    Leave a comment:


  • tutu saint
    replied to Show Default Image if Profile Image is Null
    in PHP
    Hello John,

    This is the working code for pulling profile pics.
    Code:
    <?php
    include "dbCon.php";
    
    
    $status = "Primary";
    $pictureId = $_GET['pictureId'];
    
    
    
    $sql = "SELECT * FROM pix WHERE pictureId = '".$pictureId."' and status = '".$status."'";
    
    
    
    $result = mysql_query($sql,$db) or exit("QUERY
    ...
    See more | Go to post

    Leave a comment:


  • tutu saint
    started a topic Show Default Image if Profile Image is Null
    in PHP

    Show Default Image if Profile Image is Null

    I have an alumni site for my school and I want the site to display a default image if the user has yet to upload a profile image.

    My script is working for the profile imageg but is not working if the user is yet to upload a profile image.

    I have a default pics in the pix table with
    pictureid = 3
    EmailAd = default@mysite. com
    status = primary


    I need to display this default pix if there is no...
    See more | Go to post
    Last edited by Frinavale; Aug 10 '11, 08:15 PM. Reason: Fixed grammar.
No activity results to display
Show More
Working...