User Profile

Collapse

Profile Sidebar

Collapse
impin
impin
Last Activity: Nov 26 '14, 02:59 PM
Joined: Jul 28 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • impin
    started a topic radio button validation in php?
    in PHP

    radio button validation in php?

    how to validate the radio buttons. at least one options is selected.

    code:
    Code:
    <?php
    
    $today=date("Y-m-d");
    mysql_query("SET CHARACTER SET utf8");
    echo "<form method='post' id='submit' action='checkresult.php' dir='rtl'>";
    $sql="SELECT * FROM cquestions where showdate='$today' limit 1";
    $result=mysql_query($sql);
    while ($row = mysql_fetch_array($result))
    ...
    See more | Go to post

  • that's works. great! thank you.
    See more | Go to post

    Leave a comment:


  • getting Warning: mysql_result() expects parameter 2 to be long, string?

    Retrieving a data from a table. the table has only one filed.
    table name: qupdate
    filed: last_update

    Code:
    $sql4="SELECT * FROM qupdate";
    $result4=mysql_query($sql4);
    $last_update=mysql_result($result4,"last_update");
    but I am getting Warning:mysql_r esult() expects parameter 2 to be long, string...
    on this line,
    Code:
    $last_update=mysql_result($result,"
    ...
    See more | Go to post

  • impin
    started a topic SSL error some websites not opening in chrome?

    SSL error some websites not opening in chrome?

    Some websites not opening in chrome..
    the sites with url https:// not opening in chrome browser.
    what is the problem? how to fix this???
    But opens in firefox.

    Twitter not opening. https://twitter.com/

    Cannot connect to the real twitter.com

    Something is currently interfering with your secure connection to twitter.com.

    Try to reload this page in a few minutes or after switching to...
    See more | Go to post

  • Animated Flying Twitter Bird Widget not working correctly on wordpress?

    Added animated twitter bird widget code on site.. the bird appears on the site.. but when the bird moves the animation seems out of sink, not smooth..
    Have a look at the site. you'll notice the problem when the bird moving...
    http://www.r7alh.com/


    Code:
    <!-- Twitter Bird Widget for Blogger by Way2blogging.org -->
    <script type="text/javascript" src="http://widgets.way2blogging.org/blogger-widgets/w2b-tripleflap.js">
    ...
    See more | Go to post

  • word press - how to load rtl.css files on Arabic language selection?

    I have installed word press English and a theme.. theme has style.css and some other css files..

    I have converted the style.css file to RTL (rtl.css) also make some changes to other css file (bootstrap.min. css) for RTL.

    Now when I load the website and choose language Arabic , the rtl.css is loading and changes are seen in the website. the problem is only the style.css changes only making effect. the other css file (bootstrap.min. css)...
    See more | Go to post

  • How do i change the default font of navigation menu? in wordpress?

    i am trying to change the default font of the site. i have edited the css file and the changed the font. everything works fine. except the nav menu font. its not changing. it is set to default ""Trebuchet MS", Arial, Helvetica, sans-serif" font.

    css code:
    Code:
    .sf-menu > li > a {
    font: bold 21px/66px "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #333333;
    }
    ...
    See more | Go to post

  • How to prevent a form submission without an attachment?

    need to validate before the form submit, whether the user selected the file for upload...

    without file attachment the form shouldn't be submitted. it will show a message to the user "please a select file to upload'...

    how to do it with javascript??

    its my form...

    Code:
    <form method="POST" name="email" action="sendmail.php" enctype="multipart/form-data"
    ...
    See more | Go to post

  • impin
    started a topic How to send a resume to mail in php as attachment?
    in PHP

    How to send a resume to mail in php as attachment?

    i need to send a resume as attachment to a particular mail id...

    its my form.
    Code:
    <form method="POST" name="email" action="sendmail.php" enctype="multipart/form-data" onsubmit="return validateForm()";>
    
        <table border=0 cellPadding=5 cellSpacing=10 width=100%>
       
            <tr>
                <td><label for='name'>Name:</label></td>
    ...
    See more | Go to post

  • impin
    started a topic uploading an audio(mp3) file in php?
    in PHP

    uploading an audio(mp3) file in php?

    i am uploading an audio file to a particular folder..

    its my form:

    Code:
    <form action="upload.php" method="post" enctype="multipart/form-data">
    <label for="file"><span>Filename:</span></label>
    <input type="file" name="file" id="file" /> 
    <br />
    <input type="submit" name="submit"
    ...
    See more | Go to post

  • impin
    started a topic php update statement ?
    in PHP

    php update statement ?

    want to update uae....
    whats wrong in this code...

    Table

    Code:
    table q1
    
    	q1	uae	tunisia	palestine	lebanon
    	1	1

    Code:
    $sql="SELECT * FROM q1";
    $result=mysql_query($sql);
    
    	$uae=$uae+1;
    
    $update="update q1 SET uae='$uae' where q1='1'";
    	$result1 = mysql_query($update);
    See more | Go to post

  • Do you have server ready to sync data into app ?

    we are going to develop a news app for android and ios.
    the developer asks
    Do you have server ready to sync data into app ?
    Do you have the backend server and APIs ready?

    what it means? i have no idea?! i couldn't understand. what he is exactly asking?

    we have a news website. we want to create a news mobile app for the website.
    See more | Go to post

  • how to validate radio button and drop down list using java script?

    Form:

    Code:
    <form name="newuserForm" action="register.php" method="post" onsubmit="return validateForm()";>
    
    <label style="font-size:18px">Gender<br />
    </label><label style="font-size:18px">Male </label><input id="male" type="radio" name="gender" class="box" style="border:solid
    ...
    See more | Go to post

  • impin
    started a topic how to display one question in each page in php?
    in PHP

    how to display one question in each page in php?

    i have a code that display 3 questions and multiple answers from database for user to select. after choosing the answers user will hit the submit button. its works fine.
    Code:
    <?php
    
    $today=date("Y-m-d");
    echo "<form method='post' id='submit' action='checkresult.php' dir='rtl'>";
    $sql="SELECT * FROM cquestions where showdate='$today' limit 3";
    $result=mysql_query($sql);
    ...
    See more | Go to post

  • impin
    started a topic how to automatically login after registration in php?
    in PHP

    how to automatically login after registration in php?

    how to automatically login after the user successfully completes registration.

    now, the user after registration, need to enter username and password again to login. i don't want to enter username and password, he automatically loggged in after registration.

    login.php

    Code:
    <?php
    include("config.php");
    session_start();
    
    if($_SERVER["REQUEST_METHOD"]
    ...
    See more | Go to post

  • Building an android news app, what are basic features it should have?

    i am new to android development. building an android news app. how to start? what are the things i have to do?
    See more | Go to post

  • i imported the google play services. but still i have that error.
    how to add that to the workspace?
    ...
    See more | Go to post

    Leave a comment:


  • I am using eclipse.
    i have installed Google Cloud Messaging for Android Library and Google Play services in SDK manager.


    "If you are using Eclipse, import the library project into your workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it."

    i don't get this. what i have to do?...
    See more | Go to post

    Leave a comment:


  • okay.
    i added
    Code:
    import com.google.android.gms.gcm.GoogleCloudMessaging;
    this. but i get error
    Error: The import com.google cannot be resolved.

    screenshot: ...
    See more | Go to post

    Leave a comment:


  • i have installed Google Cloud Messaging for Android Library and Google Play services. but still i'am getting that error.

    Code:
     public static final String EXTRA_MESSAGE = "message";
     public static final String PROPERTY_REG_ID = "registration_id";
     private static final String PROPERTY_APP_VERSION = "appVersion";
     private static final String PROPERTY_ON_SERVER_EXPIRATION_TIME =
             "onServerExpirationTimeMs";
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...