User Profile

Collapse

Profile Sidebar

Collapse
arvind vohra
arvind vohra
Last Activity: Oct 31 '13, 12:25 PM
Joined: Jan 17 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • arvind vohra
    started a topic Placeholder not working in ie

    Placeholder not working in ie

    <input type='text' name='org' placeholder='En ter Organization name' />


    this syntax not working in IE
    See more | Go to post

  • arvind vohra
    started a topic how can I find the system mac address?
    in PHP

    how can I find the system mac address?

    this code is not working online

    Code:
    ob_start(); // Turn on output buffering
    system('ipconfig /all');
    $mycom=ob_get_contents(); // Capture the output into a variable
    ob_clean(); // Clean (erase) the output buffer
    
    $findme = "Physical";
    $pmac = strpos($mycom, $findme); // Find the position of Physical text
    $mac=substr($mycom,($pmac+36),17); // Get Physical Address
    echo "<br>";
    ...
    See more | Go to post
    Last edited by acoder; Jan 12 '13, 03:30 PM. Reason: Please use [code] tags when posting code

  • Upload question answer word file DATA in mysql using php

    Code:
    <?php
    
    // Set Mysql Variables
    
    $db = mysql_connect("localhost","root",""); 
    mysql_select_db("testing",$db); 
    
    
    $file = "c:/wamp/www/jquery/testdb.csv";
    $fp = fopen($file, "r");
    $data = fread($fp, filesize($file));
    fclose($fp);
    
    $output = str_replace("\t|\t", "|", $data);
    
    $output
    ...
    See more | Go to post
    Last edited by Niheel; Jul 21 '12, 06:41 AM. Reason: can you click on edit and add more information about your question

  • arvind vohra
    started a topic Transfer the value
    in PHP

    Transfer the value

    How can i passed the value from view page to the controller page in the cakephp? please give me suggestion with the full code in both pages?
    See more | Go to post

  • arvind vohra
    replied to multiple checkbox
    in PHP
    1 <input type="checkbox" name="checkbox1 " value="1" />
    2 <input type="checkbox" name="checkbox" value="2" />
    See more | Go to post

    Leave a comment:


  • arvind vohra
    replied to php mail function
    in PHP
    $headers = "From: sender@yourdoma in.com rn";

    $sentmail=mail( $to,$subject,$m essage,$header) ;

    you r missing s

    $sentmail=mail( $to,$subject,$m essage,$headers );
    See more | Go to post

    Leave a comment:


  • How can write html tag and php variables in a single line

    please explain me how can i write html tag and use php variable in the same line for example:-


    $strState .= '<option value = "'.$record['state_id'].'" '.$strSelected. ' >'.$record['state_name'].'</option>';


    <option > is a html tag
    $record is a php variable

    please explain me how use '' and "" quotes here
    See more | Go to post

  • What is the use of question mark and colon (? and :) mean for in PHP?

    Please describe me what is the main use and difference between question mark and colon (? and :) in php ?

    Code:
    function get_all_state_details($state_id) 
     {
      $sql = "SELECT *  from  states  ";
      $rows = $this->db->query($sql);
      while ($record = $this->db->fetch_array($rows))
    	{
       $strSelected = $record['state_id'] == $state_id ? 'selected = "selected"' : '';
       $strState
    ...
    See more | Go to post
    Last edited by Dormilich; Feb 28 '12, 06:25 AM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • arvind vohra
    started a topic difference between " quotes and '' quotes
    in PHP

    difference between " quotes and '' quotes

    please define me what is the main difference between double quotes and single quotes ?

    Code:
    $ans=20;
    
    echo "$ans";
    output 20
    
    echo '$ans';
    output $ans;
    
    if we can type
    
    
    function update_query($filename,$data,$where)
    	{
    		$sql= "UPDATE ".$filename." SET ";		
    		foreach ($data as $key=>$value)
    		{
    			$sql.=$key."='$value'";
    ...
    See more | Go to post
    Last edited by Dormilich; Feb 9 '12, 06:41 AM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • arvind vohra
    started a topic value update by using class
    in PHP

    value update by using class

    Code:
    function changeusername($username)
    	{
    		$data['username']	=	$username;
    		$ans = $this->db->update_query("indiagren_admin",$data,"username!=' '");
    		echo "ANS".$ans;
    	}
    
    
    function update_query($filename,$data,$where)
    	{
    		$sql= "UPDATE ".$filename." SET ";		
    		foreach ($data as $key=>$value)
    		{
    			$sql.=$key."=.$value";
    ...
    See more | Go to post
    Last edited by Dormilich; Feb 9 '12, 06:40 AM. Reason: Please use [CODE] [/CODE] tags when posting code.

  • arvind vohra
    started a topic what is difference $a=10,$a='10' and $a="10"
    in PHP

    what is difference $a=10,$a='10' and $a="10"

    what is the main difference between in php
    $a=10;
    $a='10';
    $a="10";

    but all output is given 10 then what is the difference between these values?
    See more | Go to post

  • arvind vohra
    started a topic send values between functions
    in PHP

    send values between functions

    how can send the value from one function to another function in php
    See more | Go to post
No activity results to display
Show More
Working...