355 Topics
|
|
Whats wrong with this query? For example $brand holds the value 'apple' Then I get the error 'unknown column 'apple' Can anyone see the problem? if(isset($_GET['brand']) ? $_GET['brand'] : 0){ $brand = (isset($_GET['brand']) ? $_GET['brand'] : 0); $sql = mysqli_query($link, "SELECT COUNT(id) FROM products WHERE brand = $brand AND status … |
|
Hi i have 2 tables customer (cabinet_num which is integer) and cabinet (cabinet_num Autoincrement and cabinet_title) in my java i can display cabinet title to let the user choose a cabinet..but i want to collect the cainet_number in my customer table customet.cabinet package cabinet; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; … |
|
-->>Hello,My problem is how will a trigger a php Function based up on Change event of a listbox value. My Page has the Field as those in the screenshot below the code: So when a driver is selected on the list all his/her details should be populated in the remaining … |
|
Hi all I have a simple login form with Username and password as fields when the user clicks the login I wish to check the xml whether the username and password is present in the xml. How do I do this, could someone please give me some ideas ? My … |
|
Hello I have an input: <Records> <Record> <Row A="UOBSGD2" B="50000"/> </Record> <Record> <Row A="UOBSGD1" B="75050"/> </Record> <Record> <Row A="DBSSGD2" B="55800"/> </Record> <Record> <Row A="DBSSGD1" B="14239"/> </Record> <Record> <Row A="OCBCSGD1" B="55510"/> </Record> <Record> <Row A="OCBCSGD2" B="31714"/> </Record> <Record> <Row A="UOBUSD1" B="36471.1"/> </Record> <Record> <Row A="UOBUSD2" B="41941.765"/> </Record> <Record> <Row A="UOBUSD3" B="48233.02975"/> … |
|
Hello, So I was testing my matrix class and the results look questionable and the inverted matrix isn't returning the vertex to it's original value (a seperate issue). Given a perspective projection at 45 degrees with a near of 1 and a far of 1000, the camera at the orgin … |
|
Hi, Could anyone please tell me how to apply conditions on columns whihc are not a part of 'group by' clause? For example, I wish to filter out those sections wherein the eldest member of a family is a male and has the value 'M' in its gender field.... select … |
|
I am attempting to add a Convert funtion to my XAML/C# application. However, the "value" object in the code below is presenting the data back as "2014-12-14", which is generating a runtime error, "Specified cast is not valid". Can anyone help me with the converstion string? I tried ParseExact, but … |
|
Hi all, I get 'Invalid string or buffer length' exception when trying to do this. String s=resultSet.GetString(1) Exception: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid string or buffer length at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6956) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7113) at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3906) at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5697) at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:353) at sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnection.java:1503) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:381) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174) at java.sql.DriverManager.getConnection(DriverManager.java:579) at java.sql.DriverManager.getConnection(DriverManager.java:243) at Controll.Test.sselect(Test.java:72) at … |
|
how to retrieve particular node.. i.e., if b node had value like <b id="1"> means it will return b's child nodes.. output must be: <c>text</c> <c>stuff</c> Here is my code: <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <b id="1"> <c>code</c> </b> <d> <c>item</c> </d> </a> XML; $xml = … |
|
I have error with this line while($row = mysql_fetch_array($pregled)) in line 42 here is part of code that has problem, can anyone check this out? I need to fix this as soon as possible thanks in advance <p align="center"><font color="#0000FF">Pregled grupa</font></p> <p align="center">Grupa kojoj koncert pripada: <select name="grupa_select2" id="grupa_select2"> <?php … |
|
Okay I hope my title is not confusing. I have two checkboxes names Delete[] and Update[] followed by a textbox named Name[]. When I tick checkbox Delete[] and click Submit, I ran a query to delete the data based on that Checkbox's value (which I have set to be the … |
|
good evening everyone... could anyone help me on this? With a "time value", eg. 08:00:00... i want to find the range that this value falls in using case statement... i am not good in using the time format... anyone can help? This is just an example: (the code is not … |
|
I have some basic logic here and im getting crazy how can do this. what I want is to submit my form when the hyperlink is being click. here sample code: <form id="myForm" action="for-filtering.php"> <input type="hidden" name="fname" value="<?php echo $account_fname; ?>"> <input type="submit" id="submit" style="display:none;"/> <a onclick='myFunction()' href='reponse-to-customer.php?id=".$cus_id."'>$firstname_email</a> </form> <script> … |
|
Hi guys, I'm new to ASP.Net. I'm building a page which consists of a dropdownlist, a gridview and a save button below the gridview. I want to populate the gridview based on the values selected from the dropdownlist. My first problem is that the gridview does not display when the … |
|
My question is can we use the Document.write in a loop? As the following code doesn't works well. Guess what wrong in it! <script type="text/javascript"> var d = 1; var p; while (days <= 4){ p = prompt("value of p?",0); document.write("the value of p" + p); p=p+p; d++; }; </script> |
|
Hey guys! I'm writing this really long code for practice. Got really rusty with Java so I gotta get brain working again. Anyway, the first part of the code asks the user for the number of employees; the for loop then keeps asking the user to input employee names depending … |
|
Hai friends i want to know how to dispaly same value and different page without enter any value because already some content is there display that content in different page using javascript |
|
I'm trying to parse equations like these which only has two values or the square root of a certain value from a text file: 100+100 -100-100 -(100)+(-100) sqrt(100) by the minues signs, parenthesis and the operator symbol in the middle and the square root, and i have no idea how … |
|
Hi Friends, There is a variable call 'ReportID' Its values are normally in this format. 'MPS141', 'MPS142'.... 'MP' means company name. 'S' means, Songs and '14' means year 2014 and other part is auto incrementing data. I want to get onlye that value. Is there any function in PHP ? … |
|
pass the value of three textbox from one form to another form for simple windows form application |
|
Hi All's, I in a project to write some value into Mifare 1K using ACR122U with VB.Net. The value is Student ID like ' MA091221'....already read the API / SDK but not understand to do it. Can anyone giude me?..Tq |
|
I am using the following query (thank you diafol) to group the top N rows in my data set: SELECT mgap_ska_id,mgap_ska_id_name, account_manager_id, mgap_growth AS growth,mgap_recovery, (mgap_growth+mgap_recovery) total FROM (SELECT mgap_ska_id,mgap_ska_id_name, account_manager_id, mgap_growth, mgap_recovery,(mgap_growth+mgap_recovery) total, @acid_rank := IF(@current_acid = account_manager_id, @acid_rank + 1, 1) AS acid_rank, @current_acid := account_manager_id FROM mgap_orders … |
|
Private Sub txtamount_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtamount.TextChanged If String.IsNullOrEmpty(txtquantity.Text) OrElse String.IsNullOrEmpty(txtamount.Text) Then Exit Sub If Not IsNumeric(txtquantity.Text) OrElse Not IsNumeric(txtamount.Text) Then Exit Sub txttotal.Text = CDbl(txtquantity.Text) * CDbl(txtamount.Text) End Sub Private Sub txtquantity_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtquantity.TextChanged If String.IsNullOrEmpty(txtquantity.Text) OrElse … |
|
I am trying to retrive value from database in dropdown and to display the datas related to the selected option. I am new to php, Please Help me to write php code for the above . |
|
I'm working on a rolling dice program. The rules are below. I'm not sure how to **reassign** a value. For example, a value of 1 and 2, would equal 1; a value of 3 and 4, would equal 2; and a value of 5 and 6, would equal 3. The … |
|
postfix and prefix increment or decrement operators very very confusing for me i try my best but i can not understand the basic different between them plz help me i know The prefix form first performs the increment operation and then returns the value of the increment operation. The postfix … |
|
Using POSIX thread library two threads are created by this program. Main program creates a file, let say, ‘alphanumeric data.txt’. The thread one writes some alpha numeric value along with system time in this file. Second thread reads this value from file and displays the following information on screen: Alpha … |
|
Hello , I have an 2 dimetional array: Array ( [0] =>Array ( [0] => add1 [1] => add2 [2] => May 2014 [3] => ascascascasc [4] => 160 ) [1] =>Array ( [0] => Framework [1] => hii [2] => May 2014 [3] => ascascasc [4] => 161 ) … |
|
<td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/> </td> |
The End.