10,946 Topics

Member Avatar for
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
172
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
125
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
87
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
38
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
91
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
431
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
153
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
93
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
88
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
125
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
138
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
136
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
104
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
85
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
141
Member Avatar for bandibas

[code] private void SubmitActionPerformed(java.awt.event.ActionEvent evt) { try { Statement s = con.createStatement(); Statement s1 = con.createStatement(); Statement s2 = con.createStatement(); Statement s3 = con.createStatement(); ResultSet rs = s.executeQuery("select MAX(Guest_ID) from Guests"); rs.next(); int maxGuestID = rs.getInt(1) + 1; //s1.execute("insert into Guests values(" + maxGuestID + ",'" + txtUserName.getText() + "',' …

Member Avatar for baki100
0
65
Member Avatar for HITMANOF44th

ok i can post the script if you guys want its kinda on the large side mostly i just need to bounce some ideas off you i made a event calendar and now i am making a script to email users of the current months events i have this working …

Member Avatar for HITMANOF44th
0
93
Member Avatar for bigjoke

Hi everyone, I am tasked to alter the front-end of the database and have been given the whole wad of PHP files and also an .SQL file. My question is, Why i cant see any changes to the database front-end when i change the .sql file. (I tried creating a …

Member Avatar for pritaeas
0
142
Member Avatar for tinuke

Hi there,am tinuke a software developer. I use ASP well,but i just started learning PHP/MYSQL. Is there a way to create a hyperlink data type like we have in MS ACCESS? I need to upoad an address to the database as a link.Pls help :sad:

Member Avatar for MeSampath
0
328
Member Avatar for nccsbim071

Hi everybody I have been developing windows client application in .net framework 3.5. The system is supposed to copy the remote mysqldb and restore my local mysqldb with all the schema and data withing remote schema to my local mysqldb with the same database name. Well i found a solution …

1
115
Member Avatar for studioceasar

Hello all, Is there an easy way to edit the order of my colums in a table? Presently, my colums are: cust_num, name, email, location, bday_day, bday_month, bday_year, state I would like to list the "location" column after "state". Can anyone offer a simple suggestion. Thanks in advance. C-

Member Avatar for nav33n
0
160
Member Avatar for CRAFTYARTS

when I try to create a new mail account in my mail broadcast control center I get this message: SQL error: swd_act : ERROR: 1146 - Table 'craftyartsalesmailcatcher.swd_account' doesn't existContent-Type: text/html; charset=ISO-8859-1 SQL error: INSERT INTO swd_account (`isact` , `name`) VALUES ('1' , 'swd_act') : ERROR: 1146 - Table 'craftyartsalesmailcatcher.swd_account' …

Member Avatar for pritaeas
0
49
Member Avatar for sonikadugar

IN MySQl Stored Procedure how to pass Parameters with parameter name and values i.e. [code] DELIMITER // CREATE PROCEDURE GetOffice (countryName VARCHAR(255), countryId int(11)) BEGIN SELECT city, phone FROM offices WHERE country = countryName AND country_id = countryId; END // DELIMITER ; CALL GetOffice("India",1); [/code] This works fine but i …

Member Avatar for baki100
0
160
Member Avatar for venkat0904

Hi all, 1) Users can belong to a specific group wherein when the group moderator publishes an event, its visible to all the members of group. 2) A normal user can publish event in his own calendar, to make that event visible to all users in group, the group moderator …

Member Avatar for Gilette
0
858
Member Avatar for VAMPResearch

I am trying to create a page that will look up values from a table to fill in drop down boxes, i have this working. Now when the user selects options and presses a button i would like these values to get written to a table. This code is my …

Member Avatar for venkat0904
0
137
Member Avatar for J3vr0N

Hi, I have a question regarding a SQL query. I am a complete noob, so please do not make fun of me. Here is a schema that I created: [code] JOURNALS(j_num, j_name, j_subject_area, chief_editor_r_ssn) ISSUES(j_num, i_num, i_date, i_num_pages) RESEARCHERS(r_ssn, r_name, r_address, r_phone, r_institution) ARTICLES(art_num, art_title, art_area_topic, art_abstract, j_num_submitted,date_submitted, j_num_published, i_num_published) …

Member Avatar for J3vr0N
0
207
Member Avatar for asmikwen

Hi, I am trying to transfer some data from a Mysql database onto a Microsoft SQL database. I would need your help on how to operate this migration as I am new to MSSQL. I have been looking on Google but there are not a lot of pages on that. …

Member Avatar for bgkalbente
0
287
Member Avatar for mundetas

Can someone please help:(. I have a database with a field Date. I made the datatype to Date. But when I code the date in php I use the date() function to get the current date it donesn't want to insert in the database. Please help. For example my code. …

Member Avatar for network18
0
98
Member Avatar for StePu

Hey, This is my first post so go easy :) I’m in the middle of designing a website users can download files from. I’ve searched the web and found the perfect example of what I’m trying to achieve which is something clear and simple ([url]http://www.getfreefonts.info/free_fonts.a.html[/url]) From the category’s at the …

Member Avatar for StePu
0
130
Member Avatar for Nuw2php

hi, I have created 2 tables called "User_Info" & "Auth_Users". In "User_Info" table "ID" is the primary key. In "Auth_Users" table "ID" is the foreign key. I have created a "User Form" through which I am trying to capture the data. Since the primary key is an auto_increment value I …

Member Avatar for Nuw2php
0
114
Member Avatar for jck6288

create a query that will display total no of employee and no of employee that hired in 1995,96,97 from employee table.. my employee table have field like emp_id name hire_date.

Member Avatar for nav33n
-2
98
Member Avatar for eman neercs

Running php/mysql site where the db is constantly being changed with new products added, categories and prices changed all through php scipts. Just before it publishes the results to a static html file, there is a (my)sql file with product data that has been held "off table" so it cannot …

Member Avatar for chrishea
0
112
Member Avatar for spekulanta

Hi there, here what my problem is - I'm trying to get data from MySQL database put in on global array and make calculation. The data in the MySQL table is 3000 rows and 2 columns. The type of data is double and date Here is the code: [CODE] #include …

Member Avatar for spekulanta
0
126
Member Avatar for oyeubugme26

Below is the table and the data related to it .How to do we go ahead and create partitioning for this table .Below table had like 50 million of records. [code] CREATE TABLE l_play ( Pl_id int(11) not null auto increment E_Id` int(11) NOT NULL, F_Id` int(11) DEFAULT NULL, P_Id` …

0
48
Member Avatar for virtualmisc

Hi What is the best way to store tags in mysql database? Please help me with this. Thanks

0
67
Member Avatar for localtechguy

HI! I am trying to find a way to plug some data that is spit out of a mysql query into another mysql query. example. [CODE] $zip1 = $_POST[zip1]; "SELECT * FROM zipcodedb WHERE ZipCode >= '". $zip1 ."'" [/CODE] lets say i get that query to spit out these …

Member Avatar for localtechguy
0
104
Member Avatar for onsir

Hi, how to create trigger in mysql 5 with java. i have code like this, but still error " java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$ CREATE TRIGGER `a1`.`xData` …

Member Avatar for Ezzaral
0
354
Member Avatar for ym_chaitu

[CODE]<?php include("access.php"); mysql_select_db($dbname); $user="ym_chaitu"; //$e=mysql_query("select email from userlogin where username='$user'"); //$email=mysql_query($e,0); $query = mysql_query("SELECT username,password FROM userlogin WHERE username = '$user'") or die(mysql_error()); $data = mysql_result($query); echo $data; ?>[/CODE] this is my code,,when i am using it out, it is giving me an error Warning: Wrong parameter count for mysql_result() …

Member Avatar for nav33n
0
90
Member Avatar for tomf

I keep getting some weird errors in this script: errors: [code] [B]Warning[/B]: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in [B]/home/www/ikhelper.freehostia.com/globinc/loginfunc.php[/B] on line [B]86[/B] [B]Warning[/B]: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in [B]/home/www/ikhelper.freehostia.com/globinc/loginfunc.php[/B] on line [B]87[/B] [B]Warning[/B]: mysql_query(): supplied argument is not a …

Member Avatar for shundeep
0
240
Member Avatar for ireverent

I am a Student working on a project useing mysql. I am trying to set up a view and keep getting an error that there is duplicate columns. Is there anyway other then specifiying each table.culumn to stop the view from trying to show both of the columns. If it …

Member Avatar for urtrivedi
0
85
Member Avatar for wild_angel

I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help …

Member Avatar for wild_angel
0
110
Member Avatar for balam

Hi need help with this code. i get a the error msg Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result but dont know were to change. my connection is fine???? [code] <?php include ("connect.php"); // max display per page $per_page = 5; // get start variable $start = …

Member Avatar for cwarn23
-1
135
Member Avatar for julzk

I have an SQL Query question that I'd like help with if possible :) I have two tables "tbl_jobs" and "tbl_jobs_done" Here are the fields for both tables: tbl_jobs -jobs_id -jobs_description -jobs_datestart -jobs_dateend -jobs_datetype -jobs_user -jobs_updateuser tbl_jobs_done -jobs_done_id -jobs_id -jobs_date -jobs_comment -jobs_datedone -jobs_timedone -jobs_user How this works is, I have …

Member Avatar for Atli
0
168
Member Avatar for mr_scooby

I have a table that holds a users id and a cd number, what I would like is to be able to only increment the cd number based the users id not just incrementing it every time a new cd is created table [code] CREATE TABLE IF NOT EXISTS `cdcreation` …

Member Avatar for mr_scooby
0
90
Member Avatar for josh06

Hello everyone. Basically, I am making a small site for my friends where we can create users and edit profiles and comment eachother. Like a scaled down social network site. The problem is, I really can't get my head around the whole idea of relational databases. What I have is …

Member Avatar for josh06
0
126
Member Avatar for zodehala

[B][COLOR="DarkRed"]this is post table [/COLOR][/B] [IMG]http://www.divran.com/script/upload/images/post.jpg[/IMG] [B][COLOR="DarkRed"]this is thread table [/COLOR][/B] [IMG]http://www.divran.com/script/upload/images/thread.jpg[/IMG] lie you see firstpostid in thread table = postid in post table and threadid's i wanna update title column in thread table as title in post table but how ? i create following query for trying but i …

0
57
Member Avatar for dmkc

Hi everyone, I've been a reader for a long time, now I've joined up, as I'm fairly stumped on this one!! I'm currently teaching myself mysql and php at work, and have a problem. I am using php to produce a listing of restaurants on a page, and I would …

Member Avatar for dmkc
1
735
Member Avatar for lifeworks

Hi Been trying to write a query... I have a table of documents, and a table which registers everytime someone downloads a copy of the document. I want to create a report, in one query, which pulls out each document and counts the views... I thought it woudnt be too …

Member Avatar for urtrivedi
0
68
Member Avatar for dupinoz

hi there, im sorry if this has been posted before i have searched through the threads and have not found what i am looking for, however it is entirely possible that i have missed it, i have spent the whole day looking at search results and basically i need some …

Member Avatar for langsor
0
151

The End.