199,114 Archived Topics
Remove Filter ![]() | |
i had make php file into it function [getLink()] make connection with mysqli_connect and return link of connection to use it in another php file to get result from database with mysqli_query() connection.php ` <?php $userName="root"; $serverName="localhost"; $userPassword="*****"; $nameOfDataBase="ITI_System"; function getLink(){ $link=@mysqli_connect($serverName,$userName,$userPassword,$nameOfDataBase); if(!$link){ echo "connection Error".mysqli_connect_errno(); } return $link; } … ![]() | |
I've been looking around for an answer to this but have had no luck. I need to take two files and print the top most frequent words they have in common as well as their combined(sum) frequencies. This might be simple but I'm pretty new to programming. Any help? def … | |
I have a website and so does my college. Except my college doesn't know that my website uses their hosting i.e. same server. So both of us share common IP address like 23.5.46.225 To access my college I can either use http://23.5.46.225/~collegename OR www.collegename.com And to access my server I … ![]() | |
I've have been doing some research on how to export export a pipe delimiated file from sql management studio but I cannot quite seem to figure it out. How would I simply turn this output into a piped file. [CODE]select * from #tmpRPLRouting where propertydatamap = '3' [/CODE] | |
i have started learning joomla and now my team leader say me to covert html temlapte to joomla temlate any one have idea about that how can i achive this thanx in advance | |
class BTNode(object): """A node in a binary tree.""" def __init__(self, item, left=None, right=None): """(BTNode, object, BTNode, BTNode) -> NoneType Initialize this node to store item and have children left and right, as well as depth 0. """ self.item = item self.left = left self.right = right self.depth = 0 # … | |
Need a little help on this since it seems to be vastly different than VB6. I have multiple forms and would like to set the Startup Position of secondary forms (form2 & form3) slightly lower, and to the right of the primary form (form1); similar to the 'cascade' effect in … | |
![]() | I got this snippet of code from a larger program I've been writing and I'm stuck. All I'm trying to do is read from a file line by line but I keep picking up the new line character, at least that's what I think it is. #include <stdlib.h> #include <stdio.h> … ![]() |
Good morning DaniWeb community, I've been coding a while in Classic ASP with MS SQL, but now it's neccesary for me to take the plunge into ASP.NET, C# in particular. I have a lot of data in SQL, and I would like to know where to start, I know how … | |
i'm having a problem with my project where i should read the inputs from the status port of a DB-25... Input = Inp(&H379S).... whenever i trigger one of the sensor the value of INPUT will be 135 regardless of which sensor i trigger or even if i simultaneously trigger multiple … | |
Good morning Guys, I've got this code currently running: private void button1_Click(object sender, EventArgs e) { SqlDataSourceEnumerator sdse = SqlDataSourceEnumerator.Instance; DataTable table = sdse.GetDataSources(); foreach (DataRow row in table.Rows) { instanceCombobox.Items.Add(row["ServerName"].ToString() + "\\" + row["InstanceName"].ToString()); } Which gives me the Instance and Name of the SQL Server over the Network. … | |
Hey, I solved one problem and can't get rid of another. I have used spry menus before with no problem. Now that I want to use the efficiency of an include statement for my navigation it won't style correctly. [Here](http://www.mtechenterprises.com/inec/) is the site I'm working on. The problem shows on … | |
Hello i am trying to use cookie at my site. I used this code for set the cookie try{ Cookie cookie1 = new Cookie("thesiteid", Integer.toString(site_id)); cookie1.setDomain("localhost"); cookie1.setPath("/"); cookie1.setMaxAge(24*60*60*365); response.addCookie(cookie1); System.err.println("Set cookie"); } catch (Exception e){ System.err.println("Error in creating the cookie: "+e.getMessage()); } The problem is that is not working at … | |
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Burger extends JFrame implements ActionListener { JLabel lblForAll, lblBelow, pic, pic1, pic2, pic3, pic4, pic5, pic6, pic7; JRadioButton rBtn, rBtn1, rBtn2, rBtn3; JCheckBox cBtn, cBtn1, cBtn2, cBtn3; JTextField txt, txt1, txt2, txt3, txt4, txt5; JButton btn1, btn2; ButtonGroup btnG; int ham=25, egg=15, … | |
how to pass the array value through php in google chart api from my database values. | |
pls help me the coding.. | |
While researching on a php push engine like comet. I discovered the nginx Push Engine. But I dont know how to use it. Please is there anybody that as a simple demo or can give me directions on how to implement it in a real life project. | |
I am developing a VB6 application which connects with an Access 2010 database. I want the application to execute queries stored in the database. Some of the queries include Access functions in field names. For example- FieldName: IIf(Nz([AnotherFieldName],0)=0,3,[AnotherFieldName])" Is there a way in VB6 to execute the queries natively in … | |
Is there a way to remove blank worksheets from an excel report that is generated in SSRS? I've done some research and i could find solutions such as removing blank rows and even entire sheets but only via marcor's in excel, which won't work in my case as the report … | |
Hi Friends i am working for association management project. my database is mssql i am having 2 tables as below **1. table name is community_username** ASCN_NAME COM_NAME URFNAM Email_id URAC Name1 Commname1 Name1 Email1 Yes Name1 Commname1 Name2 Email2 Yes Name1 Commname1 Name3 Email3 Yes Name2 Commname1 Name1 Email1 Yes … | |
Hi all I am currently working on a Battlefield player / server statistics application that i have written in C#. I am storing RAW player / server data in a table at the moment. My question is what is a recommended maximum columns per table as this statistical data which … | |
Hi I try to Search for xp_cmdshell string in log.txt file but i got error? my $file = "c:/logdata.txt"; open (IN,$file) or die "Can't read $file: $!"; my $tag = "xp_cmdshell"; open(IN,"<",$file) || die "could not open $file: $!\n"; while (<IN>) { if (grep(/$tag/,$_)) { #Do something } } Close(file); | |
Our assignment is to create a BankAccount class and a Windows Form Application GUI that can be used to track deposits and withdrawals. The user enters an amount to deposit into a textbox and clicks calculate. The amount is parsed and added to the account balance. Unfortunately, the account balance … | |
HI how i can pass array to a second page if($report==1){ ?> <p><img id="myclass123" src='onetwolitre.php?startDate=<?php echo urlencode($startDate)?> &endDate=<?php echo urlencode($endDate)?>&auto=<?php echo urlencode($auto)?> &netw=<?php echo urlencode($netw)?>&ser=serialize($ser)?>'/></p> <?php } $ser is array and in the second page i have this: ...... $ser = unserialize( $ser); $db=mysql_pconnect("localhost:3306","root","root"); mysql_select_db("campion",$db); $endDate2=date( 'Y-m-d', strtotime( $endDate2 ) … | |
Hi how can i sort using Month i have January, February.... December i want to sort it out so the user will see it from January - December my column name is "Months" and it is in subitems(0) Thank you in a advanced | |
I have numpy type array, array[x][y], 16bit, little endian. How to save this to a tiff file as an image?. | |
hey guys i have a table which has a textbox in each of the rows. Each of these textboxes hold value as its row id. This value in the textbox is changeable and i want to move that particular row to a new row mentioned by the user in the … | |
I have a code here which will add the data in the system and also if it find a data that exist in the system a message box will appear if the user want to overwrite the data. here is the code Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & … | |
I have an XML file that is in this format: <root> Test string <Signature> WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==</Signature> </root> I was able to produce the SHA256 and produced a string by using the following: string CalculateSHA256(const string& input) { SHA256 hash; string digest; StringSource _(input, true, new HashFilter(hash, new HexEncoder (new StringSink(digest)))); return … | |
Hi all. I have a uk website; www.petscaffe.com that I am having real problems with and I need expert help. MY current web host is bluecommerce.net, I don't know if you have heard of them but avoid them like the plague. My web is doing ok but the problem I … ![]() | |
*Hello I was designing a form to take some value in the given fileds and return the whole as a "DRAFT" once the user fills the form clicks copy to clipboard the whole draft has to be copied ,if he/she clicks clear button the all fields has to be cleared … ![]() | |
Hi, I am very new to PHP, and i need small help. i need to fetch data on selection box onchange event and then apply pagination to the results. i have done etching data with ajax and when i tried applying pagination i am unable to load parent page of … | |
I am having a hard time trying to run this excercise. This works great up until the direction to declare the member functions Once declaring romanType member functions protected: ___________________ class romanType class romanType { protected: void storeRomanInput(char RomanNum[25]); void convertToDecimal(char storage[25]); void printAsRoman(); void printAsDecimal(); }; I am unable … | |
I'm looking for some C++ code or direction in writing some to close an app if it detects another instance running. Our little update utility writes a log file, which I'm thinking of using as the clue. I was thinking that before the second instance attempts to write to the … | |
Hi i have this line of code that i want to test when a user choose ... $c=count($pulse); array_push($ser, $pulse); foreach($ser as $serv){ $serv1[] = $serv; } if($c>=4){ include('full.php'); $netw = empty($_POST['netw'])?null:$_POST['netw']; $client = empty($_POST['client'])?null:$_POST['client']; getRecords($date,$date2,$report,$client,$netw,$auto); } in this line all the check boxes supposed to be ticked and it … ![]() | |
Hi, I have kind of a weird problem and I can't figure what is wrong. This is my Ajax php page : <?php // Configure connection settings include('dbconnect.php'); include('functions.php'); // Fetch the data $timestamp=$_GET['t']; $dimanche='2013-03-03'; $samedi='2013-03-09'; $queryEvents=mysql_query("SELECT * FROM `events` WHERE `start_date`=`end_date` AND `start_date`>='$dimanche' AND `start_date`<='$samedi'"); while($resultEvents=mysql_fetch_array($queryEvents)) { echo"<div id='drag-div-".$resultEvents['id']."' … | |
Hey everyone. I have a problem. I'm working on a site which let users upload files to the server. It works like this, I have created a php file to handle the uploading and when the uploading is successful it redirects back to the page where the form is located. … | |
In a previous thread I was trying to get some code to work as a search function and after messing with it for a while I finally got it to work-sort of. What I have is a search function and when I run the code it does find the part … | |
hi i am trying to copy the returned value (not really the returnd pointer but what it points at) from function gets but its not working and when i try to print it or print the str_infile before strcpy function , its not printed out !! i added temp_buff before … | |
can i change toggle button's state to another (play state to pause),by clicking another button(stop) | |
When I try to find all subsets of a set using the following code, the iterator vit in the inner for loop of the getPowerSet function misses out on one element certain times. Can anyone tell me why? #include<iostream> #include<vector> #include<set> using namespace std; vector< set<char> > getPowerSet(const set<char> &given); … | |
Hi, i've got a list with nodes with this structure: private: char namefield[30]; char tam[3]; char type[1]; }; i want to find and element with the find function from alghorithm class but i want to do it with the namefield property of the item, the find function has an item … | |
Hi! I am Working on TimeCode Slate Project (Working with: Arduino Uno Rev. 3), Now I working on the led display(8 digit 7 segment) code. I'm trying to modify this timecode display code from: "Dan Thompson - Timecode Based Stopwatch" http://danthompsonsblog.blogspot.co.il/2008/11/timecode-based-stopwatch.html to work with led display (Originally, the code from … | |
Hi everyone, please i am writing a program in C# for connecting to a microsoft access database using visual studio 2005 and ADO.NET. i want to be able to use Dataset to update,delete,insert and edit records in the database.please how do i go about this.I already have aform with a … | |
Hello..i tied a lot but i am not able to get the answer.. i am writing a program in which user input the array with space as delimiter eg- 4 3 5 2 3 so this value should be stored in array as a[0][0]=4 a[0][1]=3 a[0][2]=5 a[1][0]=2 a[1][1]=3 a[1][2]=0 please … | |
Hi, i'm creating a image gallery, using .htaccess. And this is my first time i work with .htaccess So i have this code, and it's allright but there's just one thing...the images don't appear. What i want is if: if $clean_url[2]=='all' //ALL IMAGES if $clean_url[2]!='all' //IMAGES w/ title='$clear_url[2]' I have … | |
![]() | I was doing some exercise from C++ Primer and one of them required us to copy a set of value from array into a vector container. Then, we are suppose to remove all the even numbers from the vector container. Hoever, when I tried to display them out by incrementing … |
Hello Everyone, I don't understand why my code won't work. Everything LOOKS fine, but I don't get the email I'm supposed to get and the screen does not refresh with the thank you message the user should see once the submit button has been pressed. Below is my code (the … | |
main() {--- ---- ---- } main(int a, char **b) {--- --- --- } main can be used in the both the ways in c but if there is no concept of function overloading in c how can the above be achieved. |
The End.