199,114 Archived Topics
Remove Filter ![]() | |
POSTBACK.php [CODE=PHP] <?php $q=$_GET['q']; $words=explode(' ',$q); //$words2 = "'%".implode("%','%",$words)."%'"; //echo $words2; $con = mysql_connect('localhost', 'root', '')or die('Could not connect: ' . mysql_error()); mysql_select_db("ajax_demo", $con)or die('cannot connect'); //$sql = 'SELECT * FROM `ajax_demo_table` WHERE `FirstName` LIKE CONVERT(_utf8 '%'.$q.'%' USING latin1) COLLATE latin1_swedish_ci OR `LastName` LIKE CONVERT(_utf8 '%'.$q.'%' USING latin1) COLLATE latin1_swedish_ci'; … | |
I'm Editing little PHP and SQL script so if the code in the db is [CODE]`crystals` int(11) NOT NULL default '0',[/CODE] and in the php script is [CODE]$_POST['crystals']=(int) $_POST['crystals'];[/CODE] and other code in db is [CODE] `class` enum('Knight','Archer') NOT NULL default 'Knight',[/CODE] What the php script will be (in the … | |
G'd evening, So I built this script and figured that I had it all figured out, styled it with css only to find out something is messed up. The php script is set so that it retrieves a value from a mySQL database and if it is 0 the site … | |
Hi everyone, I am new to java enterprise edition and used Eclipse previously. I need to integrate apache maven with my eclipse. I saw a few tutorials like the one [url]http://www.eclipse.org/m2e/[/url] , and i tried to follow it but i could find the other option in the import dialogue. I … | |
Hello Everyone! So I have an assignment to create a program to read in data from text file. I managed to get that part, but I'm having trouble with two areas. 1. Having the names read from the display read into a 10x3 format (10 rows, 3 colums/seats.) Expected output: … | |
Hi I'm trying to practise with this form, which will eventually be part of a much larger form. What I'm trying to do is to validate my reg_agent field in which a user can choose whether they are an agent or private. The validation is supposed to say that when … | |
Hello I want to convert the date formate from Wed Jun 15 2011 00:00:00 GMT 0530 (India Standard Time) to 06/06/2011 I have done something like this [CODE] $chkdt = "Wed Jun 15 2011 00:00:00 GMT 0530 (India Standard Time)"; $month = substr($chkdt,4,3); if($month == 'Jan') $month = '01'; else … | |
I have almost given up but thought I would post here in a last attempt. I am pretty new to jquery and I am having an issue. I need to use the same carousel with three different json queries on the same page. I tried putting them in divs with … | |
Its kind of complicated.well iam trying to create a search form,where the output will be like : Found (a number) results: Name: Surname: [View Button1] Name: Surname: [View Button2] and so on,depented on the results of query. i am calling a fun on pageload.in that i create the buttons,and i … | |
hello all, i m trying to edit the values in database through textbox in ASP. first i retrived the values from database and set those values to the value property of textboxes on the form so that user can see the old values. now, i want him to enter new … | |
I have the following code. It's a memcmp implementation for the Renesas R5F Embedded Chip family and I'm trying to test it. [code] #include <stdio.h> #include <time.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <assert.h> typedef char SInt8; typedef unsigned char UInt8; SInt8 one_net_memcmp(const void *vp1, const void … | |
Hi this is my first post so hello everybody, I've recently been exploring the uses of linq to use for comparisons,but really need a bit of a kickstart. Say for instance i have a listview populated with numbered names and I want to put up a message box if certain … ![]() | |
I am working with existing VB.NET code for a Windows Application that uses StreamWriter and Serializer to output an XML document of transaction data. Code below. [COLOR="Green"] [CODE]Private TransactionFile As ProjectSchema.TransactionFile Dim Serializer As New Xml.Serialization.XmlSerializer(GetType(ProjectSchema.TransactionFile)) Dim Writer As TextWriter Dim FilePath As String Writer = New StreamWriter(FilePath) Serializer.Serialize(Writer, TransactionFile) … | |
hi i have two div with same class name.these two div are generated dynamically by javascript from different server, so i dont have access to css file. i want hide one div when page load. so how to acess the div. regards rajan | |
Ok i want freedomain to test on so i dont care if its domainname.blabla.com i just need some good domain to test on , i was testing on freehostia but they dont allow crons i want some one have php,sql (at least one free server allowed)and crons aaaaan no ads … | |
Hallo i am Working with Stringbuilder Array,i want to convert byte in from a Byte array and save it in a Stringbuilder Array,that is my code,but is not runing like i want,i have that failure :object reference was not specified on an object instance. [CODE]private string Byte_To_Hex_Ar(Byte[] Buff) { StringBuilder[] … | |
I have a Plain Text matrix file (called q.txt): [CODE]1 0 0 0 2 0 0 1 1 0 0 1 1 1 1[/CODE] which I would like to read into a matrix, which is a vector containing vectors (which contain doubles). My current codes yields the error "newReader.cpp:22: error: … | |
[code] #include <stdio.h> #if 1 //! Set Pin string const char* const ONCLI_SET_PIN_CMD_STR = "set pin"; #endif const char* const SINGLE_APP_STRINGS[] = { ONCLI_SET_PIN_CMD_STR }; int main() { printf("%s\n", SINGLE_APP_STRINGS[0]); getchar(); // pause return 0; } [/code] Line 12 Error message... [code=text] 12|error: initializer element is not constant 12|error: (near … | |
hey all, I'm developing a small application,and i what i need to do is when i rename the exe file into some thing,(ex: abc.exe to aaa.exe) it has to show a message box showing the new name.(aaa). help needed ASAP. thanks in advance, drax | |
So for my website I'm trying to have a page where the user can type in literally anything and the page would output a list of stock symbols that are close to the input. Anything unrealistic (e.g. 3548 random letters) would obviously not work but if the user were to … | |
Hello all, I've been using Chrome to develop a database website for a school project and I've been having a couple of issues. The first being refreshing. When I logout or login I have to refresh the page for it to pick it up. Or if sometimes I'm logged in … | |
I recently moved a script I created for Google Maps over from my development site and I changed the information in the mysqli line and now I'm recieving an error mesage -- any idea what's going on here? Here's the error message: [CODE]Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user … ![]() | |
hello ! i have a program id like to code , and it uses from 3 upto 15 members of a structure , id like to ask , [COLOR="red"][I]1,[/I][/COLOR] is there a way to not define all members of a structure at the start but add members as needed ? … | |
I'm having problems with my query below. Basically I need to calculate the feet between two gps coordinates. Basically once I can get this formula completed instead of manually entering the data I'll use a temp table and then select the top 2 rows and then delete these and keep … | |
I am creating a database in MS Access 2010, I have 6 tables. My question do all 6 tables need to have either a direct relationship (primary key to primary key) or Primary Key to Foreign Key with each other? | |
i don't know if it possible or not if i want to like this : Actually, i have one form "Product" In Form, i have two comboboxs , first name cboProduct that have Row Source "CPU;RAM" and second name cboSeries. what i want to do is when i choose a … | |
Hi, I am working with a multiple forms in vb.net. When i open forms it shows that many icons in the taskbar how can i stop and showing it as a single icon. I ve tried using child parent concept but when i click button to activate it dont get … | |
Hey fellas , the issue is im developing an application in VB for a client and there are 4 computers in the network , and in one computer the database will be filled which ll be accessible by other 3 computers , its like client server application , any ideas … | |
WELL GUYS,I HAVE A NAVIGATION IN MY WEBSITE WHICH IS SIMPLY A <UL> LIST. ALMOST EVERYTHING WORKS WELL,EXCEPT WHEN I WANT TO SHOW THE CURRENT PAGE WHICH IS BEING VIEWED,...I HAVE SUCCESSFULLY IMPEMENTED THE FUNCTIONALITY IN PHP WHICH CAN DETECTED THE PAGE BEING VIEWED BUT THE PROBLEM IS CSS WHERE … ![]() | |
hello, I'm currently writing a program to write a website easier, but i don't know, how output " to a file? thank you very much for help | |
i just wanted to make a small bot using a web browser to post comments to wordpress blogs ! well i don't know the reason but it seems that only the last url is executed ! when i load a list and start the posting the loop seems to jump … | |
okay so i have Form2 which has a db table named Car using LINQ with four attributes(Make, Model, Year, Price). Now Form1 has 4 textboxs using ReadLines to acquire the make,model,year,price). How do i get them to insert into the table on Form2. thanks in advance for the help. | |
Urg, I will so happy when I'm finished this project, I feel like I'm spamming you guys every couple of days. So I have a couple date values in my tables. And I'm trying to do some calculations with them. Which are working fine. But I'm retuning the number of … | |
How can I set the value of a textbox to the user entered value(it's a number). [ICODE]<input type = "text" name = "somename" value = "">[/ICODE] User enters 3 in the textbox The code should transform to [ICODE]<input type = "text" name = "somename" value = "3">[/ICODE] | |
I'm looking to select almost duplicate rows in a table. I initially just sorted all the rows by name and picked out the duplicates manually (took a while), but I'm wondering if there's a "real" way to go about doing this. Problem is that the duplicate names can slightly differ. … | |
In fact I had a logfile, that I decoded, by reading his contents byte after byte and save it in a Byte Array. And there after I converted my array of byte in hexadecimal value, and Save it in a stringbuilder. But now my problem is the following, how to … | |
Hi, i have a login section made through layers and tables within dreamweaver. At the same place i have a login button (i have coded it and it works all right) but at the moment i have an issue, because when i sign in the login section which says enter … | |
HI all, I have a small problem regarding my php project. There is a page called [B]open_account.php[/B]. It contains all customer data such as NIC, full_name, date of birth, gender etc. When a user fills all the fields in that form it redirects to another page called [B]new_account.php[/B]. There are … | |
Hey first of all, im sorry if the title is a little misleading Im creating a private program for myself and some friends, and i want to make a login form, but i was wondering what would be the best way to host the usernames and passwords? I used to … | |
hello... i am developing one realestate website. in there the properties will syndicate in to another web sites like yahoo-realestate,zillow. so how can i syndicate my properties in these sites. thanks. | |
Hello im makin a program in C tht will query my database when i use the following code i get an error "segmentation fault" [code] //retreive configuration items from the mysql database mysql_query(conn, "SELECT callcost FROM imds.testset Where callcost BeTWEEN 900 and 1000;"); results = mysql_store_result(conn);[/code] even when i use … | |
hello i need one of 2 things. either to make a table which changes its background color to black when the mouse enters the table and when the mouse is out, the background color should be transparent again OR i want a table with permanent transparent color like this site … | |
Hello everyone Can anyone help me with codes to calculate sum of numbers in the diagonal of a 2 dimensional matrix array. Please help. (a b c d e f g h i j j k l m n o p q r s) | |
Is there a more efficient way to do this? [CODE] vector<int> myvec; vector<int>::iterator it; /////// // Count # of iterations int i = 0; while ( it != myvec.end() ) { ++it; ++i; } [/CODE] Just seems expensive to me. | |
Here's the problem. I'm designing a worksheet for very young children and what they need to do is type a number into a cell and then click a button to run the macro. However, in order to click this button they first must either press ENTER or TAB or click … | |
Hello, I'm building a generic [B]Class Library[/B] that I will use it in all my projects. However, I want to know how can I access Resource file from a Class Library ? I will appreciate if you can send me a code sample! Thank you for your help Paul | |
hello everybody, I am having problem with logout of a Users Account in Firefox because whenever the user presses the Back browser button, the personal page was displayed, showing their personal details. Is there a way to logout successfully in firefox and chrome i;e when user click back button after … | |
Hi, i'm implement chatting in c# using Remoting in Window form. But i want to apply this concept on an Asp.net web site Like a Facebook chatting application but i have no idea how to implement to do this. please send me suggestion or code. or can we use third … ![]() | |
Hello take a look at my code then I'll tell you what error I get... [CODE]var Top = document.getElementById("topmargin").value; var Left = document.getElementById("leftmargin").value; var Background_Color = document.getElementById("backgroundcolor").value; var Border_Width = document.getElementById("borderwidth").value; var Border_Type = document.getElementById("bordertype").value; var Border_Color = document.getElementById("bordercolor").value; var num = id+1; var new_id = "a"+num; document.getElementById(new_id).style.top = Top; … | |
[code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FileApp { class Program { static void Main(string[] args) { Console.WriteLine("***** Simple IO with the File Type ******"); string[] myTasks = { "asdf", "qwerty", "awdx", "1234" }; // Write out all data to file on C drive. File.WriteAllLines(@"C:\tasks.txt", … |
The End.