User Profile

Collapse

Profile Sidebar

Collapse
BenKen
BenKen
Last Activity: Feb 7 '10, 11:15 PM
Joined: Jun 12 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • BenKen
    started a topic Code Explanation
    in PHP

    Code Explanation

    Hi guys, please can someone please explain how this code works. The code is shown below . Thanks.

    Code:
    function copyImage($srcFile, $destFile, $w, $h, $quality = 75)
    {
        $tmpSrc     = pathinfo(strtolower($srcFile));
        $tmpDest    = pathinfo(strtolower($destFile));
        $size       = getimagesize($srcFile);
    
        if ($tmpDest['extension'] == "gif" || $tmpDest['extension'] == "jpg")
    ...
    See more | Go to post

  • BenKen
    started a topic Add to cart and shopping cart not working
    in PHP

    Add to cart and shopping cart not working

    Hi all pls I'm having great difficulty in making my shopping cart work. I am a newbie in php with little understanding of it. Add to cart button doesn't work and shopping cart in general doesn't. Pls help. Below is the code for both shopping cart, products and function.php

    shopping cart code:

    Code:
    <?
    	include("db.php");
    	include("functions.php");
    	
    	if($_REQUEST['command']=='delete'
    ...
    See more | Go to post
    Last edited by Atli; Jan 20 '10, 09:30 AM. Reason: Added [code] tags.

  • BenKen
    started a topic php not working
    in PHP

    php not working

    Please I'm trying to delete from the database and I get this error

    Warning: session_start() [function.sessio n-start]: Cannot send session cache limiter - headers already sent (output started at E:\webareas\whi le\shop\deleteb ag.php:1) in E:\webareas\whi le\shopping\del etebag.php on line 2

    Warning: Cannot modify header information - headers already sent by (output started at E:\webareas\whi le\shopping\del etebag.php:1) in...
    See more | Go to post
    Last edited by Dormilich; Jan 14 '10, 09:14 PM. Reason: Please use [code] tags when posting code

  • BenKen
    started a topic Sql query

    Sql query

    Please I am new to php/mysql. I want to create a simple shopping cart with mysql and php but finding it difficult to put together appropriate database queries. I have got six tables. Admin, books, buyers, order_content, order, and images. The tables are displayed below. Is it a normalized database?

    Table image
    imageid
    booksid
    name
    size
    content
    type


    Table order
    ...
    See more | Go to post

  • BenKen
    replied to My form doesn't move
    in PHP
    Pls what do you mean by line 9 affects 8?
    See more | Go to post

    Leave a comment:


  • BenKen
    started a topic My form doesn't move
    in PHP

    My form doesn't move

    Hello guys please when i click submit on my form,it doesnt move at all not even a failed message comes up,nothing happens.This is my code below please help.Cheers


    Code:
    <?php
       $to = $_POST['to'];
       $from = $_POST['from'];
       $bcc = $_POST['bcc'];
       $subject = $_POST['subject'];
       $message = $_POST['message'];
    
       $headers .= "To: $to \r\n";
       $headers = "From: $from\r\n";
    ...
    See more | Go to post
    Last edited by Markus; Sep 15 '09, 09:48 AM. Reason: Added [code] tags.

  • BenKen
    replied to Difficulty in adding BCC/CC headers in php
    in PHP
    Thanks Marcus but its somewhat different,this is my syntax and form below but instead of 'to' variable going to the email specified in the syntax,i want that input to come from the form including cc and bcc.i do not want anything to be entered through the syntax all should come through the form i.e form having additional fields(to,cc and bcc).cheers
    Code:
    <form name="contact" action="send.php" method="POST">
    ...
    See more | Go to post
    Last edited by Markus; Aug 29 '09, 08:32 PM. Reason: Added [code] tags...

    Leave a comment:


  • BenKen
    started a topic Difficulty in adding BCC/CC headers in php
    in PHP

    Difficulty in adding BCC/CC headers in php

    Hi all,
    Please i am having difficulty in adding BCC and CC headers to my email script.i want all inputs to be from the html form i.e the script calling what users enter from a form like this

    To:
    From:
    CC:
    BCC:
    Subject:
    Message:

    Thanks....
    See more | Go to post
No activity results to display
Show More
Working...