User Profile

Collapse

Profile Sidebar

Collapse
rahia307
rahia307
Last Activity: Dec 6 '08, 08:18 AM
Joined: Jun 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rahia307
    replied to problem in shopping cart.
    in PHP
    problem in session based shopping cart

    [QUOTE=rahia307; 3436578]i developed session based shopping cart. using this code.

    Code:
    	$_SESSION['cart'][]= array( 'prd_name' => $prd_name, 'unit_price' => $unit_price,
    	'qty' => $qty, 'id_prd' => $id_prd);
    and i use this code to display values placed in session.

    Code:
    foreach($_SESSION['cart'] as $key=>$value){
    echo $value['prd_name'];
    ...
    See more | Go to post

    Leave a comment:


  • rahia307
    started a topic problem in shopping cart.
    in PHP

    problem in shopping cart.

    i developed session based shopping cart. using this code.

    Code:
    	$_SESSION['cart'][]= array( 'prd_name' => $prd_name, 'unit_price' => $unit_price,
    	'qty' => $qty, 'id_prd' => $id_prd);
    and i use this code to display values placed in session.

    Code:
    foreach($_SESSION['cart'] as $key=>$value){
    echo $value['prd_name'];
    echo $value['qty']; 
    }
    Now my question is that. How can...
    See more | Go to post
    Last edited by Atli; Nov 26 '08, 07:21 AM. Reason: Removed excessive use of bold and underlined text.

  • rahia307
    started a topic problem in shopping cart.
    in PHP

    problem in shopping cart.

    i developed session based shopping cart. using this code.

    Code:
    	$_SESSION['cart'][]= array( 'prd_name' => $prd_name, 'unit_price' => $unit_price,
    	'qty' => $qty, 'id_prd' => $id_prd);
    and i use this code to display values placed in session.

    Code:
    foreach($_SESSION['cart'] as $key=>$value){
    echo $value['prd_name'];
    echo $value['qty'];
    }
    Now my question is that. How can...
    See more | Go to post
    Last edited by Markus; Nov 25 '08, 02:48 PM. Reason: added code tags

  • rahia307
    started a topic how to encryption and decryption variable in php
    in PHP

    how to encryption and decryption variable in php

    hi

    i wan to encrypt variable and again decrypt. how can i do this if any body have idea about it please help me.
    See more | Go to post

  • rahia307
    started a topic what is framework and how to work with php
    in PHP

    what is framework and how to work with php

    hi
    Everyone please tell me what is the framework and how to work with php. i an newly use php.
    See more | Go to post
    Last edited by ronverdonk; May 27 '08, 03:37 PM. Reason: bold text removed

  • rahia307
    started a topic How to generate email every month at 25
    in PHP

    How to generate email every month at 25

    hi
    i want to create email function every month at 25 date. how can i create it.
    if any one have any idea about it help me.
    See more | Go to post

  • rahia307
    started a topic How to attach doc file with email
    in PHP

    How to attach doc file with email

    Hi

    I am using email function in php, and I want to attach a doc file with email. How can I attach doc file with email. If any one have idea about it please help me.

    Thanks
    See more | Go to post

  • rahia307
    started a topic May i use Rand Function without query
    in PHP

    May i use Rand Function without query

    Hi

    i have question to all. may i use rand function in php without query, and how can i use rand function for display data.

    if and one have any idea about it help me.
    See more | Go to post

  • rahia307
    started a topic Upload Image Probelm
    in PHP

    Upload Image Probelm

    Hi
    I am using this code for upload image.

    <table>
    <form action="process.php method="POST" enctype="multip art/form-data">
    <tr>
    <td align="right">I mage1 :</td>
    <td><input type="file" name="photo1" class="box"> </td>
    </tr>
    <tr>
    <td colspan="2"...
    See more | Go to post

  • rahia307
    replied to Problem in Upload image
    in PHP
    hi

    i use this query for insert photo in database
    $sql = "INSERT INTO tbl_photo (photo) VALUES ('$photo')";


    probelm is that what when the form is submited without a file attached the epoch still gets inserted into the DB.

    help me for this probelm....
    See more | Go to post

    Leave a comment:


  • rahia307
    started a topic Problem in Upload image
    in PHP

    Problem in Upload image

    hi

    i want to upload image with epoch date Concatenate. image is load successfully. but when i does not want to image upload then epoch date is store in database

    i use this code

    if (isset($_FILES['photo1']['name'])) {
    $mode = '0777';
    $photo1 = $epoch.$_FILES['photo1']['name'];
    $image1 = $uploadDir.$pho to1;
    move_uploaded_f ile($_FILES['photo1']['tmp_name'],$image1);
    ...
    See more | Go to post

  • rahia307
    started a topic how to send html email using php
    in PHP

    how to send html email using php

    hi everybody
    i want to send html email using php. please help me if any body have idea about it.
    See more | Go to post

  • rahia307
    started a topic Problem in Insert Query
    in PHP

    Problem in Insert Query

    hi
    i have problem in insert query and i cannot understand this probelm. please help me. code is following below.

    $qery = "INSERT INTO tablename(name, email)
    VALUES('$name', '$email')";
    $result_qery = mysql_query($qe ry);
    See more | Go to post

  • rahia307
    replied to url of pop up
    in PHP
    try this
    [code=php]
    <?php
    $_SERVER['FULL_URL']= "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
    if($_SERVER['QUERY_STRING'])
    {
    $_SERVER['FULL_URL'].='?'.$_SERVER['QUERY_STRING'];
    }
    ?>[/code]
    See more | Go to post
    Last edited by pbmods; Jan 8 '08, 10:56 PM. Reason: Added CODE tags.

    Leave a comment:


  • rahia307
    replied to how to connect php and mysql
    in PHP
    hi

    there is some simple code to connect mysql and php



    $dbhost = "localhost" ;
    $dbuser = "root";
    $dbpass = "";
    $dbname = "databasena me";

    mysql_connect($ dbhost, $dbuser, $dbpass);
    mysql_select_db ($dbname) or die(mysql_error ());
    See more | Go to post

    Leave a comment:


  • rahia307
    started a topic How to Convert URL in difference format
    in PHP

    How to Convert URL in difference format

    HI


    i have this url http://www.domain.com/index.php&TID=1 .
    now i want to convert it into this format

    http://www.domain.com/index.php/TID/1

    if any one have idea about it help me
    See more | Go to post

  • rahia307
    started a topic how to get url
    in PHP

    how to get url

    hi
    i use $REQUEST_URI function to get url currently use in web browse. i have
    Code:
    http://localhost//index.php?CatID=8&PerID=63
    url. when i use $REQUEST_URI function i can get only
    Code:
    http://localhost//index.php?CatID=8.
    but i want to get full url like this
    Code:
    http://localhost//index.php?CatID=8&PerID=63.
    if any body have idea about it please help me
    See more | Go to post

  • how to insert data into database by using Php and Ajax

    hi to all

    i want to use Aajx in php and want to insert data into database. but i have no idea about it. if any one have idea for it please help me
    See more | Go to post

  • rahia307
    replied to smarty and php
    in PHP
    thanks for reply.
    but i want to create login system in php and smarty how i can create it.
    See more | Go to post

    Leave a comment:


  • rahia307
    started a topic smarty and php
    in PHP

    smarty and php

    hi to all
    i am newly use smarty in php. i want to create login and login out system using session in smarty and php5. if any one have idea about it please help me
    Advance thanks for all
    See more | Go to post
No activity results to display
Show More
Working...