10,940 Topics

Member Avatar for
Member Avatar for qk00001

i.e char fullname[80]; char * prt; [U]in MySQL we can write : select * from table1 where name='fullname'[/U] How to write in C++? while(fullname!=NULL) { executeQuery"select * from table1 where name='"+fullname+"'" }//----I tried this, but dont work. need your help please。。。。。

0
62
Member Avatar for Squidge

Hello evryone. I am new to PHP and MySQL. I have created an admin area for where selected people can add, delete, and edit data from a database. I have managed to get the add, and delete to work, but I am stuck with the editing. Can you help? [CODE]<!DOCTYPE …

Member Avatar for diafol
0
145
Member Avatar for changeco

I tweaked a search script I found months ago, and am now getting back around to fixing it... I need some help debugging it... [code] if(isset($_GET['search'])) { $search = $_GET['search']; } $search = trim($search); $search = preg_replace('/\s+/', ' ', $search); $keywords = explode(" ", $search); $keywords = array_diff($keywords, array("")); if …

Member Avatar for diafol
0
100
Member Avatar for qk00001

Hi guys, I am working on progamm about reading some words in MySQL then display the results during run time command.But my code keep giving some MySQL errors about I can't read it. Am I making some mistakes with sequence? I am pretty new in C++. [code=cplusplus] //---------------here is code …

Member Avatar for qk00001
0
164
Member Avatar for mpierre

Hello Every one, im in a need for some help i have the following issue : ---[B] Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\Hosting\00000\html\index.php on line 10[/B] this is what the code looks like Can some one please assist me on what is wrong …

Member Avatar for venkat0904
0
90
Member Avatar for aruti

Please tell me can we insert data in multiple table with single query in mysql. For example i have two table with name `table1` and `table2` and fields in `table1` are 'id' auto incremented and primary key, second field is 'name' data type varchar of 25 and another table `table2` …

Member Avatar for rch1231
0
2K
Member Avatar for kostasxx

hello dear friends i installed visual studio ( full installation) then i got xampp from their site i have mysql and apache running i downloaded the connector from mysql site and i created a simple project to check if i can connect to mysql or not i have made this …

Member Avatar for geek53
0
132
Member Avatar for johnroach1985

Hi there! I new learner in Python. And just couldn't get threading. I wrote this script. [CODE] import sys import MySQLdb if len(sys.argv)!=3: """the program name, mac and ip makes three""" """stop program and send error""" sys.exit("Must provide mac and ip!") mac = sys.argv[1] ip = sys.argv[2] print 'Connected to …

Member Avatar for woooee
0
286
Member Avatar for sjgriffiths

hello I am inserting records into a MYSQL table via a loop Records are being inserted, but every now and then the program bombs out with the below message There is nothing wrong with the query line though (If i restart the job, this record will be inserted without issue) …

Member Avatar for woooee
0
176
Member Avatar for dmkc

Hi guys, Ok, so I'm using the code below to display the fields from a table on my webpage. I used some code to paginate the results as there's a lot of records, however I can't seem to get it working properly, and I'm going crazy trying to work out …

Member Avatar for kireol
0
115
Member Avatar for blue-iguana

Hello, When trying to use mysqldump, I got this error message: [QUOTE]mysqldump: Got error: 2003: Can't connect to MySQL server on 'localhost' (10061) when trying to connect[/QUOTE] According to the MySQL Documentation Library, error 2003 means that my network connection has been refused and that I should check that there …

Member Avatar for nileshgr
0
100
Member Avatar for foxwizzy

is it posible to increase a mysql table default value to increase by a number based on another number E.X. i have a default value set to 10 how do i increase it by 1 every 3 minult also if i add a new number "3"(in a box or text …

Member Avatar for diafol
0
94
Member Avatar for sam023

i have a data in mysql in this format.. 1,2,3,4,5,6... can i split and show this data in this format in mysql?? 1 2 3 4 5 6 thanks ijn advance

Member Avatar for diafol
0
231
Member Avatar for asmikwen

Hello, Being on Access, I would like to transfer some data onto Mysql. But I cannot. Is there an easy way to transfer data onto Mysql? I am thinking that it should not be that hard to do. Thanks for your help.

Member Avatar for MeSampath
0
91
Member Avatar for kool.net

Hiiiii, In my code i have to open mysql connection on all forms, but i dnt wnt to do that, actually i want at the time of log in I connect to datav=base & open connection then use this open connection on all forms and when i logout then close …

Member Avatar for MeSampath
0
169
Member Avatar for blessanm

I have database with a table called orders. The structure is below Index, OrderIndex, OrderNo 111, 1 112 , 1 113 , 1 114 , 2 115 , 3 116 , 3 I want a query that will loop thorugh the database and make the result Index, OrderIndex, OrderNo 111, …

Member Avatar for urtrivedi
0
123
Member Avatar for jas2010

I Want transfer updated data between 2 Database MySQL that One of them is in the server Host and other is over localhost . Now What should I do? I'm waiting for your answer

Member Avatar for jas2010
0
83
Member Avatar for stacy220481

I'm running as mysql root user on my system. I can select load_file('/etc/passwd'); no problem But when I try to select load_file('/var/lib/mysql/mysql'); I get NULL as a result why? this file is good, I can cat it as root and view the mysql user data, why cant mysql load_file it? …

0
36
Member Avatar for asmikwen

Hello to all, We are currently using Excel and are thinking of changing. Now we would like to use Mysql. Only problem is that all our customer addresses and other information are on Excel. Can you help us with this? Thanks for your feedback. (Of course title is bad... )

Member Avatar for bgkalbente
0
89
Member Avatar for benkyma

I've got a database which is getting quite large and slow to query. I only really need the last month of entries for most situations so I'm looking to create structure-copies of two of my tables and then regularly move data from the 'live' two into the 'archive' two if …

Member Avatar for benkyma
0
75
Member Avatar for Longoro

Can someone help me with this please? I’m playing with a stat tracker, and with the code snippets below I’m trying to get the total result for each page stored in the database. The problem is that I get this warning when I run the script: [B]Warning: mysql_result() expects parameter …

Member Avatar for antonkejr
0
427
Member Avatar for vishalonne

Hi Every body Once again I'm in problem and want some help from you all I have written a small code to search a particular value in MySql database and then to display the record based on that value - Like to search a Employee code in database and then …

Member Avatar for venkat0904
0
145
Member Avatar for Pranesh_Ashrit

Dear Users, I have used SHA1 encryption method to encrypt password and stored in login table as a blob field. Now, to authenticate the password, i need to decrypt it. I am not able to decrypt. Please help me to decrypt password

Member Avatar for nav33n
0
90
Member Avatar for jrosh

Can I store a photograph in a mysql table. ? What type it takes...how it is done. Do i have to store only the path??? please explain me.

Member Avatar for MeSampath
0
85
Member Avatar for bigjoke

Hello and bonjour everyone I need a bit of hand-holding (pseudo-code) on how to go about accomplishing this task and will appreciate it if you could find 1 or 2 minutes to guide me through. Basically, i need to extract some information from database (different columns) and display it in …

Member Avatar for nav33n
0
122
Member Avatar for sleign

I've been working at this most of the day, trying to figure out how I can accomplish this sort of form, even looking through countless sites for anything vaguely close to what I'm trying to do for help on logic or syntax behind this (to little to no avail, of …

Member Avatar for sleign
0
129
Member Avatar for jrosh

I am designing a database system to store salary information. It includes different tables (salary,personal info , ect) I want to make it use for different companies. Also i want each set of data to be separated. (by company wise). (i.e. i dnt want all the employee names of every …

Member Avatar for Gilette
0
134
Member Avatar for dmkc

hi everyone, I've written some code that displays information from a database. However, I added more code that would display a "no records found" message, should the area be blank. The code displays the records perfectly, however if there are no records returned it doesn't show the "no records found" …

Member Avatar for dmkc
0
102
Member Avatar for studioceasar

Hi all, I have a column in my table that auto increments as a counter as new records are added. I would like to renumber the entire column and have it start at 6000. Can anyone suggest an sql line that would allow me to acomplish this? Thanks in advance …

Member Avatar for sonikadugar
0
83
Member Avatar for SKANK!!!!!

i made a registration script but i dont know how to make the whole website and all its directories protected please help.

Member Avatar for pauliam
0
140

The End.