75 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for diafol

Hi all. Been fiddling with an idea about combining setters and getters in PHP. I really don't like magic methods (`__get` and `__set`) as they're not very flexible (IMO), but equally bore myself to distraction with set/get methods. Anyhow, having used jQuery for some time, I really liked the non-verbose …

Member Avatar for diafol
1
401
Member Avatar for Stefce

I have two questions does its possible to encrypt get parameter same like the passwords are? If NO whats the best method to do it i have simple parameter `articleID=1`, i want to encrypt the number which user is not able to see it or hack it so should look …

Member Avatar for Stefce
-1
2K
Member Avatar for Mushfik

How can I add parameter to this <a href="javascript:;" Or is there any way to post data on the same page on that link above Thanks

Member Avatar for Taywin
0
229
Member Avatar for spowel4

I have this query as part of a stored procedure, and this query as it is listed here works: INSERT INTO OPENROWSET('Microsoft.ACE.OLEDB.12.0', 'Excel 8.0;Database=G:\KF\GBSData.xls;', 'SELECT * FROM [Sheet1$]') SELECT * FROM [KWF_GBSData].[dbo].[tblKWF_WorkTable2] WHERE invoiceNumber IN ( SELECT invoiceNumber FROM [KWF_GBSData].[dbo].[tblKWF_WorkTable2] WHERE stockNumberShipped LIKE 'CCCOMBO%' ) I would like to change …

Member Avatar for askme_1
0
555
Member Avatar for IconKana

Hello fellow earthlings. Using VB6, I want to write a MENU program that executes exe files, or executes dll files. The MENU file should have a function that sends a parameter to A.exe, or B.dll as an example. If A.exe or B.dll received the parameter from the MENU, then they …

0
153
Member Avatar for kipslem

Hello, My sincere apology, I have been posting almost 4 questions now where I have received 2 answers being solved. These are simple questions which any one familar with VB.Net can solve easily. Please understand, I'm a newbie to VB.Net. Now my next issue is; I have a a form …

Member Avatar for Reverend Jim
0
3K
Member Avatar for borgasia

Can't get this work properly: FormatRange(ref ws.Range[curRange.Offset[1, 0] , gives A property or indexer may not be passed as an out or ref parameter Any help would be thankfull public static void WriteDetailData(ref Worksheet ws, string type, ref int row, int col, Hashtable parts, Hashtable refList) { Range curRange = …

Member Avatar for borgasia
0
4K
Member Avatar for ZER09

I tried to create a context menu for a griedview and when i test it it works greacefully private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) { ContextMenu c = new ContextMenu(); DevExpress.XtraGrid.Views.Grid.GridView view = (DevExpress.XtraGrid.Views.Grid.GridView)sender; DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo HitInfo = view.CalcHitInfo(e.Point); if (HitInfo.InRow) { view.FocusedRowHandle = HitInfo.RowHandle; c.MenuItems.Clear(); c.MenuItems.Add("sample", sampsss); c.MenuItems.Add("sample", sampsss2); c.Show(view.GridControl, …

Member Avatar for Merletyco
0
384
Member Avatar for shrikanthnk

Hi below code prints tempnum correctly but not tempname. Kinly look into this. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".mylinktempnum").click(function(){ alert($(this).attr('href').match(/tempnum=([0-9]+)/)[1]); *alert($(this).attr('href').match(/tempname=([a-z]+)/)[1]);* }); }); </script > </head> <body> </body> </html> <?php <a class=\"mylinktempnum\" href=\"home.php?tempnum=$num&tempname=$name\"></a> ?>

Member Avatar for diafol
0
198
Member Avatar for gbhs

Hi to all I want use one reportviewer for several reports each with a parameter. This person has done it here http://www.sourcecodester.com/visual-basic-net/load-rdlc-report-using-report-viewer-programmatically.html without parameters. How can it be used with parameter for each report. when I change line 15 to da.Fill(ds.Employees,txtEmployeeID.text) (where txtEmployeeID holds employee ID as a SQL parameter), …

0
153
Member Avatar for webmoster

Help me! I have a domain, I would like to handle subdumain with .htaccess file. for example: http://usa.hotbizzle.com or http://india.hotbizzle.com should not redirect to sub folder. URL should not change in the browser but it has to call a file php file and give result. Is there any possibilities in …

Member Avatar for webmoster
0
296
Member Avatar for SirMahlon

<html> <body> <?php $username = 'root'; $password = ''; $hostname = 'localhost'; //connection to the database $con = mysql_connect($hostname, $username, $password,'contactmanager') or die('Unable to connect to MySQL'); echo 'Connected to MySQL<br>'.'<p>'; mysql_query($con,'INSERT INTO Personalinformation(Name, YearOfBirth, Email,Location,PhoneNumber) VALUES(Peter,2008-03-05,peter@hotmail.com,kasland,0269015748)'); mysql_close($con); ?> </body> </html>

Member Avatar for SirMahlon
0
5K
Member Avatar for while(!success)

Hey guys, I am trying to dynamically parametize my url, but it gets lost and I have no idea why. Perhaps some insight from you guys will help. Here's the code: while($row = mysql_fetch_assoc($getID)) { echo "<tr>"; echo "<td><a href='View.php?id='" . $row['ID'] . "'>" . $row['ID'] . "</a>" . "<br …

Member Avatar for while(!success)
0
402
Member Avatar for ryan311

I always getting this error in my dropdownlistfor: Value cannot be null. Parameter name: items View code: @Html.DropDownListFor(model => model.SiteId, new SelectList(ViewBag.ListSiteClass, "SiteId", "SiteName"), "", new { @onchange = "GetSiteid(this.value);" }) Controller Code: [HttpPost] public ActionResult Create(ServiceDTO ms, FormCollection form) { if (ModelState.IsValid) { int sid = ms.SiteId; ServiceDAO.Insert(sid); } …

Member Avatar for ryan311
0
12K
Member Avatar for diafol

Just asking about the relevancy/meaning of 'page' in requests based on 'members'. e.g. http://www.daniweb.com/api/members?page= http://www.daniweb.com/api/members/{:IDS}?page= When used in this manner, I seem to get a random bunch of members (when not set to 1), regardless of IDS. How many members/page ?

Member Avatar for diafol
1
480
Member Avatar for DaveyMoyes

Hi everyone, I am working on a wee small project using cURL. From the documentation, it states "The Server will HTTP POST a string in a parameter called (INCOMING)" to the given callback URL. I know the list of parameters in the string as this is given in the documentation, …

Member Avatar for lindam88
0
278
Member Avatar for hatebin

Hello ! I'm developing a WebApp using [this example](http://www.primefaces.org/showcase/ui/datatableRowSelectionByColumn.jsf) where I: 1. Connect to MySQL and download data. 2. Populate dataTable with downloaded data using. 3. Fetch(view button) the record and display its details in a dialog. Problem begins when I download the records and click on the viewButton(no matter …

Member Avatar for LastMitch
0
213
Member Avatar for it@61@sec

I have a bash script (test.sh) which reads parameters from the command line. The parameters could look like this: param1 param2 param3&ext param4 param5 The problem is that when the script reads the parameters and then echo them I get the following: param1 param2 param3 No command 'ext' found did …

Member Avatar for it@61@sec
0
967
Member Avatar for serita.v.campbell

ok i dont quite know why i keep getting these error in my program.. here is the program: #include<stdlib.h> #include<stdio.h> #include<math.h> Void open(void); int read(float*); float average(float*); void write(float*,float); void close(void); FILE *fptrin,*fptrout; main() { float number[10],non,ave; open(); read(number); non=read(number); ave=average(number,non); write(number,ave,non); close(); return(0); } void open(void) { fptrin=fopen("avg.dat""r"); if(fptrin==0) …

Member Avatar for Gonbe
0
203
Member Avatar for James19142

in this program i'm writing the functions that have qt classes as parameters Qlabel, QSpinbox, etc. are causing compile errors, my other functions work fine i get the same 2 errors for each QT object i use as an argument this is the function definition that uses QT classes as …

Member Avatar for James19142
0
362
Member Avatar for joeyliew7

i have this problem for checking for duplicate username in database. this error appear whether the username is duplicate and does not duplicate. Please help. Warning: mysql_num_rows() expects parameter 1 to be resource, boolean in <?php include_once 'db/db.php'; include_once 'admin-class.php'; $admin = new itg_admin(); if(isset($_POST['Submit'])) { $con = mysql_connect("localhost","username","password","tablename"); if …

Member Avatar for dancks
0
223
Member Avatar for Twilitbeing

(I'm a Computer Science 101 student writing programs in C on a virtual Linux machine.) Suppose I wanted to apply a single (arbitrary) function to every element of an array, one at a time. Doing this once is easy enough, but I'd like to find a method that could accomplish …

Member Avatar for dmanw100
0
266
Member Avatar for rizwan.ali.1656

HI I would like to modify the following function so that it could take any of the operators such as +,-,* or /. I want to know if its possible to do this without having to write bunch of ifs and else to define each of the operators separatly like …

Member Avatar for ravenous
0
350
Member Avatar for efth

Let's say I have a method called 'test' which should return the arraylist called 'theList' containing X number of Integers. How would I do that? public static void test(){ SOME CODE ... return theList } What should 'void' and 'theList' be replaced with in that code to make it work?

Member Avatar for efth
0
307
Member Avatar for rahul.ch

import java.util.*; public class GenericDemo4 { public static void main(String r[]) { Set s1 = new HashSet(); s1.add(0); s1.add("1"); dostuff(s1); } static void dostuff(Set<Number> s) { do2(s); Iterator i = s.iterator(); while(i.hasNext()) System.out.println(i.next() + " "); Object [] oa = s.toArray(); for(int x = 0; x<oa.length; x++) System.out.println(oa[x] + " …

Member Avatar for rahul.ch
0
299
Member Avatar for Dendei

Hello, i am programming an API so far i've coded so i can create new customers but my taughts here is that i have a function (i think that is the right word for it) public void writeCustomer (string CustomerNumber, string CustomerOrgNumber, string CustomerName, string PostAdr, string PostAdr2, string GLN, …

Member Avatar for Dendei
0
246
Member Avatar for angel06

Hello everybody! I'm currently creating my first employee monitoring system here in Visual Basic 6. I have a problem with regards to my program, it has an error of no value given for one or more parameters. The code that I will show here is just a part of my …

Member Avatar for AndreRet
0
322
Member Avatar for brajesh79

Hi I am trying to automate svn checkouts using python script. this below command works from windows command prompt. I tried to use subprocess.call and subprocess.Popen , C:/Program Files/TortoiseSVN/bin/TortoiseProc.exe /command:checkout /url: http://xxx-svn/svn/branches/Common/module/Common_Jars_v1_1/lib /path:D:/svn-test1 /closeonend:2 it is not able to recognise the parameter > C:\Users\rajesh\Desktop>python svn-test.py > Traceback (most recent call …

Member Avatar for Lardmeister
0
15K
Member Avatar for andyy121

i have added the $random in line 53 and '$random' ,'0' in 57 line inside the (),in the database i have added random and activated with boolean value which is 0 or 1,and when i click the previu/debug in browser button it show me this: Warning: mysql_num_rows() expects parameter 1 …

Member Avatar for Atli
0
432
Member Avatar for rpv_sen

Hi Friends **Example:** URL: http://localhost/sitename/page=name i want to print **name** in my page. like You Are Here: Home ยป **name** Please can any one help me.

Member Avatar for rotten69
0
240

The End.