10,940 Topics

Member Avatar for
Member Avatar for tech291083

Hi, I was wondering if it is possible to connect a C++ program to a MySQL database on Linux Fedroa Core 5 os. It would be great if I could create a program in C++ that allows me to create a completely new database in MySQL, edit, modify, delete and …

Member Avatar for mikejonesey
-1
328
Member Avatar for rouse

I have be struggling to turn the below while loop into a foreach loop with no result, so I am asking for help here on how to do this. [code] $query = "Select * from TIME_TABLE Where Extract(month from DATE_FIELD ) = DATE_FORMAT(NOW(), '%c') and Extract(day from DATE_FIELD ) = …

Member Avatar for peter_budo
0
108
Member Avatar for kent01981

VC++ access MySQL query problem Hi guys, Could you help me out with ------------ string str1 res=stmt->executeQuery("select * from test2 where english='str1'"); ------------ anyone can tell me where is wrong with this query code?below is the error msg I got: 1>.\temp6.cpp(48) : error C2146: syntax error : missing ')' before …

Member Avatar for kent01981
0
292
Member Avatar for jyotidagia

could someone point out the error in the followin php/mysql code [code=php]$strSearchVal = $_GET['q']; //database connection.. //... $strSQL = "SELECT DISTINCT area FROM hospital where area like '%'+ $strSearchVal; "; $result = mysql_query($strSQL); while ($arrThisRow = mysql_fetch_array($result )) { echo '<li>' . $arrThisRow['area'] . '</li>';[/code]

Member Avatar for pritaeas
0
72
Member Avatar for Folaju

hi i keep getting this error on my php page Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 871 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/internal/public_html/includes/xpage_admin.php on line 877 the code below works perfectly on my test …

Member Avatar for Folaju
0
201
Member Avatar for sam023

This is my Stored Procedure DELIMITER $$ [code=mysql] DROP PROCEDURE IF EXISTS `call`.`sp_login`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_login`(userid varchar(50),pass varchar(50),out chk int(11),out user_alias varchar(50),out user_tariff varchar(50),out c_credit decimal(15,5),out r_reseller varchar(10),out r_level varchar(10),out c_tariff char(2)) BEGIN select id into chk from cc_reseller where useralias =userid and uipass=pass and level!=0 and activated!='0'; if(chk!="") …

Member Avatar for network18
0
277
Member Avatar for Aamit

Hi, I want to create script like in facebook. When we log into facebook, go into any friend's profile Their gift button , show gifts with pagination. when click on image and ok button it save into database. Any sample demo script ? How to create script like this? Please …

Member Avatar for Froger93
0
114
Member Avatar for rickya100

Hi everyone, I sat down to create a what I thought was simple SQL query but once I got thinking about it I realised I'm not sure where to start. The objective is to return two resorts from a Resorts table for each country code in that table. Countries table …

Member Avatar for baki100
1
126
Member Avatar for rouse

I am receiving MySQL error 1265 when I try to insert records into a table and after googling this error I am no closer to understanding the problem. Here is the error message that is returned: Warning Code : 1265 Data truncated for column 'DATE_FIELD' at row 1 Here is …

Member Avatar for rouse
0
651
Member Avatar for sumit007

Hi I m making web page and for that i am using mysql and php. In tha i enter data and that is to be stored in mysql database. I m having a problem in that. I want add, delete, previous, next, cancel and update button in that. But can't …

Member Avatar for sumit007
0
1K
Member Avatar for jrosh

I installed WAMP5 1.7.0 When I try to access localhost & phpmyadmin, it asks for a username and password. I'm pretty sure that i didn't configured any. I installed the same thing in another computer, and it worked. what could be the problem?

Member Avatar for pritaeas
0
140
Member Avatar for rouse

I am cycling through a return set and trying to capture the result in a concatenated string. I have verified that I get a valid return value and also verified the quantity in the return value. This works [code] while ( $i < $num) { $bone .= "<item> <record_num>" . …

Member Avatar for rouse
0
61
Member Avatar for phper

Hi! Does anyone know of a good tutorial for installing Ruby with Php, Apache and MySQL. I have tried InstantRails but i want to install it without using the instant option! Thanks.

Member Avatar for tiger86
0
308
Member Avatar for Dhruv Shah

As I am new to MySQL, I dont know how to connect my jsp page to the MySQL Database. So please help me by giving some code on how to connect. I have downloaded driver for Java named as Connector/J. MySQL version is 5.0. In this line con = DriverManager.getConnection("jdbc:mysql://localhost/JSP_MYSQL?user=root&password=admin"); …

Member Avatar for masijade
0
2K
Member Avatar for romilc

how do i get started with MySQL and get the command prompt like MySQL monitor to write the command for creating a database in MySQL?

Member Avatar for romilc
0
91
Member Avatar for EddieC

At the risk of coming off like TV's "[url=http://www.amctv.com/originals/madmen/]Mad Men[/url]," Amazon Web Services really are New and Improved. The company today announced the addition of [url=http://aws.amazon.com/rds/]Amazon Relational Database Service[/url], giving users of Amazon's Elastic Compute Cloud (EC2) access to a virtual instance of MySQL. That's the New part. Improvements include …

1
346
Member Avatar for shaneog

Hi there, I have 2 columns in my mysql table, (1) Status (2) Type. For the status column I would like to have one row with a STATUS of 1 (live). And all the rest to have a STATUS of 0 (hidden). Is there a way to change a row …

Member Avatar for shaneog
0
82
Member Avatar for garcon1986

Hello everyone, I've searched a lot of time today for a solution, but not succeed! I want to insert value from the radio button and checkbox into mysql database. Here is my code: insert.php [CODE] <div id="form"> <form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" />&nbsp;&nbsp; <label>Date: </label><input type="text" …

Member Avatar for garcon1986
0
2K
Member Avatar for masocha
Member Avatar for fazepage

I have an assignment that states >Research on Microsoft SQL Server, Oracle, and MySQL. Briefly describe each database application. What are their inherent benefits or limitations? Assume a pro or con approach: Based on your research, which would be the most reasonable approach to this solution and why> All i …

Member Avatar for deas1997
0
166
Member Avatar for MuffinKun

1. What types of data does the DBMS support? 2. Does it support NULLS? 3. What about Primary and Foreign Keys? 4.Can you specify an index that is unique and then have the system enforce that? 5. Does the DBMS support views? 6. What type of data dictionary does the …

Member Avatar for pritaeas
-3
104
Member Avatar for sylstain

Anyone has experince with MySQL Dump Timer tool ? I just download it from here : [URL="http://www.softwarevenue.com/download/mysql-dump-timer/"]http://www.softwarevenue.com/download/mysql-dump-timer/[/URL] Is it good ? I have not install it yet, still looking for more information about this tool This is the sort description from the site : [I]MySQL Backup / MySQL Dump and …

Member Avatar for dreamlove
0
38
Member Avatar for itsense

Hi everyone Don't know if someone can help me with my problem. I'm trying to get a total from a loop variable name($cost), I'm running a for loop, thats getting values from mysql, all that i need is for the $cost value to be added up. Code example: [code=PHP]$sql="select * …

Member Avatar for hanna aizawa
0
103
Member Avatar for unwanted_virus

[code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>::SISTEM SEMAKAN KEPUTUSAN PEPERIKSAAN KOLEJ EASTERN::</title> <style type="text/css"> <!-- .style7 {color: #000000; font-weight: bold; } .style8 {color: #000000} body { background-image: url(eastern1.jpg); } .style10 {color: #FF0000} .style9 {color: #FF0000; font-weight: bold; font-style: italic; font-size: …

Member Avatar for Will Gresham
0
99
Member Avatar for SKANK!!!!!

i dont know why but sometimes i use the same exact thing ive used on other pages that it has worked for and it just doesnt work on the new page im working on. i have a table called users. with columns called username password and status why isnt this …

Member Avatar for SKANK!!!!!
0
111
Member Avatar for NatalyC

Hello everybody, :) I'm trying to import an access database to mySQL by using c#, I'm using this software: MS Access to MySQL from Bullzip, and it seems to be working ok; by using c#, I can display all data from tables, using this connection: [CODE] private void btndisplayBooks_Click(object sender, …

Member Avatar for NatalyC
0
2K
Member Avatar for ultras1

Hi, I'm making litle CMS with PHP+Mysql. Can you tellme measures for prevention for SQL Injections ?

Member Avatar for koldex
0
164
Member Avatar for san_crazy

I want to use asp.net membership in my website for login/logout functionality. I am using MySql ODBC driver for database access and I didn't find any tutorial regarding my problem. I found the same topic but for MySQL Connector/NET not for MySql ODBC driver as per my requirement. if it …

0
89
Member Avatar for haggis-man

I haven't used the mySQL permissions mechanism to any great degree & could use a little help while still at the design stage. Is it possible to grant certain users access only to certain RECORDS within a table (based on the value of a field in those records). If not, …

Member Avatar for haggis-man
0
132
Member Avatar for Krstevski

Hello guys, how can to make correct query if in the typed values have a special chars (e.g. ' ") ? If the typed values have a one special char I know how to make the correct query, but if it have more then one special chars then I don't …

Member Avatar for mwasif
0
189

The End.