64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Simon180

Am trying to read a URL address something like http://www.myaddress.com/id=563?name=mark from the Embedded Web Browser then I want to be able to get the url parameters of a link with in my delphi application, so am able to do a messagve box like: ShowMessage(id); // this would show 563 ShowMessage(name); …

Member Avatar for pritaeas
0
255
Member Avatar for vizz

I have function to generate activation key when user creates new account. How to check generated key is not generated in the past for other user **Database fields** username password email activationcode **Function** function random_string($length) { $key = ''; $keys = array_merge(range(0, 9),range('A', 'Z'), range(0, 9), range('a', 'z')); for ($i …

Member Avatar for vizz
0
416
Member Avatar for hefaz
Member Avatar for jay.barnes

Hey, all I've got this script that runs a simple 'select' query: function set_selectAssoc($usernumber) { $this->execute = $this->connection->query("SELECT * FROM `link-UsersToGroups` WHERE userID = ".$usernumber); $this->num_rows = $this->execute->num_rows; $this->results = $this->execute->fetch_assoc(); if ($this->num_rows == 0) { $this->response_code = 2; $this->response_msg .= "You don't currently seem to belong to any groups …

Member Avatar for jay.barnes
0
291
Member Avatar for Papa_Don

Hi group! I'll be up front and say I'm very new to SQL. I'm just now getting my feet under me in my new job. So I have lots of questions. I'll start simple (I hope). I've created my own tables (2) that have multiple columns of data that looks …

Member Avatar for Papa_Don
0
243
Member Avatar for Violet_82

Hi all, I've run into a strange issue. Basically, I created my new application called input-outputTest, created my model class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace input_outputTest.Models { public class EmployerDetails { private string Name { get; set; } private string Surname{ get; set; } private int …

Member Avatar for Violet_82
0
726
Member Avatar for westsiderailway

Hi Everyone. this is the last part of my function Case "December" If cbMonthly.SelectedItem = "December" Then Dim DecStart As String = "-12-01" Dim DecFin As String = "-01-01" M12S = String.Concat(Year, DecStart) M12F = String.Concat(Year, DecFin) End If End Select Dim Places As New List(Of String) Places.Add(M12S) Places.Add(M12F) Return …

Member Avatar for westsiderailway
0
305
Member Avatar for bnmng

Hi Everyone, I need to check if a date is valid but not relative. Here's what I came up with: if ( strtotime ( $date ) && strtotime ( $date ) == strtotime ( $date, 1 ) ) { $its_all_good = true; } If that's helpful, then I'm glad I …

Member Avatar for diafol
0
343
Member Avatar for Slavi

Hey guys, I am making a few gui programs and I was wondering on this code .. class PaintChart(wx.Panel): def __init__(self, parent, data): self.data = data.split() wx.Panel.__init__(self, parent) self.SetBackgroundColour('BLACK') self.Bind(wx.EVT_PAINT, self.drawChart) def drawChart(self, e): dc = wx.PaintDC(self) dc.SetDeviceOrigin(30, 240) dc.SetAxisOrientation(True, True) dc.SetPen(wx.Pen('RED')) dc.DrawRectangle(1, 1, 300, 200) Here I set the …

Member Avatar for Slavi
0
417
Member Avatar for OsaMasw

Hello guys , am new to Android Development, I've created many test apps for learning, using webview and lists and creating multiple activities, I have an application that get URL with JSON data contain url with streaming video and when click on button open VLC with URL provided. JSon FILE …

Member Avatar for peter_budo
0
4K
Member Avatar for Clearner123

I found the following logic for binary search from the standard book i feel it fails in some /* binsearch: find x in v[0] <= v[1] <= ... <= v[n-1] */ int binsearch(int x, int v[], int n) { int low, high, mid; low = 0; high = n - …

Member Avatar for Clearner123
0
200
Member Avatar for Afghan2

when i click on a menu i should get a report for data but i just see the old report help???

Member Avatar for Afghan2
1
346
Member Avatar for janicemurby

I i get the following error in a script im using has anyone got any ideas what it could be ty jan x Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/letsswin/public_html/template_status.php on line 47 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/letsswin/public_html/template_status.php …

Member Avatar for janicemurby
0
247
Member Avatar for hefaz

Help me, What is @override in Jave? i can't understand a bit of the code in jave, when i am reading an android game source code. Thanks

Member Avatar for hefaz
0
132
Member Avatar for James_43

Hi there, My PHP is appalling/non-existant. I have a HTML website with a PHP header that I've 'included' on all the pages. The problem is that this header colours red whichever page we are currently on, defined under the CSS as being 'active'. Therefore, from what I see, I need …

Member Avatar for James_43
0
170
Member Avatar for PM312

I am trying to update Varbinary(Max) column data with Null value. But unable to do so. Error "**Implicit conversion from data type varchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.**" my code Private Sub ButRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButRemove.Click …

Member Avatar for PM312
0
2K
Member Avatar for James_43

Hi there, I have a webpage in HTML, strong-links.org, and am tired of having to make changes to every single page when I update the header or footer, and someone suggested I can use PHP to reference the template within the HTML pages. As a test, I have test.strong-links.org/index2.html live …

Member Avatar for James_43
0
235
Member Avatar for liyanaddsce

Hello!!! I am a beginner to C++ and linked list and searching algorithm really made me confused. There are 26 errors (which caused by pointer ofc). Can anyone give me idea how to fix these errors??? #include<string> #include<cstdlib> #include<iostream> #include<malloc.h> #include<fstream> #include<time.h> #include<conio.h> using namespace std; #define SIZE 10 class …

Member Avatar for Moschops
0
274
Member Avatar for arup_1

javac Cannot find my Example.java file after saving it in c:\program..\java..\bin\!! i am using win 7 (64 bit). Following points are so confusing.. 1. **Even i cannot** see the file in that directory form window!! 2. If i want to copy it 2nd time, windows ask me to **"overwrit"**. (Means: …

Member Avatar for stultuske
0
252
Member Avatar for jonsan32

Trying to insert both of these arrays of random quotes on the same page so that both show at the same time. I realize I have to rename some of the elements within, but apparently I have no clue which. I've tried giving each rannum, ShowText, and RndText a number …

Member Avatar for RobertDecousta
0
334
Member Avatar for AntonyRayan

Hi, In a representative table, I have fields, like, id, mark_id, rep_id rep_name, father name,etc, In this table, rep_id field is empty, And in rep_area table, the fields are like id, rep_id, dist_id,etc, in this table, rep_id has values. While editing the representative form i want to display rep_id from …

Member Avatar for e.geofrey
0
208
Member Avatar for SimonIoa

Hello i am using WAMP server and the audio player doesnt show up This is the code <audio controls preload="metadata"> <p><label>Error: Your browser does not support the audio element. Install the latest version. If you are using Safari you must install Quicktime.</label></p> <source src="<?php echo $base_url.'uploads/audios/143154310611.mp3';?>" type="audio/mp3" /> <source src="<?php …

Member Avatar for gentlemedia
0
419
Member Avatar for Nathaniel10

Hello All, My old computer crashed. I installed XAMMP on my new computer. My old PHP files don't run. I learned that the reason is that register_globals feature has been deprecated and is now permanently Off by default. My old files were written in a 'register_globals=On' environment. I understand that …

Member Avatar for Nathaniel10
0
357
Member Avatar for Navee30

Hello, I have a GUI with a timer... but when I put too many lines of code inside the timer method, the GUI lags. private void timer_tick(object sender, EventArgs e) { ... } How could I resolve this problem? I know there are 3 types of timer... Do I use …

Member Avatar for DaveAmour
0
196
Member Avatar for mehnihma

Hi I found this code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> function enterAsTab() { var keyPressed = event.keyCode; // get the Key that is pressed if (keyPressed == 13) { //case the KeyPressed is the [Enter] var inputs = $('input'); // storage a array of Inputs var a = inputs.index(document.activeElement); //get the Index …

0
105
Member Avatar for sciwizeh

Hello All, I'm trying to write a simple html editor that will highlight tags, and it does, but if the user types the caret jumps to the very end of the document, how can I stop this from happening? here's my code: [CODE=java] import javax.swing.*; /** * Main frame for …

Member Avatar for reguieg
0
350
Member Avatar for SpeakerKeyboard

Can anyone give me advice on how to attack this problem? I have files in a directory that are named in a convention dayMonthrandomstuff. I need to sort these files into folders based on month then date. So example, "15e23dr" would go into the "May" folder since "e" is the …

Member Avatar for SpeakerKeyboard
0
978
Member Avatar for Vivek_13

<?php $xml = simplexml_load_file('/exam/'.$file); foreach($xml->main as $main) { if($main['select'] == "selected") { ?> <div> <textarea rows="2" class="span11"><?php echo $main->question ?></textarea> <div class="row" style="padding-left:3%;margin-bottom:1%;"> <ul> <?php foreach($main->ans as $ans) { ?> <li style="float:left; margin-left:1%;" ><input type="radio" name="optionsRadios" class="rdChk" style="margin-top:-2%">&nbsp;<span><?php echo $ans ?></span></li> <?php } ?> </ul> </div > </div> <?php } …

Member Avatar for Vivek_13
0
1K
Member Avatar for kaushik259106

Is it possible to get the current URL in my JSP page. Say i open a site "http://abc.com/page1.jsp" I want to display it in page1.jsp the total url as "http://abc.com/page1.jsp" If yes please tell me the step! Thanks in Advance

Member Avatar for Ranjit_1
0
15K
Member Avatar for intes2010

I am having problems with my program that is unable to fill-up and submit a website form. It only browses the website and stops there. I used Live Http Headers to retrieve the needed data for my program to auto fill-up the website. Here is my code: Dim postData As …

Member Avatar for fabricedev
0
708
Member Avatar for matoo

I am trying to write program in vb6.0, in which i am using ms access database. i want to search in a table called "customer". the Field is called "Name". in the feild i have saved full name e.g Asmat Ullah Khan, Asmat Khan, Asmat Ullah. now what i want …

Member Avatar for matoo
1
349
Member Avatar for SCass2010

Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the …

Member Avatar for Sameer_4
0
2K
Member Avatar for _::suhanna::_

hi... im working with vb.net can u guys help me... can u guys give me some sample code how to add item and display item using combo box? please help me... thanks...

Member Avatar for pratikb
0
20K
Member Avatar for Baalla

hello my problem this time is i have an multidimensional vector and the example of adj vector is showen in the attached picture and i wanna know the size of each one i mean in i=0 the size is 2 i declare a new vector degree to put in it …

Member Avatar for Baalla
0
205
Member Avatar for Baalla

i'm having a problem in reading a file i tried my code in code blocks/eclipse c++/netbeans c++ and even visual studio c++ 2010 each time it exits with (-1) while i'm puting the file in the right place for reading i don't know where is the mistake can you please …

Member Avatar for Baalla
0
259
Member Avatar for venk7

In a python script I gave a call in this way: do.call([cfg.tool_cmd("cuffdiff"), "-p", str(cfg.project["analysis"]["threads"]), "-b", str(cfg.project["genome"]["fasta"]), "-u", cfg.project["experiment"]["merged"], "-L", "%s,%s" % (str(cfg.project["phenotype"][0])[2:8],str(cfg.project["phenotype"][1])[2:7]), "-o", output_folder] + [cfg.project["samples"][0]["files"]["bam"] + ' ' + cfg.project["samples"][1]["files"]["bam"]], cfg.project["analysis"]["log_file"]) This gives the command: Command '['/usr/local/bin/cuffdiff', '-p', '5', '-b', '/scratchsan/venkatesh/TuxedoProject/data/genome/ce10.fa', '-u', 'pipeline/merging/merged.gtf', '-L', 'embryo,larva', '-o', 'pipeline/degenes', 'pipeline/SAMN00990702-1/mappings/accepted_hits.bam pipeline/SAMN00990702-2/mappings/accepted_hits.bam']' …

Member Avatar for venk7
0
311
Member Avatar for Pelle_3

I am quite new to web development, so I naturally came to a point where I needed some help. I am making a web site where the user has to log in, and if authentication is successful, the user's data will be fetched from server and displayed on page (and …

Member Avatar for Pelle_3
0
266
Member Avatar for ramsiva

I am passing one variable successfully any body help me to pass two variables to ajax page $.ajax({ type: "POST", url: "fetch_st_name.php", data: "sid=" + sid, cache: false, beforeSend: function() { $('#display1').html('<img src="loader.gif" alt="" width="24" height="24">'); }, success: function(html) { $("#display1").html(html); } }); I am passing one variable. data: "sid=" …

Member Avatar for phoenix254
0
10K
Member Avatar for hadisur_rahman

Can someone gave the book of linear algebra written by Abdur rahman or the books download link..

Member Avatar for jwenting
-2
144
Member Avatar for UK-1991

function view_report($dateval1, $dateval2, $id) { global $connection; $query_get = "SELECT * FROM presence WHERE p_date BETWEEN {$dateval1} AND {$dateval2} ORDER BY DATE"; $query_confirm = mysqli_query($connection, $query_get); if(isset($_POST["show"])) { while($record = mysqli_fetch_assoc($query_confirm)) { $output = "<tr>"; $output .= "<td>" . $record["p_date"] . "</td>"; $output .= "<td>" . $record["p_day"] . "</td>"; $output …

Member Avatar for Gideon_1
0
164
Member Avatar for ramsiva

How to apply readonly inside forloop in checkbox or disabled checked values in checkbox ramaining empty values will be active any body help me <input type="checkbox" class="chkNumberck" value="<?php echo $sub_id; ?>" <?php for($i=0;$i<$count1;$i++) { if($sub_id1[$i]==$sub_id){ echo "checked"; } } ?> />

Member Avatar for ramsiva
0
136
Member Avatar for Brandon_7

I had a test in AP Computer Science and I got the following question incorrect: Given the following class A public Person class is written, and the class has two private String instance variables to store the person's name: one named firstName and one named lastName. The class has two …

Member Avatar for Markland
0
2K
Member Avatar for Mr.M

Hi Dw I'm having a problem here, I created this project and because of Access denial I was prompted to use the manifest to make my app run accordingly, but changing the manifest value from "asInvoker" to "requireAdministrator" helped solving that problem up to a point where I had to …

Member Avatar for Mr.M
0
328
Member Avatar for wilsonchama

Hi Guys, I have a Microsoft Access database in which my VB.Net 2008 application is posting the data. It is an inventory management application. I have managed to accomplish a lot of things with your help. And Now, I have reached a point where all my ideas have been exhausted, …

Member Avatar for wilsonchama
0
3K
Member Avatar for vegaseat

I am sitting in front of a brandnew 27 inch Apple Macintosh running on OS X Yosemite, trying to compile a timed insertion sort from my Windows days. The Xcode app is a sweatheart, but there are some Windows things in the code that cause a problem. This line ... …

Member Avatar for vegaseat
0
275
Member Avatar for Niloofar24
Member Avatar for Mushfik

<?php $this->user_id = $_SESSION['user_id']=$user->id; //create a database connection mysql_connect("host","user","pass") or die("Error:".mysqlerror()); //select database mysql_select_db("db"); ?> <html> <body> <link href="tab.css" rel="stylesheet" type="text/css" media="all" /> <table id="box-table-b"> <tr> <th>User ID</th> <th>Status</th> <th>I.P</th> <th>Offer Id</th> </tr> <?php $result = mysql_query("SELECT * FROM clicks where userId='$id'"); //return the array and loop through each row …

Member Avatar for Gideon_1
0
7K
Member Avatar for Vivek_13

function getRandomNode($file, $numOfQue) { $xml = simplexml_load_file($file); foreach($xml->main as $main) { //Here I want to Get Ramdom Node using $numOfQue. //$numOfQue is a random node Number } $xml->asXml($file); } guys Help me...

Member Avatar for Vivek_13
0
270
Member Avatar for mbarandao

I would like to create a series dropdown boxes, each containing the same listing content. However, when one option is selected from the preceeding dropdownbox, that element is removed from the remaining boxes. I would like this process to continue until all selection have been selected. 1 <select name="box1"> <option>value …

Member Avatar for mbarandao
0
163
Member Avatar for UK-1991

Hello, I created a query insert query everything is in right order but dont know whyy its not working function submit_report() { global $connection; if(isset($_POST["submit"])) { $id = 215; $name = "myname"; $uname = "myusername"; $date = $_POST['date']; $campaign = $_POST['campaign']; $t_leads = $_POST['t_leads']; $c_leads = $_POST['c_leads']; $open_acc = $_POST['open_acc']; …

Member Avatar for UK-1991
0
293

The End.