11,093 Topics

Member Avatar for
Member Avatar for vssp

Hi Friends I am working to draw a graph . I need to get the data monthly, for example JAN total hours FEB total hours , How to write the query get the total values per month? Advance thanks for your reply.

Member Avatar for Shanti C
0
122
Member Avatar for justted

Hello, I am trying to show a list of information using a FETCH and WHERE statements. This is my code: [code] $buds = mysql_query("SELECT * FROM buds2 WHERE bud_me = '$userid' AND confirmed= '1'"); $x = 1; while ($array = mysql_fetch_array($buds)) { $buddy = fetch("SELECT display_name,username FROM members2 WHERE id …

Member Avatar for Atli
0
88
Member Avatar for Akilah712

Hi, I am very new to SQL and I am working on a query. I am to use a flat select statement I am to : Print all S#s such that the indicated supplier supplies a London project and also supplies a Paris project There are 3 tables, one with …

Member Avatar for dickersonka
0
111
Member Avatar for mousey182

Hey Guys, I have the following code, which averages the scores in a select statement and works no problem. [code] SELECT AVG(score) as 'avg' FROM (SELECT d_key_id, frequency, weighting,(frequency*weighting) as 'score' FROM users_to_keywords WHERE s_user_id=$user_id AND d_key_id = $score_key ORDER BY score DESC)a [/code] However, as there are some duplicated …

Member Avatar for mousey182
0
88
Member Avatar for naidop

hi, I am trying to replace certain strings in my mysql database. I have addresses such as this: 60 W 23rd St, New York 10010 Btwn 5th & 6th Ave I would like to get rid off all the words starting from New York including the comma before the word …

Member Avatar for varmadba
0
81
Member Avatar for bdicasa

Hi guys, I'm new to ASP.NET and MySQL. I've worked with Microsoft Access for a while (6 months or so) so I have an understanding on how databases work. However, now I am trying to create a website with ASP.NET 3.5 and MySQL. So far I've been able to get …

Member Avatar for rainny
-1
188
Member Avatar for CoolGamer48

Does mysql_real_escape_string() escape HTML character entities? I want people on my comment board to be able to post quotes in their comments, but they get escaped as raw ascii, so I run them through htmlentities() first, but it doesn't help. I only get it to work when I remove mysql_real_escape_string(), …

Member Avatar for Atli
0
162
Member Avatar for khsater

Hey. I'm trying to make an activation script for a website, but for some reason my sql query is giving me errors. [CODE] $sql = 'UPDATE user SET active = 1 WHERE (password = "$_GET['hash']") AND (timestamp = ".base64_decode($_GET['stamp'].")'; $result = mysql_query ($sql) or die (mysql_error()); if( mysql_num_rows($result)==1 ) { …

Member Avatar for MVied
0
69
Member Avatar for DeboJackson

Hello everyone. I know this is a C++ forum not MySQL forum but I need help with the C++ library for MySQL I am hoping that there will be people here who are knowledgeable about MySQL++. My problem is that I can't get the g++ compile to link to the …

Member Avatar for Normand Bedard
0
220
Member Avatar for Stefano Mtangoo

Hi all, Im very New to My SQL and have done alot of googling and simple studies. I have two Questions: 1. Where can I start with Complete no knowledge of MySQL and databases in general (though i know a little) 2. I have tried to play with MySQL for …

Member Avatar for Shanti C
0
79
Member Avatar for W3Killer

[CODE] CREATE TABLE `categ` ( `id` int(10) unsigned NOT NULL auto_increment, `categ` varchar(32) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ; INSERT INTO `categ` (`id`, `categ`) VALUES (1, 'General'), (2, 'Politica'), (3, 'Sport'), (4, 'International'), (5, 'Cultura'), (6, 'Hitech'), (7, 'Showbizz');[/CODE] [CODE] CREATE TABLE `ziare` …

Member Avatar for W3Killer
0
131
Member Avatar for deepak@

I will explain... I downloaded `"mysql-5.0.45-win-src.tar.gz"` from Mysql download area.I tried to built Mysql.sln inside that,but i am getting errors(about 58) like Error 149 fatal error LNK1181: cannot open input file '..\zlib\release\zlib.lib' mysql_upgrade Error 319 error PRJ0019: A tool returned an error code from "Performing Custom Build Step" mysqld Error …

Member Avatar for stephen84s
0
139
Member Avatar for designingamy

Hello all! I have a few questions about putting images into the database. I have chosen to put the images on my server and then the location will be put in the database, instead of doing the blog thing. However, I am having a hard time trying to figure out …

Member Avatar for dickersonka
0
112
Member Avatar for AvayaMAN

In MySQL 5.1, I am using a table that has 3 integer fields a,b and c. I need a create a trigger that will UPDATE field c with the results of field a-b. ANy help would be appreciated.

Member Avatar for Shanti C
0
43
Member Avatar for bdicasa

Hello all, I have a fairly good grasp on how to design a database (took a couple courses on it) but I'm not sure how to set up a database for use with a website. My plan is to develop the website with ASP.NET and MySQL. The website will have …

Member Avatar for dickersonka
0
116
Member Avatar for anuj_sharma

hey guys, i am using XAMPP and i want to take the back up of my database. Please give some suggestions

Member Avatar for peter_budo
0
86
Member Avatar for Ancient Dragon

Has anyone been able to compile the lib files using Microsoft Visual C++ 2008 Express compiler? I downloaded and installed MySQL 5.0 Server yesterday, then downloaded MySQL++ source. Attempted to compile and got a bunch of link errors. I used dumpbin.exe to get a list of all the symbols in …

Member Avatar for mitrmkar
0
167
Member Avatar for anuj_sharma

hey guys, i have made a database which has two fields namely username and password. Now when the user enters the password, i want that the password should be stored in encrypted form in the database so that the admin cannot see the password. Please give some suggestions.

Member Avatar for varmadba
0
77
Member Avatar for anuj_sharma

Can someone please give me a brief overview of MySQL. It's advantages,disadvantages,security and other features. Thanks.

Member Avatar for Shanti C
0
118
Member Avatar for designingamy

Hello all! I have been told for many reasons that when a user wants to end their account on a website, that you shouldn't delete the user out of the database for awhile. So if I need their information to be off the Internet, but still remain in the database, …

Member Avatar for designingamy
0
109
Member Avatar for sam bland

Hi i was making this code so I could connect to my server and run a database: [code=php]<?php mysql_connect("localhost","root", "samiscool"); mysql_select_db("test_db"); $sql = mysql_query("SELECT * FROM test_table"); while ($rows = mysql_fetch_assoc($sq1)) ( var_dump ($rows) ) ?>[/code] and this eror message came up "supplied argument is not a valid MySQL result …

Member Avatar for sam bland
0
78
Member Avatar for sweet cLassy

i changed my password in mysql using the mysql server instance config wizard from the start menu. once i changed it, the access is denied to view all the database in phpMyAdmin.. #1045 - Access denied for user 'root'@'localhost' (using password: NO) - this error appeared in the screen. i …

Member Avatar for dickersonka
0
71
Member Avatar for mailtosridar

hai i am sridar in my project there is a database it is created by msaccess and at present i am using mysql database by vb.net coding by clicking the button i want to download a datas from msaccess database to my sql please any one help me my mail …

0
51
Member Avatar for justted

Hello, I was wondering if anyone can help me sort this problem! I basically have a member profile feature on my site that has an update page! Members can update information such as their date of birth, location etc! I currently have a text box in which members have to …

Member Avatar for enim213
0
105
Member Avatar for fortiz147

hi please help me, i want to know how to enable smtp in php mysql, i have the code right so no worries there. please help

Member Avatar for fortiz147
0
55
Member Avatar for marvinkamote14

hello guys, just want to ask some newbie questions. i have a table named "students" in my database, the field names are "Lastname", "Firstname" and "Highschool". i want to sort my query by highschool field. i want to show that query results in table form. how can i sort by …

Member Avatar for Shanti C
0
306
Member Avatar for sweet cLassy

i'm using Macromedia Dreamweaver MX, and i fail to connect with mySQL database . any tips ?? pls help .. :confused:

Member Avatar for peter_budo
0
88
Member Avatar for kwesiaryee

I am trying to display image files stored in my mysql. It displays alright as a direct php echo, but when i put it in an <img.../> src attribute... I get a cross. The following is the code snippet; [CODE] ... $query = mysql_query("SELECT pid, imgdata FROM pix WHERE pid='2'"); …

Member Avatar for NormandP
0
102
Member Avatar for kevinritt

How do I upload an Excel or CSV file into a MySQL database. I 'Googled' it and tried a couple things but nothing worked. Appreciate any help

Member Avatar for sweet cLassy
0
74
Member Avatar for knrakesh

Hello friends, i copied a table from other database and using in other database, when iam using the same table in other database the primary key in the table is just auto increamenting from the past table only. i want it to start from 0 Rakesh

Member Avatar for langsor
0
90
Member Avatar for ExplainThat

A print-ready MySQL quick reference is available <URL SNIPPED>. Registration (free) is required for access to a more legible version. An extended version of this card that covers the MySQL SQL dialect in detail is in the works. Enjoy!

Member Avatar for stephen84s
0
55
Member Avatar for deepak@

I will explain... I downloaded `mysql-5.0.45-win-src.tar.gz` from Mysql download area.I tried to built Mysql.sln inside that,but i am getting errors(about 58) like Error 149 fatal error LNK1181: cannot open input file '..\zlib\release\zlib.lib' mysql_upgrade Error 319 error PRJ0019: A tool returned an error code from "Performing Custom Build Step" mysqld Error …

Member Avatar for ArkM
0
121
Member Avatar for CostaRica

Hi. I have been trying really hard to make a CRUD app with a wx.grid.PyGridTableBase-based wx.grid.Grid that takes its data from a resultproxy of the SQL Expression Language of SQLAlchemy from a MySQL database table, but the problem I have is that I have to convert the resultProxy to a …

Member Avatar for sneekula
0
88
Member Avatar for osjak

Hi All, I am very new to Perl and trying to practice a bit. I am rebuilding my website and decided to take on a project - convert an Simple Machine Forum database into vBulletin database. At the present stage my script successfully converts users and topics, but I am …

Member Avatar for katharnakh
0
101
Member Avatar for kevinpeterson22

Hi well wishes to all i have written the code for to create to-do list in java swings with mysql i hereby attached my code to you for reference Req: Taskno(set as primary key), Task Name, Task GroupName, TaskPriority(high, low and medium which is mentioned in combo box), task status( …

Member Avatar for jaka.ramdani
-1
140
Member Avatar for Balanta

Hi all, I am trying to extract some records from a SQL Server 2005 database and insert into a MySQL database. The extract from SQL Server must also be captured as an XML file. I want to call this from a button. Unfortunately, I have not been able to do …

0
59
Member Avatar for udaydesai

Hello Friends, i return a database connectivity like this. [code=php] function db_conn() { $mysqli = new mysqli("localhost", "root", "", "test"); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } return $mysqli; } [/code] with this upto now i used to insert records successfully. but now i have an problem with …

Member Avatar for udaydesai
0
343
Member Avatar for dharam_05

Hi i want need to fetch sec highest marks from given tables. my database design is like: My database design: Table 1: Student table (PK)Stud_id, Stud_name Table 2: Subject table (pk)Sub_id, Sub_name, Marks. Table 3: Stud_Sub table Stud_id, Sub_id And i come up with the query: Select Student.stud_id, Student.stud_name Max( …

Member Avatar for dharam_05
0
370
Member Avatar for forwardlookguy

Hello, I have a problem that someone can hopefully help me with. I have a page where Make, Year and Model menus are dynamically created via mysql. Upon selection, the user presses submit and those values are fed to the database where the production numbers for say, a 1958 Plymouth …

0
105
Member Avatar for veledrom

Hi, Stored proc code below works fine in MySQL command prompt. It returns John because it is in table. However, i can't return or read the Out parametter in PHP. I mean i cant retrieve John. I did ask this in PHP forum but no answer. [code] CREATE PROCEDURE `findname`(IN …

Member Avatar for varmadba
0
83
Member Avatar for kwesiaryee

Hi there, I desperately need help with this. I need to develop a code to upload an image to mysql database. The upload have to be done with a foreign key attached to the upload. eg.(image_id, image(blob), fileType, date_entered and your_id(foreign key). please can any one help me with this, …

Member Avatar for petr.pavel
0
103
Member Avatar for CzechRock3

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/fellowes/public_html/createaccount.php on line 108 [CODE]include("conf.inc.php"); $tbl_name="tbl_courses"; $sql=mysql_query("SELECT * FROM $tbl_name WHERE crs_semister=1 AND crs_period='A'") or die(mysql_error()); $result=mysql_num_rows($sql);[/CODE] [CODE] <?php while($rows=mysql_fetch_array($result)) { ?> <option><?php echo $rows['crs_code']; ?>//Line 108</option> <?php } ?>[/CODE]

Member Avatar for ryan_vietnow
0
190
Member Avatar for retareed

I need to display a dropdown list of hospitals several times (10) in one form and I'm not sure of the best way to go about this. I can get the first list to display, but the subsequent lists just show "Select". This is my code: [code]<td width=\"200\"><select name=\"hospital1\"> <option …

Member Avatar for langsor
0
324
Member Avatar for mycsmi

I have one question! How can i check form fields against the database and then display an error! Please help me for example go to mycsmi.org There is a form on the index.php page .... a user submits the info to the database but what if there is a duplicate …

Member Avatar for mycsmi
0
193
Member Avatar for broady

I have a little knowledge of SQL, however very very little of php, I am wanting to display information from a database in a small area of a php page, I have already created the area on the page etc and "hard coded" the info in there for now, however …

Member Avatar for somedude3488
0
89
Member Avatar for kwesiaryee

:S Hi I need help urgently.. I want to insert data into two mysql tables using just one form. Tried to do it through the following code below, but keep on getting horible errors when i submit. The essence is that the client has to fill all data without moving …

Member Avatar for R0bb0b
0
96
Member Avatar for kevinpeterson22

Hi I am new to java and j2ee Can anyone send me the code for to-do list creation in java swings and mysql DB i want to create a to-do list in jsp . and i feel that if i modify the code from java swings to jsp then i …

Member Avatar for javaAddict
-2
305
Member Avatar for kohuke

This is the error what i get when i try to run my project: [CODE]Local Exception Stack: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/varad1 Error Code: 0 at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305) at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102) at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource (DatasourceLogin.java:184) at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource (DatabaseSessionImpl.java:582) …

Member Avatar for kohuke
0
757
Member Avatar for EmpireZ

How do I add a database for my game, it has a bank and members add money but after certain amount (2 bil) it stops or freezes and you can't add anymore as in it says money deposited, it subtracts the amount, but after that bank wont show no more …

0
56
Member Avatar for Hannahlv

Hi, everyone! I want to make the user authentication for mysql database. I write the code and test it, but can't run. Let's I talk about my project idea first. I have a server, a client and a mysql database. Before entering the server, the user must login first, After …

Member Avatar for Salem
0
193

The End.