<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss">
<channel>
<title>Popular Questions - Question and Answer for Programmer @ Omkarmin</title>
<link>http://www.omkarmin.com/rss/popular</link>
<description>Popular Questions</description>
<item>
  <title>php script code to validate form if room number is not available in database</title>
  <link>http://www.omkarmin.com/PHP/php-script-code-to-validate-form-if-room-number-is-not-available-in-database_1</link>
  <description>
    <![CDATA[below i have a php code where it will check to see if the room number entered in a textbox is in the database or not


 ?php   

room_there  true

    while( room_there ){
    roomresult  mysql_query( select room from room where room    (int) _postroomchosen)
    if( mysql_num_rows( roomresult )  0 ) room_there  false
}

    ? 

room          


now what i want to know is how do i create a vlaidation for this my validation works in javascript and if it is met then it should display a message such as room number is invalid else display  which is nothing how can i validate if room number not in database is met?

below is an example of my validation if the room number textbox is empty to show how i display my validation messages

function validation() {

           var isdatavalid  true

        var roomtexto  documentgetelementbyid(room) 

    this retrieves an element from the textbox where user enters in a room number

        var errroommsgo  documentgetelementbyid(roomalert)

      this is where the alert message appears for validation



   if (roomtextovalue  ){
          errroommsgoinnerhtml  please enter in a room number
          isdatavalid  false
        }else if (trimmedroomtextlength){
          errroommsgoinnerhtml  please enter in a room number 
          isdatavalid  false      
    }else{
                errroommsgoinnerhtml   
        }

        }
<br><br>Asked By: <a href="http://www.omkarmin.com/member/1/andra_yanie">andra_yanie</a><br />on 23-01-2012<br>Category: PHP<br>Views: 110 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>andra_yanie</author>
</item>
<item>
  <title>how to fix propel orm wrong table prefix with external schema</title>
  <link>http://www.omkarmin.com/PHP/how-to-fix-propel-orm-wrong-table-prefix-with-external-schema_2</link>
  <description>
    <![CDATA[i am using propel orm as database abstraction layer i want to define different schemaxml files for diffenrent modules eg userxmlschema for handling users and roles or appschemaxml for the application model

my problem is i want to reference to the user table of the userschemaxml i can handle this by the tag but i want to use another table prefix for the user schema tables running propel-gen creates two sql files (one for the userschema and one for the appschema) but the problem is that the user-schema tables are generated twice first with correct table prefix of the user schema file and the others with the prefix of the app schema file the foreign key also references to the wrong tables (that from the table with the prefix of the appschemaxml)

i do not know any way to prevent this behavior any hints?
<br><br>Asked By: <a href="http://www.omkarmin.com/member/1/andra_yanie">andra_yanie</a><br />on 23-01-2012<br>Category: PHP<br>Views: 90 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>andra_yanie</author>
</item>
<item>
  <title>help  databound listpicker blank entries</title>
  <link>http://www.omkarmin.com/Java/help--databound-listpicker-blank-entries_7</link>
  <description>
    <![CDATA[have just started trying to build my first wp7 app and am learning c and xaml from scratch ive made good progress but am having trouble with the silverlight toolkit listpicker

i databound a list picker using the following template

        
        
            
                
            
        

bound to this list concunitsource  new list()

            concunitsourceadd(new units() { molar  pm factor  -12})
            concunitsourceadd(new units() { molar  nm factor  -9 grams  ng})
            concunitsourceadd(new units() { molar  m factor  -6 grams  g litres  l })
            concunitsourceadd(new units() { molar  mm factor  -3 grams  mg litres  ml })
            concunitsourceadd(new units() { molar  m factor  0 grams  g litres  l })


the listpicker binds but i get two small blank but selectable entries at the top (presumably space for pico and nano litres) i left these out as they would not get used by the user is there anyway to prevent this and just show the 3 that i want?

many thanks for your time<br><br>Asked By: <a href="http://www.omkarmin.com/member/1/andra_yanie">andra_yanie</a><br />on 04-02-2012<br>Category: Java<br>Views: 88 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>andra_yanie</author>
</item>
<item>
  <title>how to  aspnet jquery ajax autocomplete data</title>
  <link>http://www.omkarmin.com/ASPNET/how-to--aspnet-jquery-ajax-autocomplete-data_4</link>
  <description>
    <![CDATA[hey is it possible to change the data source- the autocomplete from this jquery code

(textbox)autocomplete(
autocompletephp
{
    delay 10
    minchars 2
    matchsubset 1
    matchcontains 1
    cachelength 10
    onitemselect selectitem
    onfindvalue findvalue
    formatitem formatitem
    autofill true
}
)


to get data from web service?? 

url searchserviceasmxsearch
            data {text  requestterm  }
            datatype json
            type post
            contenttype applicationjson charsetutf-8


i dont know how to change that autocomplete to a webservice

thanks
<br><br>Asked By: <a href="http://www.omkarmin.com/member/2/randy">randy</a><br />on 23-01-2012<br>Category: ASP.NET<br>Views: 80 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>randy</author>
</item>
<item>
  <title>blu studio 53 manual reset phone?</title>
  <link>http://www.omkarmin.com/usermanualguide/blu-studio-53-manual-reset-phone?_10</link>
  <description>
    <![CDATA[hi i have a blu studio 53 my kids locked my phone and now i cant figure out how to reset my phone i only had my phone for about 2wks now and i been trying to figure this out for a week so i really need help please<br><br>Asked By: <a href="http://www.omkarmin.com/member/5/shiva">shiva</a><br />on 15-03-2012<br>Category: Manual Guide<br>Views: 70 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>shiva</author>
</item>
<item>
  <title>wordpress seo tricks?</title>
  <link>http://www.omkarmin.com/Wordpress/wordpress-seo-tricks?_8</link>
  <description>
    <![CDATA[can you tell me how to make a wordpress blog more seo in google? i have blog about gadget and home design

does any one want to answer my question?<br><br>Asked By: <a href="http://www.omkarmin.com/member/4/sandy">sandy</a><br />on 15-03-2012<br>Category: Wordpress<br>Views: 69 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>sandy</author>
</item>
<item>
  <title>how to scaling sql server on amazon web services ?</title>
  <link>http://www.omkarmin.com/API/how-to-scaling-sql-server-on-amazon-web-services-?_6</link>
  <description>
    <![CDATA[i currently have a web application that i would like to scale out using amazon web services

my web application specs

c aspnet sql server

i have a file storage for my users and have a sql server database for all my data i want to scale on amazon web services using s3 i am not sure how to scale with sql server on amazon web services? the amazon relational database service doesnt look like its for sql server would i just run it on a windows instance? how would i scale
<br><br>Asked By: <a href="http://www.omkarmin.com/member/2/randy">randy</a><br />on 04-02-2012<br>Category: API<br>Views: 68 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>randy</author>
</item>
<item>
  <title>what is best php code editor?</title>
  <link>http://www.omkarmin.com/Software/what-is-best-php-code-editor?_17</link>
  <description>
    <![CDATA[what do you use as your php code editor? i use macromedia mx 2010
so what d you use?<br><br>Asked By: <a href="http://www.omkarmin.com/member/4/sandy">sandy</a><br />on 16-03-2012<br>Category: Software<br>Views: 62 | Comments: 2<br/><br/><br /><hr>    ]]>
  </description>
  <author>sandy</author>
</item>
<item>
  <title>best place to learn about css3</title>
  <link>http://www.omkarmin.com/CSS/best-place-to-learn-about-css3_14</link>
  <description>
    <![CDATA[do you know what is best website to learn about css3 and html 5?<br><br>Asked By: <a href="http://www.omkarmin.com/member/5/shiva">shiva</a><br />on 16-03-2012<br>Category: CSS<br>Views: 45 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>shiva</author>
</item>
<item>
  <title>how to deactive my account in facebook?</title>
  <link>http://www.omkarmin.com/Facebook/how-to-deactive-my-account-in-facebook?_15</link>
  <description>
    <![CDATA[please somebody hack my account
and i cannot login again at my faebook
can any one suggest me how to deactive my facebook account using email?<br><br>Asked By: <a href="http://www.omkarmin.com/member/5/shiva">shiva</a><br />on 16-03-2012<br>Category: Facebook<br>Views: 43 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>shiva</author>
</item>
<item>
  <title>best image online editor</title>
  <link>http://www.omkarmin.com/Software/best-image-online-editor_13</link>
  <description>
    <![CDATA[can any one tell me best online image editor?
i want to edit my pictures<br><br>Asked By: <a href="http://www.omkarmin.com/member/6/cute">cute</a><br />on 16-03-2012<br>Category: Software<br>Views: 41 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>cute</author>
</item>
<item>
  <title>how to connect  jf3 freedom bluetooth ?</title>
  <link>http://www.omkarmin.com/usermanualguide/how-to-connect--jf3-freedom-bluetooth-?_11</link>
  <description>
    <![CDATA[my jf3 freedom bluetooth was connected to my samsung phone but now i cant get it to reconnect on the connect screen it is just saying not connected<br><br>Asked By: <a href="http://www.omkarmin.com/member/4/sandy">sandy</a><br />on 15-03-2012<br>Category: Manual Guide<br>Views: 40 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>sandy</author>
</item>
<item>
  <title>motoroal w755 manual ?</title>
  <link>http://www.omkarmin.com/usermanualguide/motoroal-w755-manual-?_9</link>
  <description>
    <![CDATA[yes could you please send me a owners manual to my motoroal w755 mine was lost in a fire 
thanks<br><br>Asked By: <a href="http://www.omkarmin.com/member/5/shiva">shiva</a><br />on 15-03-2012<br>Category: Manual Guide<br>Views: 40 | Comments: 0<br/><br/><br /><hr>    ]]>
  </description>
  <author>shiva</author>
</item>
<item>
  <title>how to update iphone 4 ios ?</title>
  <link>http://www.omkarmin.com/IPhone/how-to-update-iphone-4-ios-?_12</link>
  <description>
    <![CDATA[i have iphone 4 and using ios 501
i want to upgrade it into latest version of ios 51
can any one tell me how to do that??<br><br>Asked By: <a href="http://www.omkarmin.com/member/6/cute">cute</a><br />on 16-03-2012<br>Category: IPhone<br>Views: 39 | Comments: 1<br/><br/><br /><hr>    ]]>
  </description>
  <author>cute</author>
</item>
<item>
  <title>how to make effect on form using jquery?</title>
  <link>http://www.omkarmin.com/Jquery/how-to-make-effect-on-form-using-jquery?_16</link>
  <description>
    <![CDATA[how to make beautiful form pop up effect using jquery like facebookcom ?<br><br>Asked By: <a href="http://www.omkarmin.com/member/4/sandy">sandy</a><br />on 16-03-2012<br>Category: Jquery<br>Views: 35 | Comments: 2<br/><br/><br /><hr>    ]]>
  </description>
  <author>sandy</author>
</item>
</channel>
</rss> 
