64,152 Solved Topics
Remove Filter ![]() | |
Dim db As New Connection 'Dim tbpro As New ADODB.Recordset 'Dim db As Database Dim tbpro As Recordset Private Sub Command1_Click() rsMyRecordset.Open (App.Path & "\" & "super.mdb") rsmyreco End Sub Private Sub Form_Load() 'db.ConnectionString = (App.Path & "\" & "super.mdb") 'tbpro.ActiveConnection "table1", db, adOpenDynamic, adLockOptimistic db.Open (App.Path & "super.mdb") Set … | |
I very new to C Shell. I am trying to read a file from the command line, and determine whether it's a zip file, a .txt, a symbloic link, a pipe, or whatever ("unknown"). Then I'd like to execute a few instructions depending on the type. For instance, if it's … | |
I am not sure what I am doing wrong but can't seem to recieve test email for this php form the form is at the bottom of this code snippet <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MIAPP</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <!-- FAVICON --> <link rel="shortcut … | |
Hi All, I'm having trouble understanding how the spl_autload (and namespaces) should be implemented. I have the following: namespace A\Core; class Controller { } extended by: class SiteController extends \A\Core\Controller { public function __construct() { echo 'Created SiteController!'; } } * I'm not sure if this is the correct/best way … | |
I have a txt file with 5 integers, then from standard input if I entered 1 it will output 10 if I entered 3 it will output 30. I put mine in an array, I just want to know if its possible to not put it in an array and … | |
Hii,, I need to make a program that takes in a user’s number and keep dividing it by 2 until it is 1.I need to display the division steps i'm kinda new to c++ and i do not know how to keep making it divide by 2 until 1 i … | |
Hi guys, as I'm fairly new to visual studio and asp.net, I might be missing something really obvious here...basically I have created a CSS file which is referenced in the aspx file (I dragged the css file from the project to my aspx file). Then I created another aspx file … | |
Hello. as I am new to coding , I couldnt understand how to create a login page without registration and without a database in ASP.NET & C#.net. i would like to write the code for only 1 user and the username and password must be in the code not in … ![]() | |
hello good people, i have created atab control and added a gridview in it. When i run it this is how it shows:  i have tried adjusting the heights and widths of both but tono avail. here is my code: <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="421px" style="z-index: 1; left: … | |
Hey good people, I hope you are all well. Ok so here is the scenario, i have 4 tables that i have made in sql server 2008. I am using a drop down menu to diplay their names. Like this...  I am going to use a dataGrid view. … | |
Group, I'm trying to improve a macro in an EXCEL spreadsheet. The spreadsheet has multiple tabs (sheets), some of which have grouped rows in them. My "cleanup" routine needs to check to see if these grouped rows exist. Is there some code that does this (hopefully boolean)? If it helps, … | |
hi, 1st of all thank you guys again for all of your help.  i have this datagrid view and i want to write it on a richtextbox like: 14 APPLE0-13 @ 60.00 840.00 so on and so forth. how can i achieved getting all of them and can … | |
Hi Friend, Could you please help me with Row level Access Data reading? What I mean to say is(PFA Screenshot) [Click Here](http://postimg.org/image/cultofmhv/) Suppose I only need to read the Row with "EmpID" AA/0141/D/12749, how can I do it? Keep in mind that It is always going to be a random … | |
Group, I've created a large spreadsheet with a fair amount of code behide it. Historically it has run well and with no issues. However it has started giving me a "Run-time error '9': Subscript out of range" error. I have no idea what is causing it. It is stoping at … | |
I'm here with Google Maps API. I've got map working, I learned how to set markers with custom images. I also made custom search bar and I plan to make PHP/SQL connection, so whenever user uses it, it saves copy of address in database so that it can be recalled … | |
So I'm trying to remove 2 brackets from lines I'm reading from a file. For some reason when I run my program the characters in between the delimeters is removed. for example `greetings pe()ple` would end up as `greetings pe` I'm using a char array of delimiters. `char delimiters[] = … | |
Hi need some insight on how to show record from different database on the same server. i also tried using join but didnt get the correct output. im finding a way to make it work using just one query. my last resort will be using different query to select the … | |
have problem with understand how to resolve error in my code. Here it comes: def counting_sort(some_list, max=100000): licznik = [0] * (max+1) for x in some_list: licznik[x] = licznik[x]+1 i=0 for x in range(max+1): for y in range(licznik[x]): some_list[i]=x i=i+1 return some_list.reverse() def gen(number, b=100000): some_list = [] return [some_list.append(random.randint(0, … | |
Ok, what I'm trying to do is have next and prev buttons to navigate through a mysql database sorted by date. Currently, the code I wrote does this, but gets stuck on duplicate dates. $Next = mysql_query("SELECT * FROM $logbook WHERE Date>='$Date' AND ID!='$ID' ORDER BY Date LIMIT 1"); $Prev … | |
Hello, I am having trouble sorting my array. I have gotten it to read out just the names in ABC order, but I need it to display all of the attributes. I have read several sites trying to figure out how to do it and I keep getting errors. Here … | |
Dea Friends, it is superb serveice you are doing....lets please talk about SESSION in PHP.My code is below. <!DOCTYPE html> <?php session_start(); ?> <html> <head> <title>Login page</title> </head> <h1 style="width: 20%" >Login Page</h1> <fieldset style="width: 30%"> <legend style="background: #59CC57" >Login</legend> <body style="background: #B6ECEB"> <form method="post" > Username:<input type="text" name="username" placeholder="username" … | |
![]() | How do I overload the cout and cin operators so as to get input and show output using an object? Heres a simple example of what I'm trying to do: class Temp{ double fTemp; public: double FahrToCelsius(double fTemp){ return (fTemp - 32.0) / 1.8; } friend std::ostream operator<<(std::ostream Out, const … ![]() |
hello everyone, im working on some php project for my masters thesis, i need a help. can any one guide me how can i insert data from mysql to excel file using php. i have some data in my phpmyadmin database suppose like book_store , table name books, i want … | |
![]() | Hi all. Been playing with some autoloading but couldn't get it to work. I'm trying to implement the PSR-4 (project scope) approach, but documentation is sketchy and I'm a bit lost as to the issue. I've read the PHP-Fig docs: http://www.php-fig.org/psr/psr-4/ and an trying to implement a script from the … ![]() |
#include <stdio.h> int main (void) { //declare variables int sales = 0; int totalsales =0; double commission = 0.0; //enter input items printf("\nsales: "); scanf("%d", &totalsales); //determine whether the data is valid if (sales <= 0 && commission = -1); else if (sales <= 10000 && commission = sales*0.2); else … | |
Hi guys :) It's my first time posting and I need help with a program I'm supposed to write for school. I have no clue how to do it and could use any information, thank you! Here's the Information: "Ask the user to enter a word. Output the letters in … | |
question Identify the objects and simulate the following scenario.Your Code must have all constructers, Exception Handling, predicate functions ,wrapper functions ,settrs and getters.Use proper names for functions, classes and variables image below.[Click Here](http://postimg.org/image/706icwycf/) please tell me what to do with this:::???? | |
dear friends, i allready written code for PHP registration and login forms . i am worried about attacks from user unwanted data entry.My code is below. <?php include"conn.php"; if(isset($_POST['login'])){ $uname= $_POST['username']; $pword= $_POST['password']; $uname =real_escape_string($uname); $pword= real_escape_string($pword); $sql="SELECT * FROM login1 WHERE L1='$uname' AND L2='$pword'"; $result=$conn->query($sql); if($result->num_rows>0){ echo("welcome"); } else … | |
Okay I have a html upload form here, What is does is displays a browse button so users can upload files to my site, what I want them to be able to do is completly rename the file that they are uploading once they upload it to my site, but … | |
i have a datagridview and a combobox. the combobox is auto populated by values from a database. i need to filter the datagridview using combobox. this is the code that i've done. it shows a error : Cannot find column [year]. can you help me??? Imports MySql.Data.MySqlClient Public Class ReportGradeLevel … | |
Hi, i'm learning file creating and reading and i ran into a problem when i create a file with input using a loop i end up with an extra line at the end of the file and when reading the file i always get the last line repeated twice the … | |
I have some experience when it comes to CodeIgniter. I am trying to figure out a method for determining the window size of a browser and assign it POST or $this or the user session (also part of $this). I need the variable to persist for the session. In my … | |
Hello, My name is Steven and I am studying for the OCA-JP-SE7 (1Z0-803) exam and I am using Enthuware Test Studio for practice questions. I came across a question that has to do with the arraycopy method and am having some trouble understanding exactly what is happening. Here is the … | |
I have installed the npm install big-integer https://www.npmjs.org/package/big-integer to test if the number is in the specified range with this code: isBigInt: function () { var val = $(this).valueOf var valor = bigInt(val); var minimo = bigInt("-9223372036854775808"); var maximo = bigInt("9223372036854775807"); if (bigInt(val).greaterOrEquals(minimo) && bigInt(val).lesserOrEquals(maximo)) return true; else return false; … | |
Hey, I need to compile and link two C files together...what should i do to the files in order to be able to compile them as the following: [Code] gcc file1.c main.c [/Code] and then run using ./a.out... Can anyone tell me the steps please...thank you.. | |
Hi, I am just starting with php and i have been trying to get these two pieces of code to act right. Like they are shown everything works just fine. What i need this to do is find a certain html code on a page then write to the next … | |
So Im using jqueryui datepicker..already set the dateformat to mysql format but sadly it still won't insert into my EventDate field..EventDate has a Date datatype.. <script> $(function() { $( "#datepicker" ).datepicker({ dateformat: "yyyy-mm-dd", changeMonth: true, changeYear: true }); }); </script> Maybe there's something wrong with my submit? <form role="form" action='' … | |
I'm having a hard time thinking of a way to make a form for events.php(User adds an event by inputting Event Name and Event Date) I have made a table "Events"; with Fields 1. EventID int 2. EventName varchar 3. EventDate Date---->this is the problem mysql uses Year-Month-Day format. I … ![]() | |
Hi! I'm new into C programming and Arduino. I'm trying to display some data on several 7LED Digit Displays but I get this error and I don't know why. This is my code: int iasDigits[] = {0, 1, 2}; void sendToDisplay(unsigned int device, int digits, char value, unsigned int valueLength){ … | |
Hello you all genius guyz once again i am in need of your help I am trying to create a page on admin to be able to see the profiles of all the users but filed to do that I have tried the while loop but still I am unsuccessfull … | |
//Hi all,can you please explain why using this-> in this code is optional,that is the purpose? //Code can work with not this-> too. CTime_24 operator+(int seconds); CTime_24 CTime_24 :: operator+(int seconds) { CTime_24 temp; temp.m_Seconds = this->m_Seconds + seconds; temp.m_Minutes = this->m_Minutes + temp.m_Seconds / 60; temp.m_Seconds %= 60; temp.m_Hours … | |
Please help in understanding the requirements. This is how I understand it, first, from standard input (I'm will need to use Scanner) read in 100 integers. 2nd, put all the 100 integers in a file (using printwriter in my case) 3rd, use that file to catch the exceptions (ArrayIndexOutOfBoundsException) Write … | |
I have here an integrated version of my code into a modal... This code gives undefined index id <!-- Edit-Page Modal --> <div class="modal fade" id="edit-pages" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">Edit Page</h4> </div> <div class="modal-body"> <?php … ![]() | |
Hey everyone, I;ve implemented SSL to my server using [this guide](https://blogs.oracle.com/lmalventosa/entry/using_the_ssl_tls_based) now when I connect the server it takes some time to initialize now, I assume its setting up stuff, and then when the client connects takes awhile as well (few seconds), I'd assume it works but I want to … | |
Hello people of the internet. I am currently learning how to program in c++ and I am having trouble with a program. This program is supposed to take in a string and write it out again wtih the ascii ordinance having a plus two i.e a = c or s … | |
Dear friends, Please guide me I want to display data in PHP form from mysql database. my code is below <?PHP //connect to database $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; $conn= mysqli_connect($server,$username,$password,$database); // checkintin connection if($conn->connect_error){ die("".$conn->connect_error); } // select data $sql = "SELECT … | |
<?php echo "<form action='' method=\"post\">"; echo "<table border='1'> <tr class='' > <th> P.Name </th> <th> P.Size </th> <th> P.Quantity </th> <th> P.Price </th> <th> P.Delete </th> </tr>"; $query ="SELECT * FROM `order_detail` WHERE `orderID` = $viewID "; $result=mysqli_query($connection,$query); while($row=mysqli_fetch_array($result,MYSQL_ASSOC)){ $Id=$row['ID']; echo "<tr>"; echo "<td> <input type=\"text\" name=product_name value=\"$row[prodName]\"> </td>"; echo … | |
Hi Iam having some problems with this program, I think its minimal but i don't know how to solve it . THIS IS THE PROGRAM=A teacher gives 5 tests, but averages the four highest scores. An average of 90 or better recieves an A, 80-89a grade of B, 70-79 a … | |
I am using PHP Simple HTML DOM Parser to fetch urls, but i got an error while fetching links. Have a look at this script: $result = str_get_html($result); foreach($result->find('a') as $element) $result = str_get_html($result); $result = str_replace('http://', '', $result); foreach($result->find('a') as $elementa) echo $element->href; echo $elementa->href; Here I want to … |
The End.