199,114 Archived Topics
Remove Filter ![]() | |
I'm not very familiar with Javascript or Regex but I built a script that is working well with one small flaw in the Regex part. What I want to do is to find commas following alpa-numeric characters (actually almost anything other than a double quote) and then replace the comma … | |
<? $connect = mysql_connect("localhost", "adamf", "adamf123") or die ("Wrong password, jerk."); mysql_select_db ("adamf"); $insert="INSERT INTO product (product_id, product_name, product_type, product_brand, product_year) VALUES (1, 'Cyber', 1, 1, 2001), (2, 'Motive', 8, 1, 2005), (3, 'Oracle', 8, 2, 2005)"; $results = mysql_query($insert) or die(mysql_error()); $type="INSERT INTO producttype (producttype_id, producttype_label) VALUES (1, 'Heads'), … | |
Hi, I'm trying to do a list of news, but i only want today's news and news from the past what i don't want is future news(tomorrow,...). So i'm doing if the date <=$curdate, but future news appear anyway, can you help me, plz? <?php $curdate = date("d/m/Y"); $row_noticias = … ![]() | |
This is the error i get form my error_log on my server online PHP Warning: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /home1/zxx/public_html/admin/userindex/sms/sms.php on line 127 i looked in all of the code but can't find why that error. Here is the code, it's an sms app writing in php. … | |
Hi, Maybe is an easy question. I have a function that return a String, and I would like to use this String like a name of another function, but I can't because obviously is a String :(. For example, the function foo return a String foo2, and foo2 is a … | |
hi, I am having doubt in peter_budo 's Mvc tutorial, in datbase design he has separate table for group mapping, Even we can add seperate feild (like group) in user table itself to acheive the same result, Is there any advantage in seperate that, Pls some one guide me. Sorry … | |
| |
I want to make 6 Timer right on top of each other. With a label to the left of it. Each label has a different time to start the countdown on. Like label 1 7 min. Label 2 6 min and so on. How do you do this in VB … | |
I am unable to find line , oval ,rectangle etc Drawing tools in Visual Studio 2010 ......... I am also unable to find VisualBasic.PowerPack ........... Plz tell how to get them Thnks :) | |
i am working on a web project which upload file on server, i am using uploadify for this. I have used this with wamp where it worked like a charm but when i tried in the server side it failed.. any suggestions. I have done many tricks but none of … | |
Hi, im using Visual Basic 2010, I don't have any sort of database i.e. from Access or anything im literally using VB and thats it. I want to create an automated reference number for my system so every time the user press's 'Create New Log' the form opens and it … | |
**Hello i am a noob when it comes to java so sorry if its obvious but the code below is giving me a error when i try to compile it, the error is: Exception in thread "main" java.lang.Error: Unresolved compilation problem: at goodcalculator.main(goodcalculator.java:127). Can anyone help me? ** CODE: import … | |
Hi All, I am kind of find it difficult to build my (xslt 1) template: I have this following XML input: <Ticket> <ItineraryItem> <Flight ArrivalDateTime="2012-08-31T09:40:00" DepartureDateTime="2012-08-31T06:00:00" DirectionInd="Outbound"> <DepartureAirport LocationCode="BRN"/> <ArrivalAirport LocationCode="ZTH"/> <OperatingAirline Code="2L" FlightNumber="5320"/> </Flight> </ItineraryItem> <ItineraryItem> <Flight ArrivalDateTime="2012-09-14T11:00:00" DepartureDateTime="2012-09-14T10:15:00" DirectionInd="Inbound"> <DepartureAirport LocationCode="ZTH"/> <ArrivalAirport LocationCode="CFU"/> <OperatingAirline Code="2L" FlightNumber="5321"/> </Flight> </ItineraryItem> … | |
Good morning, So i was finally able to solve all the errors in my game, but now i can't seem to get a Motion Detector to work using Aforge, so far i've got: private void device_NewFrame(object sender, AForge.Video.NewFrameEventArgs eventArgs) { tmpImage = eventArgs.Frame.Clone(Rec, PixelFormat.Format24bppRgb); Bitmap image = (Bitmap)tmpImage.Clone(); //BitmapData bitmapData … | |
I am trying to write code for a calculator in a way it appears in GUI.What i mean here is ,i want to display a zero and then replace it with a value (typed) there after perform operations.I am using Visual Studio 2010 ,i want my output to appear as … | |
HI, how can i integrate these both code mentioned below so that the output displayed on the black edit box must be as:(2+2)/2+2*3=8 here is the code of BODMAS calculation: #include <stdio.h> int calc(char *exp_str){ FILE *fp; int ret; fp=fopen("calc_aux.c","w"); fprintf(fp, "int main(){ return %s; }", exp_str); fclose(fp); system("gcc calc_aux.c … | |
hye guys..here is the problem..how to use the item in the listview in order to retrieve data from database? i have code that display 4 digit in every line in listview item.. Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click Dim xmtBuf() As Byte = {&HAA, … | |
Hi With the code snippet given in the following post http://www.daniweb.com/web-development/php/threads/126361/csv-file-uploading-into-a-mysql-database I am able to import csv data into phpmyadmin. However, I am getting an error if csv data contains a text with apostrophe (‘) symbol (e.g. my book’s name is abc). Appriciate any suggestions to resolve this error. Thank … | |
Below is en2.py code- # The Python Imaging Library # $Id$ # this demo script creates four windows containing an image and a slider. # drag the slider to modify the image. # from Tkinter import * from PIL import Image, ImageTk, ImageEnhance import sys # enhancer widget class Enhance(Frame): … | |
function memory($user,$ayat){ sqlconnection(); $user = mysql_real_escape_string($user); $ayat = mysql_real_escape_string($ayat); if((checkmemory($user,$ayat)==0) || !(checkmemory($user,$ayat)==0)){ $sql="INSERT INTO `mark` ( `user_id` , `ayat` ) VALUES ( '".$user."', '".$ayat."' )"; mysql_query($sql); return $sql; } } function checkmemory($user,$ayat){ sqlconnection(); $user = mysql_real_escape_string($user); $ayat = mysql_real_escape_string($ayat); $sqlmemory="SELECT * FROM `mark` WHERE `user_id` = '".$user."' AND `ayat` =".$ayat; … | |
<?php session_start(); include "conn.php"; if (isset($_POST['submit']) && $_POST['billno']!='' ) { $bill = $_POST['billno']; $query = mysql_query("SELECT bill_no, tag_no FROM tbl_cargo_details WHERE bill_no='$bill' or tag_no ='$bill'") or die(mysql_error()); while ($row = mysql_fetch_assoc($query)) { if($bill == $row['bill_no'] || $bill == $row['tag_no']) { header("location:true.php?bill=$bill"); } else { header("location:false.php?bill=$bill"); } } else { ?> … | |
hi all, I am new to this forum Right now I am working on XML & XSLT Below is my Input XMl file **<?xml version="1.0" encoding="UTF-8"?> <Employer> <Employees> <EmployeesDetails>van ind 26%</EmployeesDetails> </Employees> <Employees> <EmployeesDetails>van ind</EmployeesDetails> </Employees> </Employer>** and I need output as <?xml version="1.0" encoding="UTF-8"?> <Employer> <Employees> <Names>van</Names> <Location>ind</Location> <Weather>26</Weather> … | |
"The method overriding is an example of runtime polymorphism. You can have a method in subclass overrides the method in its super classes with the same name and signature. Java virtual machine determines the proper method to call at the runtime, not at the compile time." Why not at compile … | |
Hello, I am trying to create a jquery banner. I found lots of tutorials and managed to create a banner but I still need some help. I have 4 divs: First div slides from top Then Second div fades in Then Third div fades in and changes it's width Then … | |
Hi, I'm good at PHP and want to learn **Python 3**. Do you know any online pdf book for me to download so I can start? I'm asking to those who can say "this is good one". I found myself googling but I have no idea if they are good … | |
Hi, I was reading about Python and spotted "it has high signal-to-noise ratio" bit. In general, what does it really mean? I read some stuff about it but no particular explanation for programming. Tahnsk | |
I would like to keep on checking a JTextField until the field equals ten digits. When the JTextField equals ten digits then an event will happen. I want to do this without a button. Here is what i tried to do: JTextField get = new JTextField(10); String a; public className(String … | |
Hi, I want to implament a simple tcp client and server. but I want my clien do I need to init the socket before every time I'm sending message to the server ? This is my client: class TCPClient { public static void main(String argv[]) throws Exception { String sentence … | |
Hi, I am totally new to XSL and this is my first time coding it with it. I have HTML and CSS experience and trying to figure out how to integrate it all together for a SharePoint view. Basically I have an XML file with about 3 records, each having … | |
################################# # Learning to make a game # ################################# # An attempt to make a game # Each room will be described by a class, whose base class will be Room # The user will be prompted to enter a number, each number will be assigned with a Room in … | |
hi ! Actually the operation is as follows.when the user clicks the"search" button in t he jsp, the datas from mysql is sent to jsp page.If the user likes to print the datas,he has to click "print" button.Then the datas in the jsp page has to be sent to the … | |
Hi people, need some help... I have a dropdown list with some options in it.. I have 2 buttons Select all and Reset. What I want is, on click of Select All button, all the options inside it should get selected. and Reset button should clear the entire form. This … | |
i am using WebBroswer object in Vs2010 but it doesnt display some of scripts like flowplayer. i tried in internet explorer its ok. i think i cant use all features came with ie How can i update webbrowser to solve this problem? i cant see it in vb. cant work … | |
Hi all, I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked fine (I was using a practice small .txt). However, i … | |
need help for this question Calculate the biggest of four integers. The user inputs four integers. Your program will determine the biggest of these four numbers and print out an appropriate message, specifying this biggest value. You are required to implement and use the following functions for this task: int … | |
First, i'm new to C and trying to teach it to myself so be gentle. All i'm trying to do is malloc a block of memory so that i can store a few strings. These strings are to be pointed at by an array of pointers so that as i … | |
Hi! How can I insert commas in numbers. For example, number is 123456789 , now I want that after inserting commas it should become 12,34,56,789.... how can i do this....... | |
<script type="text/javascript"> function moveover() { document.getElementById('image').width="1080"; document.getElementById('image').height="600"; } function moveback() { document.getElementById('image').width="180"; document.getElementById('image').height="100"; } </script> </head> <body> <img id=image src=images/PCF10.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> <br> <body> <img id=image src=images/PCF94.jpg onmouseover="moveover()" onmouseout="moveback()" width="180" height="100" /> <br /> </body> </html> I have a page with multiple small images posted … | |
Hi. I am having trouble with this script: <?php $host="mysql.host.com"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="DB_NAME"; // Database name $tbl_name="table"; // Table name $myusername = $_SESSION['myusername']; // Session on login page, in a variable. // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or … ![]() | |
hi i want to create table in php but i dont know how many row are in database. but i want to show 2 records per row. please help me how can i do that ?? here is my code but it wasnt work as i desired it create i … | |
Hi, I need help to make a perl program work. I have two files - file 1 and file 2. The contents of File2 is to be searched with the contents of file 1. File2: 2 tab-delimited columns XM:1120002 complex-solution MM:0999111 blue-green solution UX:1020022 activity unknown, (simple/complex?) File1:(one column of … | |
Because of [C++ code snippets not dealing with multiple +-](http://www.daniweb.com/posts/jump/1829367) in sequence (or even negative number) in expressions, I post this, as it is so much easier for me than C/C++. EDIT: Fixed signs together with '(' issues and '+' at beginning removing without lstrip, removed separate now unused '(' … | |
is it possible to declare variable at runtime, name of variable are stored in database. we have it declare it and initialise it at runtime.. how ??????????? | |
![]() | hello i have website http://www.w3db.org Problem :: problem is that it cant load or load after 2 ot 3 minutes which is quite strange i do not know where is the problem script is OK so please somebody check it that the problem is with me or others user face … ![]() |
This is bit funny code as you can first read from this excellent response: http://www.daniweb.com/software-development/python/threads/427341/custom-types-in-a-simple-way#post1828718 why should you not use it, even it maybe feels useful. Anyway I got curious to see how type signature could be implemented, even using it would generally just be stupid way of slowing down … | |
Hi. I wanted to make a page that I can update a table in a database. But for some reason, I get this error: ***Warning: mysql_query() [function.mysql-query]: Access denied for user 'a1092592'@'localhost' (using password: NO) in /home/a1092592/public_html/folder/file.php on line 10*** and this error: ***Warning: mysql_query() [function.mysql-query]: A link to the … | |
Hi Basically I've got the following code. - What it does is it takes two input the itemName and the sectionName - checks if the input is equal to any item in the list (test database) and increment it - prints the modified list It does what it needs to … | |
![]() | Hi, At the moment I'm learning Jquery and I'm using youtube for my tutorials which is great. I've downloaded the Jquery toolkit and I'm just playing with it. Just wondering what are the best resources to use? What do you use? |
class Dog { public void bark() { System.out.println("Dog bark"); } } class Hound extends Dog { public void bark() { System.out.println("Hound bark"); } public void sniff() { System.out.println("Hound sniff"); } } public class CastingMethodCall { public static void main(String r[]) { ((Dog)new Hound()).bark(); //((Dog)new Hound()).sniff(); } } On executing above, … | |
Hello, It has been awhile since I have posted here since I have been horribly without computer for awhile now. Anyways, I was wondering if anybody knew where to find, or could make up, a lorem ipsum in C++. What I mean is that Lorem Ipsum makes a good filler … |
The End.