User Profile

Collapse

Profile Sidebar

Collapse
vinpkl
vinpkl
Last Activity: Sep 19 '16, 05:20 AM
Joined: Oct 26 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vinpkl
    started a topic how and where to insert image resize function
    in PHP

    how and where to insert image resize function

    hi
    i created a simple upload script which works fine and uploads image.

    i m not involving validation at present.
    Code:
    <?php
    if($_FILES['photo']['name'])
    {
        echo $file_name = $_FILES['photo']['name'];
        echo "<br>";
        echo $file_tmp =$_FILES['photo']['tmp_name'];
        
        move_uploaded_file($_FILES['photo']['tmp_name'], 'upload/'.$_FILES['photo']['name']);
    ...
    See more | Go to post

  • if same product in multiple rows and contain invoice number

    hi all

    i am filtering results of purchases made by customer.

    Code:
    $qry = "select * from mytable"
    $result = mysql_query($qry);
    while($row=mysql_fetch_array($result)
    {
    	echo $row['user_name'];
    	echo $row['product_name'];
    	echo $row['price'];
    	echo $row['quantity'];
    	echo $row['invoice_number'];
    	echo $row['status'];
    
    }
    ...
    See more | Go to post

  • Hi

    how to do it ??

    vineet
    See more | Go to post

    Leave a comment:


  • vinpkl
    started a topic How to detect if magnific popup already opened

    How to detect if magnific popup already opened

    Hi

    I want to detect if magnific popup is already opened or not.

    i could not find anything related in documentation

    http://dimsemenov.com/plugins/magnif...mentation.html

    thanks
    vineet...
    See more | Go to post

  • vinpkl
    started a topic generate random 64 bit client id integer
    in PHP

    generate random 64 bit client id integer

    Hi

    How can i create a random client id which is 64 bit integer as described on this below link

    https://developers.goog le.com/analytics/devguides/collection/protocol/v1/email#client-id-cid

    thanks

    Vineet
    See more | Go to post

  • Ajax result div display full self page in inner pages

    Hi

    I have a newsletter form in the footer of every page. I want to submit that form without refreshing the page. So i am posting it using ajax.

    I am using below code which works only on homepage till i dont visit the inner pages.

    Dont know why its showing strange behaviour on inside pages.

    Code:
    <script type="text/javascript">
        $(document).ready(function() {
    ...
    See more | Go to post

  • i alam

    i have only one table.

    vineet
    See more | Go to post

    Leave a comment:


  • vinpkl
    started a topic Display accessory which match with mobile model
    in PHP

    Display accessory which match with mobile model

    hi all

    i have "product table" in which i have 2 categories.

    1) Mobile Phone
    2) Mobile Phone Accessories which consists of many "Phone Covers"

    Some Phone covers are compatible with 8-10 mobiles.

    For Mobile phone category, the The "model" field contains single value like "E71" or "E72".

    But For Accessories category, The...
    See more | Go to post

  • thank CoryThompson

    that works perfect as needed.

    just a last question can i replace comma with numbers 1,2,3

    like

    1. first checkbox
    2. second checkbox

    vineet
    See more | Go to post

    Leave a comment:


  • vinpkl
    started a topic Add values of multiple selected checkboxes with comma
    in PHP

    Add values of multiple selected checkboxes with comma

    hi all

    i want to insert all selected checkboxes values with a comma separator in
    database in one single column.

    i m able to echo all the checkboxes selected through the below code

    Code:
    <input  type="checkbox" value="Battery"  name="checkbox[]" id="checkbox[]" />
    Code:
    for ($i=0; $i<count($_REQUEST['checkbox']);$i++) {
    echo
    ...
    See more | Go to post

  • vinpkl
    started a topic resize image

    resize image

    hi all

    my image is 1500px wide but i want to show it 100% acording to screen resolution.

    the image is getting fitted at 100% screen in all browsers except IE.

    IE stretches it to 1500px wide but other browsers dont stretch it.

    so how can IE also adjust it acording to screen resolution.

    vineet

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    ...
    See more | Go to post

  • vinpkl
    started a topic validate windows media player code

    validate windows media player code

    hi all

    i m trying to insert wma video in my page but it doesnt validates.

    can anybody provide me validate code for wma.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type"
    ...
    See more | Go to post

  • vinpkl
    replied to unicode characters
    in PHP
    unicode

    hi Dormilich

    You mean save the page as UTF

    vineet...
    See more | Go to post

    Leave a comment:


  • vinpkl
    started a topic unicode characters
    in PHP

    unicode characters

    hi all

    i m using file_get_conten ts

    Code:
    $data = file_get_contents('http://domain.com/page.html');
    so some text i m getting in unicode format


    Code:
    sams’s “whip lash” performances
    
    changes to
    
    sam’s “whip lash� performances
    whats the solution

    vineet
    See more | Go to post

  • vinpkl
    started a topic file get contents
    in PHP

    file get contents

    hi all

    Code:
    <?php
    $article = file_get_contents('http://www.domain.com/article_eng.html');
    $qry="insert into article_data (article) values('$aricle')";
    $result=mysql_query($qry);
    ?>
    with this function i can crawl my html page and fetch its content and add in database.

    but i would like to know that my html page has

    1) article title
    2) author name
    3)...
    See more | Go to post
    Last edited by Dormilich; Nov 18 '09, 01:42 PM. Reason: fixed [code] tags

  • div background

    hi drhowarddrfine

    thanks for the reply.

    overflow:auto worked great. its solved now.

    vineet
    See more | Go to post

    Leave a comment:


  • vinpkl
    started a topic black background missing in firefox 3 and opera

    black background missing in firefox 3 and opera

    hi all

    i have two column div structure in which i have applied black background colour to the main div which holds the two columns (left and right divs).

    In internet explorer 7 the structure shows black colour in right side fine but its missing in Firefox 3 and opera 9. why.

    please copy and paste the code in your editor and check. the html file is also attached.

    Code:
    <!DOCTYPE html
    ...
    See more | Go to post

  • vinpkl
    replied to php javascript alert redirect
    in PHP
    php javascript



    hi Dormilich

    i have heard that javascript works on client side and works faster than server side scripts.
    so if this is true then alert should popup first before the PHP Header redirect.

    Or the popup is not working because we are generating alert popup through PHP.

    vineet...
    See more | Go to post

    Leave a comment:


  • vinpkl
    replied to php javascript alert redirect
    in PHP
    php javascript

    hi unauthorised

    i have amended code acording to you and the PHP Header redirect is working fine with ob_start() but the alert is not working.

    Code:
    if(mail($to,$subject,$body,$headers))
    {
    echo "<script type='text/javascript'>";
    echo "alert('order email sent')";
    echo "</script>";
    header("Location:manage_orders.php?choice=PENDING");
    ...
    See more | Go to post

    Leave a comment:


  • vinpkl
    started a topic php javascript alert redirect
    in PHP

    php javascript alert redirect

    hi all

    i want to show an alert box and then redirect page to another location through php code but its not working as needed.
    As i cannot use PHP HEADER LOCATION because i m using echo before header. so i have to use javascript but through

    PHP.

    Code:
    if(mail($to,$subject,$body,$headers))
    {
    echo "<script language='javascript'>";
    echo "alert('order email
    ...
    See more | Go to post
    Last edited by vinpkl; Jul 8 '09, 02:49 PM. Reason: code
No activity results to display
Show More
Working...