I was wondering how can I validate a single checkbox using PHP and MySQL.
Here is the HTML.
<input type="checkbox" name="privacy_policy" id="privacy_policy" value="yes" />
I have a Perl script that calls aspnet_compiler.exe to compile a large ASP.NET website. The problem is that it takes very long to run. Is there any way to compile just a single .aspx file from the command line? (I think that would suit the needs of my script) It seems that all aspnet_compiler.exe can do is compile at a directory level.
I'm trying to query a database, and return a set of values. Part of the data i'm trying to return is an insurance premium breakdown.
Is it possible to run a query, that selects multiple fields, then adds then and returns them as a single value?
I've seen SUM() but the examples i've seen show it as adding up the results of an entire field - where as i need it to add specific fields for each row returned.
Any help is much appreciated.
I intend to have multiple Rails apps each for site.com, api.site.com, admin.site.com. All apps will access the same tables from one single MySQL database. Apps and database runs in the same server.
Is there any settings in Rails, ActiveRecord or MySQL that I need to be concerned about for above access scenerio? Thanks
Running: Rails 2.3.5, MySQL 5.0, Nginx, Passenger, RubyEE
Hi all,
I want to know how to work on a single data grid which has tab controls in it.Tabs will be selected depending on the dropdown which is in the header.
Thanks,
Brenda
I am running multiple applications with a single Codeigniter system/ folder using the recommended way on the Codeigniter wiki. Each application runs fine and I can link between apps using absolute URLs.
Is there some way I can use or extend the URL helper class (functions like anchor(), redirect()... etc.) to generate links to controllers across applications. I would like to avoid absolute URLs
Thanks!
In each table have many number of rows with amount. Like this i have different numbers of amount in each table. Each tables field name is different. How can i get the total of all values in the four tables in a single query? Any way is there?
HI ,
i am having a table like
in many pages .. All these pages are rendered in a single page . when i apply the javascript to delete that using on load with the below
var tbl = document.getElementById('toc');
if(tbl) tbl.parentNode.removeChild(tbl);
Only one table is deleted and not the others
i am trying to delete the tables in all the rendering pages using javascript.how to do this??
Field = "columnName"
value = '2,4'
query = ""&Field&" in("&value&")"
here the query will be : columnName in('2,4')
but i want it to be : columnName in(2,4)
how to remove the single quotes
Please help ASAP
When a GSM modem is receiving voice(i.e., multiple wave files continuously) in the voice path, how will the modem able to identify the completion of a single wave file? Is there any software that could perform this?
I have a subversion repository, where each branch is a separate project. I would like to change this architecture, and to gradually move to mercurial. How can I convert a single branch of a subversion repo into an hg repository.
hg version : 1.01
say you have 3 models : user, hair_color, and eye_color
user hasOne hair_color
user also hasOne eye_color
however
var $hasOne = 'hair_color';
var $hasOne = 'eye_color';
obviously wont work. So how do you implement many hasOne relationships in a single model?
I assume the answer is in the cookbook, Im going over that area now, I suspect it has something to do with passing an array to $hasOne, but no example of doing this.
I'm wanting to use http_build_query to change an array to html tag properties. Problem is, it's changing my single-quoted values into %27. So if I have
http_build_query( array("type"=>"'hidden'", ... ), '', ' ' );
I get
<input type=%27hidden%27 ...>
How can I get around this?
Hi I am trying to merge one single revision using CL in SVN using this command:
svn merge -r 5454 URL
but I am getting the following error
svn: Second revision required
My revision is not the latest revision but buried about 90 revisions from the latest update. Any thoughts on what I am doing wrong?
I cannot run/debug only a single unit test using Ctrl + R, T after installing Resharper 5 (used to be able to do that before). It now runs all of my unit tests. Any idea what is going on?
This sounds kinda dumb, but I have a sharded DB that I no longer think I need to run on 2 machines, and would like to run on one single machine instead.
Any ideas on how that can potentially be done? There are lots of resources on how i can achieve the converse, but very little on how this can be done
please any 1 can solve it...
how can i select single file page model or code behind page model......please...solve.../ ow can programmer select each according to condition with visual studio 2008 (3.5))
I have noticed that alot of sites now, have all of their images in single files are then use background-position to offset the rectangle which is shown on the screen.
Is this for performance reasons? If so why?
I've developed a website in php codeigniter with the idea of using single physical instance of the code.
Here the logic i wanted to be is on login page user will chose the companyid which will be internally to the database name.
I want to know how to update the active_group variable according to the company id chosen by the user at the time of login.
Is there any way to do so.
Many tutorials on socket communication I see seem to use 1 thread per socket. But on a server used for online gaming, you might have 10k concurrent users - 10k threads isn't probably a wonderful idea.
I came across a tool (SmartFox) which claims to use a single thread for monitoring all socket connections, potentially thousands of them. This app happens to be in Java, but I figure C++ or C# could do the same... how would you achieve this?
What is the best way to have every request be sent to a single ViewResolver - specifically in this case a JsonView?
Was thinking this:
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.json.MappingJacksonJsonView" />
<property name="prefix" value="*" />
</bean>
but, is there something better/easier?
How to manage more than one printer from single C# windows application? Requirement is there should be only one print button and it will give print command to printer as per configuration in application.
Is it possible on an IIS to redirect all files with the file extension .asp to one single file (i.e. switch.php, switch.cfm) and how?
Thx in advance for the upcoming solutions :)
EDIT:
version of IIS is "IIS 6.0"
I'm using wordpress, and I want to add the adsense javascript tags where the Read More tag goes in a blogpost. It's stored as <!--more--> in the database, but when you use the_content() this is automatically changed before I have the chance to use a str_replace() function.
I'm looking to place an adsense tag for each post in the single.php page where the teaser ends. Has anyone been able to do this?