parameters

php sqlsrv_query stored procedure with naming parameters

回眸只為那壹抹淺笑 提交于 2019-12-10 23:56:41
问题 Im using php 5.4 with sqlsrv extension and I'm trying to call this sample stored procedure (NorthWind database): create PROCEDURE [dbo].[GetCategories] @CategoryID int = null AS SELECT * from dbo.Categories where CategoryID= IsNull(@CategoryID,CategoryID) And I'm using this sqlsrv_query syntax: $sql = "{ call dbo.GetCategories (?)}"; $catID=2; $params = array($catID); $stmt = sqlsrv_query( $conn, $sql,$params); I want to specify parameter name and value in $params, just like this: $sql = "dbo

PHP Soap Server : can't access to soap request parameters in my called class

不想你离开。 提交于 2019-12-10 23:49:46
问题 I can't access to parameters (thought everything seems to be fine, no error returned) : <?php // Class that is called by soap server handle function class MyClass { // function that correspond to operation name in wsdl file public function MdBSpieGetInformationPasseport($myParam) { // This code is well executed // But how can i read here IDENTIFIANT parameter ? // It seems there's nothing in $myParam // I know i can read $HTTP_RAW_POST_DATA here // but it should have been parsed automatically

ActionScript and SQLite parameters on Select using Like

此生再无相见时 提交于 2019-12-10 23:47:33
问题 I tried looking on google but without luck... I have a SELECT SQLStatement and I want to use the LIKE operator but the parameters won't work and the query give me an error public function getUsersList(username:String):SQLStatement { selectRecord= new SQLStatement(); selectRecord.sqlConnection = connection; selectRecord.text = "SELECT id_user, username,password,profile,leg_cliente " + "FROM userlist " + "WHERE username like '%:username%'"; selectRecord.parameters[":username"] = username;

How to pass parameters to JasperReport with java to use later in SQL query

…衆ロ難τιáo~ 提交于 2019-12-10 23:46:54
问题 I already have 6 Jasper Report templates created, with all of the static text fields to be filled out using a SQL query. The SQL query uses 2 parameters that I am passing in: FirstName and LastName . I am also passing in 2 other parameters that will just get added to Report. This is the code i have so far to pass the HashMap with the parameters to the Report. But I am lost as there isnt really any good documentation or examples that I can find. package print; import net.sf.jasperreports

How to make a linkbutton onclick with parameters

六眼飞鱼酱① 提交于 2019-12-10 23:29:10
问题 HTML : <asp:LinkButton ID="lnk_productImage" runat="server" Text="select" OnClick="viewProductImage('<%#DataBinder.Eval(Container.DataItem,"Id") %>')" > </asp:LinkButton> CodeBehind: protected void viewProductImage(object sender, EventArgs e, int id) { //Load Product Image } 回答1: I see you're using a repeater, so you probably could use this code: In your repeater template: <asp:Repeater ID="_postsRepeater" runat="server" OnItemCommand="_postsRepeater_ItemCommand"> <ItemTemplate><asp

Type Parameter Constraints - no generics (or nearest offer!)

折月煮酒 提交于 2019-12-10 23:11:50
问题 I am thinking what I want to do is impossible but thought I would ask anyway. I am thinking of implementing some kind of custom conversion between different metric measurements - such as converting inches to metres and other units. I am thinking base class called Unit as follows. NOTE: I have not put in any fields to hold the number of units eg 2 metres, 5 inches and so on: public abstract class Unit { protected string _name; public Unit(string name) { _name = name; } } Then subclasses of

ada split() method

孤街浪徒 提交于 2019-12-10 22:22:43
问题 I am trying to write an Ada equivalent to the split() method in Java or C++. I am to intake a string and an integer and output two seperate string values. For example: split of "hello" and 2 would return: "The first part is he and the second part is llo" The code I have is as follows: -- split.adb splits an input string about a specified position. -- -- Input: Astring, a string, -- Pos, an integer. -- Precondition: pos is in Astring'Range. -- Output: The substrings Astring(Astring'First..Pos)

Get-AdComputer -filter parameter not accepting Get-Date output

走远了吗. 提交于 2019-12-10 22:17:43
问题 I've stumbled across an odd error in a PowerShell script that returns for me the computers in Active Directory in a specific OU (and sub OU's) that are enabled and logged on to within a certain date. The following snippet does work: $date = (get-date).AddDays(-100) Get-ADComputer -Filter {(enabled -eq "true") -and (lastLogonTimestamp -gt $date)} -Properties lastLogonTimestamp -SearchBase "CN=Computers,DC=some,DC=domain,DC=com" ... however I initially attempted to do this is one line: Get

Passing parameters from WPF application to another WPF application?

纵饮孤独 提交于 2019-12-10 22:02:47
问题 I have two applications developed in WPF(c#) which are independent on each other. Suppose Project A and B. they are developed separately. i have connected those projects with the Button in project A, on click of that button i am starting project B with Process.start(); now i need to pass String (login) parameter to the another application (B) so user dont need to login again. I have already seen the Command line argument passing but i dont want to use them. also Application.Current.Properties

Passing 3D array as parameter to a function in C

人走茶凉 提交于 2019-12-10 21:53:37
问题 Im trying to write a function that sums the elements of a 3d array, however it keeps saying there is a problem with the lines where I pass the 3d array as a parameter. My code is as follows: #include <stdio.h> int sum3darray(a[][][], size); main() { int check[3][3][3]={ 0 }; int size=3; printf("The sum is %d\n",sum3darray(check,size)); } int sum3darray(a[][][],size) { int i,j,k,sum=0; for(i=0;i<size;i++) { for(j=0;j<size;j++) { for(k=0;k<size;k++) { printf("i=%d, j=%d,k=%d, checkijk=%d ",i,j