64,152 Solved Topics
Remove Filter ![]() | |
I'd like to share with others a discovery I made about using meta tags for other purposes than SEO. My issue was to have a number of articles shown in exactly the order I wanted them to be listed. I also wanted that certain articles shoule be shown as subarticles … ![]() | |
Hi experts, my time value display is the word "true" on Label2.caption and not a real time. On Label1.caption the is the exact date. Only the time got wrong. below is my code: Private Sub Timer2_Timer() Label1.Caption = Date Label2.Caption = time End sub I have a timer1 the dispaly … | |
![]() | Hi, I been learning **OOP** slowly. I'm stuck how to resolved an **function query() on a non object issue**. My files are very basic: This is my **db.php** file: <?php global $db; class foo_mysqli extends mysqli { public function __construct($host, $user, $pass, $db) { parent::__construct($host, $user, $pass, $db); if (mysqli_connect_error()) … |
i want to add multiple texboxes on button click and store that value in database can any one help me out how to do this i know some javascrip and jquery neede but don't know how to store the all texbox value to database because for multiple texboxes in database … | |
Hi all Hope you can help! I have an XML file which contains several bits of information for each software entry (snippet seen below). <software> <software_entry name="Adobe Acrobat X Standard" path="Applications\Acrobat\Acrobat X Standard\AcroStan.msi" type="msi" switches="/qn ALLUSERS=1" /> <software_entry name="Adobe Acrobat X Professional" path="Applications\Acrobat\Acrobat X Pro\AcroPro.msi" type="msi" switches="/qn ALLUSERS=1" /> </software> … | |
If I have two objects (Intern and Manager) derived from an Employee class, could I create a function that would return a pointer to a new instance of one of the two derived objects by passing the type to the function. So, could I do something like this (I know … | |
$query = "SELECT * FROM customers WHERE firstname = '$firstname', lastname = '$lastname'"; $result = mysql_query($query); i keep getting Error: Query was empty | |
//case for database search case "Search": if(isset($firstname, $lastname)){ mysql_select_db("webuser23", $dbc); $result = "SELECT * FROM customers WHERE firstname='.$firstname.' "; mysql_query($dbc); echo "<table border='1'>"; echo "<tr>"; echo "<th>Firstname</th>"; echo "<th>Lastname</th>"; echo "<th>Phone</th>"; echo "<th>Address</th>"; echo "<th>City</th>"; echo "<th>State</th>"; echo "<th>Zip</th>"; echo "</tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . … | |
here is the code, var images2 = ['images/index_19.jpg', 'images/details_10.jpg', 'images/index_23.jpg']; $(document).ready(function() { setInterval(forwardImage2, 4000); //This function will find the key for the current Image function currentImageKey2() { i = jQuery.inArray($('#slideshow2').attr('src'), images2); return i; } //This function will move the slideshow forward one function forwardImage2() { currentImageKey2(); if (i < images2.length … | |
here is the code, var images2 = ['images/index_19.jpg', 'images/details_10.jpg', 'images/index_23.jpg']; $(document).ready(function() { setInterval(forwardImage2, 4000); //This function will find the key for the current Image function currentImageKey2() { i = jQuery.inArray($('#slideshow2').attr('src'), images2); return i; } //This function will move the slideshow forward one function forwardImage2() { currentImageKey2(); if (i < images2.length … ![]() | |
hi everybody, im doing a project in vb 2010 its a simple "guess the number between 1 and 30" i have it all finished working properly , my only remaining issue is, if i enter a character or letter into the combobox, it crashes the system. i got a piece … | |
Hi I have a problem with my SQL UPDATE It says here: Syntax error in UPDATE statement. Here's my code: Private Sub btnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEdit.Click Private Sub btnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEdit.Click Dim sqlupdate As String sqlupdate = … | |
I am not the greatest on javascript and was hoping someone could give me some help. I am trying to pass to the parent form action field from the child. The line I have in the child now which is not working is: `window.parent.document.forms['stopForm'].action = "command_stop_15264.cgi";` I've tried a few … | |
If I have a model called Admin_user which extends CI_Model, how do I name the file in which this model class is so that codeigniter can load it? I named the file admin_user.php and placed it in application/models directory but Codeigniter does not load the class when I try loading … | |
-->>Hi, here is athing I managed to write Codes that Creates a Folder for a User when Registered... -->>The Folder takes User's registered name with some additional files inside it,works very fine... -->>The code I used is this one: MkDir GetAppPath() & "SPGPAC - File User Files\" & UCase(txtUserName.Text) MkDir … | |
I am working on a project where admin can book an building unit for a customer.And i require that a month lie between two dates of booking or not for calendar.I am using query for this is "SELECT * FROM rt_booking WHERE rt_unit_id='".$urow['rt_unit_id']."' AND rt_start_date<=".$date11." AND rt_end_date<=".$date22; Here rt_start_date(unixtimestamp) and … | |
Hello guys, Please take a look at my code, coz I don't know why I cant login here in my log in form.By the way, my database is working, so the problem is in the code. looking forward for your help guys, here is my code: <?php session_start(); include("config.php"); ?> … | |
Hi, I want to know how to send keys like ALT, Shift, Ctrl, Entre, etc. with the My.Computer.SendKeys() function. Also, I need a code with which i can send 2 keys together like Ctrl+C If its not possible with SendKeys(), please suggest some other function to acheive this. [I use … | |
How to delete duplicate record in sql serer plz suggest me............ thanks | |
Hi Sir, Kimangel is here again! Gud Day! How would I code that a cursor will automatically return to its place where it was encountered error? unless resolved. Below is my code; Private Sub txtContact_No1_LostFocus() On Error Resume Next If txtContact_No1.Text = "" Then MsgBox "Fill up the field to … | |
Hi how can i pass if my connection is false? i have a code here Dim con As New OleDbConnection Dim dt As New DataTable Dim ds As New DataSet con.ConnectionString = ("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & ConMonthEndLocation & "';Extended Properties=Excel 8.0;") con.Open() dt.Clear() ds.Tables.Add(dt) With Form_Month_End_Report .ListView_LOB.Columns.Clear() .ListView_LOB.Items.Clear() Dim da … | |
Hi, having a problem implementing partial page postbacks using a scriptmanager and an update panel. Here is a test page using a web form to call a user control. I am hitting the else statement in the code behind that confirms I do not have a functioning partial post back. … | |
I have to be missing something obvious here right? I ran test on all the variables and everything looked like it was correct when i > val the loop kept running. Any suggestions? Thanks x = raw_input(":") def whileloop(val): i = 0 numbers = [] while i < val: print … | |
Anyone out there have a working system of PHP and xdebug on Windows 8 using an installed version of Apache server? For me this means you installed all the packages and this is not a WAMP system. If you do, would you let me know the file names of the: … ![]() | |
i tried reverse engineering option in Mysql workbend 5.1, 1stly i imprted DB's script and then created it, Its done :) but when i try to create ERD via Reverse Engineering option , then it doesn't show relations ships btw tbl, it only brings table to front ! why ? … ![]() | |
Someone please give me some idea to solve this question ? Should I use Interface or I can use only Heritage ? Write classes implementing the management industrial tools: * Each one tools can be started, stopped or be stopped urgently. * There are three families of tools : 1. … | |
Hi people. I'm trying to run whoami using execv but I'm getting a problem: --- CHILD PROCESS --- child PID: 3146 parent PID: 3145 execv: Permission denied child exit code: 1 I already have certified myself that I have run permission for whoami for all users. I don't know what … | |
I am trying to add the ability to add an href to specific pictures in my slideshow, however I am not sure how to create an href in javascript or jquery, I have searched all over, however my web searching skills are weak and I have thus far been unable … | |
Hello, When I run the project using my localhost, everything works fie. But when I use an other server I get this error: No suitable driver found for jbdc:mysql:// public void populateList2() { Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "abn859"); conProps.setProperty("password", "100011399"); try { con = … | |
Good Morning. I am writing a little function to record the visits to a landing page, and want to do it in such a way as to not count multiple visits from the same IP address within a 24 hour period. What I was wondering is if there is a … | |
Hey, I'm working on a simple command line program to download some files. I already made a Win Forms version, but wanted to do a command line version. The Win Forms app works exactly as it should, but I'm having some trouble with the command line app. Heres my code: … | |
Hi, In the following program i have not defined <stdlib.h> header and included rand() function and it works without this header. How? #include <stdio.h> #include <stdbool.h> #include <time.h> #define NUM_SUITS 4 #define NUM_RANKS 13 int main(void) { bool in_hand[NUM_SUITS][NUM_RANKS] = {false}; int num_cards, rank, suit; const char rank_code[] = {'2', … | |
Hello, I am writing a simple forum and I keep getting the error 'Undefined Variable'. But this makes no sense has I have assinged a a string to the variable in question . Its part of a while loop and has a .(period) before the equals. If I remove that … | |
this gives syntax error, why would it give ? `[index, each for index,each in enumerate(names)]` | |
Hello, I am tring to test with this software: http://www.stat.fsu.edu/pub/diehard/ I make Hex file of random integers with 8 digis per integer, 10 integers per line as in documentaion. Then run ASC2BIN.EXE but it creates just empty file. My file looks like this: 493489c07f3ba47470011f170b9f5960668068d25732147d44af029b0bfed2a6682b77cb76a5d488 this is one line, but can … | |
Hi guys, I've been cracking on with this project for a few days now and had lots of useful pointers to help along the way. I've now hit a little snag where I think I have written the correct update Statement but It seems to error at the last point. … | |
I am in a fundamentals class for C++ and having a bit of an issue. I know the problem is not fully understanding. I am not looking for the answer but to get direction to better understand what I am doing wrong and how to fix it. The Problem: Write … | |
I keep getting this error message: Parse error: syntax error, unexpected 'Your' (T_STRING) in C:\xampp\htdocs\Salary.php on line 8. <?php $h=$_GET['hours']; $r=$_GET['rate']; $p=$_GET['pay']; if ($h <= 40){ $submit = ("$p = $h * $r) echo "Your Weekly Salary Is: $p; } if ($h > 40){ $submit = ("$p = ($h *$r) … | |
Hi All, I am new to C#. Please need your help. I have a set of 3 buttons in form1 out of which when I click on any, that particular value of the button gets assigned to text field in form2. I have used below code: Form1:- private void Btn1_Click(object … | |
I would like to save and load a listview and all of its contents. But, also, I want to make a combobox with all of the configurations of the listview. So you could add another one via a settings menu, or load one using the combobox. Many thanks in advance. | |
I have made following code.The first statement gives me output 21. That is i know that default capacity is 16 + 5 for Hello But i don't get, why it gives 44 as output as i am increasing capacity from 21 to 30 by using ensurecapacity() method. StringBuffer sb = … | |
Hi, I'm trying to run my script but is not working for some reason the functions is not working at all. Anyone willing to help me to find out the error. Thank you. #!/bin/bash DATE=$(date +"%m_%d_%Y"); turn_off_services() { echo -e "\n## Remove unnecessary services" ## Turn off unnecessary services ## … | |
hello, I think it is just a silly thing but i can't work out why im only getting one number back from this..? def MakeList(n): # Returns a list of n random numbers List = [] for i in range(0, n): List.append(random.randint(0,1000)) return (List) MakeList(10) I get: [546] But if … | |
Hi, I'm transferring data from one table to another and one of the fields is an email field. I would like to check if the emailfield is empty or otherwise faulty and skip that record if it is. This is how it looks at the moment but it's problamatic since … | |
Hi, I'm trying to sort a DataTable using the following code: [CODE=VB.NET]Private Function sortDataTable(ByVal dTable As DataTable) As DataTable Dim dView As New DataView(dTable) dView.Sort = "Field ASC" Return dTable End Function[/CODE] But it doesn't work. What is wrong? How can I sort the DataTable? Thanks, Ana | |
I have two text files containing multiple lines of text, I need to compare both files and write the missing lines in the file two. i will use a while loop for check every 60 seconds, i an idea but just work 1 pass File one: 2012-10-04 01:03:11,50EF87C3.req,192.168.1.1,12312312312,OK -- HUAWEI … | |
I'm a student. My code is skipping over my printString function when I run it. Pardon the poor spacing. #include <stdio.h> #include <string.h> #include <stdlib.h> char * reverseString(char * original); void printString(char * string); int main() { char a[] = "this is a test \0"; char * b = a; … | |
Hi all. I'm developing a quiz application consisting of multiple choice questions. Here are the tables that I've come up with. CREATE TABLE IF NOT EXISTS `student` ( `s_id` int(10) NOT NULL, `s_name` varchar(30) NOT NULL, `s_email` varchar(30) NOT NULL, PRIMARY KEY (`s_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE IF … | |
I wrote this code that checks whether a number is prime or not. It returns 1 if the number is prime or 0 otherwise. U just look at the bottom of the code... [CODE]#include<stdio.h> #include<conio.h> #include<assert.h> int is_prime(int n); void main(void) { int n=0; clrscr(); printf("An integer "); scanf("%d",&n); assert(n … | |
Hi Guys, The reason for my message was to do with UPDATE and DELETE Statements from within C# when contacting a MDB file. I currently have the INSERT INTO SQL Query working perfectly The Code I used for this is below: else if (radioButton2.Checked == true) { //Creates new versions … |
The End.