7,368 Topics

Member Avatar for
Member Avatar for tatarao25

hi all, i have written store procedure which is working fine in MySQL browser the problem i am facing is when i call store procedure through c# usng nhibernate it is throwing exception MySQL.Data.MySqlClient.MySqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is …

Member Avatar for hericles
0
57
Member Avatar for creativeartbd

Hi, I'm new in php and face some problem in mysql. I want to check some data if it's remain on database. Example: in my form there are two form field. 1) url 2) name. So i want to check if session user have already this 'url' and 'name' in …

Member Avatar for debasisdas
0
119
Member Avatar for Sinnocence

( old ) sql = """CREATE TABLE (DATABASE1) ( TEXT_BODY CHAR(20) NOT NULL)""" I would like the above to work like the below. [CODE] sql = """CREATE TABLE ('%s') ( TEXT_BODY CHAR(20) NOT NULL)""" % header [/CODE] ( this produces an error ) Does anyone know how I can make …

Member Avatar for StephNicolaou
0
61
Member Avatar for sidra 100

hi i am writing a program which take the value from form and then execute a error "failed" each time. which means there is some error in my query but i cant find the problem. here is the code [CODE]<?php session_start(); //print_r($_POST); $name=$_SESSION['SESS_CUSTOMER_ID']; $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); $product_id=$_POST['P_list']; echo "$product_id"; $quantity=$_POST['quantity']; $query= …

Member Avatar for pritaeas
0
136
Member Avatar for bisibee82

[CODE] $query = "SELECT item, description, price, imageData, status, username, item_id FROM items"; $result = mysql_query($query) or die(mysql_error()); $z=0; while($row = mysql_fetch_array($result)) { //echo other columns here// echo "<td><div id=status$z></div></td>"; <script type=text/javascript> function updatestatus(itemnum) { var url="updatestatus.php?auc=<?php echo $row['item_id']; ?>"; jQuery('#status' + itemnum).load(url); } setInterval("updatestatus(<? echo $z?>)", 1000); </script> <? …

Member Avatar for diafol
0
189
Member Avatar for teedoff

Just curious, and well hoping to save myself months of time..lol I've seen databases online already set up to purchase. I know a little about databases...very little, and could probably wing my way through creating a database for car lighting applications for the last 100 years, but thought there might …

Member Avatar for rch1231
0
2K
Member Avatar for phplover

Hello, I am going to be building a blog and have rattled my brains out on this but could someone please explain in much detail as possible how i would go about building a blog archive ? I don't mean i want the php code just the logic behind it. …

Member Avatar for phplover
0
154
Member Avatar for RazorRamon

Ok i have a lot of tables that are created when a user inputs information. Some info gets stored in a "Main" table while the majority is saved in its own self created table. I do not know the number of "topics" in Main table. so in way i'm trying …

Member Avatar for pritaeas
0
115
Member Avatar for vinay.tmr
Member Avatar for jwenting
-1
2K
Member Avatar for joy39

i have to write a c program which connects with the mysql database. i have installed visual studio c++ express 2010 and the mysql installer for windows. i have widows xp os. can anyone tell me the step by step process to connect to the mysql database. and give me …

Member Avatar for StephNicolaou
0
88
Member Avatar for divsok

create table Course ( courseId char(5), subjectId char(4) not null, courseNumber integer, title varchar(50) not null, numOfCredits integer, primary key (courseId) ); create table Student ( ssn char(9), firstName varchar(25), mi char(1), lastName varchar(25), birthDate date, street varchar(25), phone char(11), zipCode char(5), deptId char(4), primary key (ssn) ); create table …

Member Avatar for StephNicolaou
0
121
Member Avatar for swebdizajn

I have a problem at login to the site: Constantly message appears: Deprecated: Function mysql_db_query() is deprecated in /home/vebsajt/public_html/hosting/config/functions.php on line 53 Deprecated: mysql_db_query() [function.mysql-db-query]: This function is deprecated; use mysql_query() instead in /home/vebsajt/public_html/hosting/config/functions.php on line 53 the file in line 53 functions is: $check_login = mysql_db_query($db, "SELECT * FROM …

Member Avatar for hericles
0
957
Member Avatar for Wolxhound90

Hey guys, So, I have a CheckedListBox that will be used to choose what columns they want to select from a database. Is it at all possible to display it in the format of [Table Name].[Column Name]? So far I have this: [CODE]con.Open() theQuery.Connection = con theQuery.CommandText = strColumns theAdapter.SelectCommand …

Member Avatar for Wolxhound90
0
187
Member Avatar for Wolxhound90

Hey all, Apologies for this question, as I imagine it will be very easy. I'm creating a form that will be used to update fields in a table. I don't want the user to be able to update primary keys though, so I'm trying to disable the textbox so it …

Member Avatar for Wolxhound90
0
248
Member Avatar for bflack

Hello guys, [CODE] <?php include 'dbconnect.php'; echo 'under profile.php'; $username=$_SESSION['username']; //I think i have to put a query here like "SELECT username FROM accntinfos WHERE username='$username'". But confused since if I do there would be two queries $query="SELECT userprofile.profpic FROM userprofile INNER JOIN accntinfos ON accntinfos.accntnum=userprofile.accntnum"; $result=mysql_query($query, $DBconnect); $numrows=mysql_num_rows($result); ?> …

Member Avatar for bflack
0
147
Member Avatar for chuck_dezmond

Hi everyone, im just new in php and mysql. I have a form where i add list of member details then submit it to my db and redirect it back to the same page and echo the the list of data at the bottom. but the problem is after redirect …

Member Avatar for chuck_dezmond
0
109
Member Avatar for intelgy

Hello everyone, I'm working on adding checkboxes to the edit_profile section where members should be able choose with checkboxes the multiple options of massage techniques offered... When I checked only one, either, option 1, or option 2 or option 3 I'm able to see it in the column in the …

Member Avatar for HasNor
-1
172
Member Avatar for tuse

Hi all! I am trying to connect to a remote MySQL database in a VB.NET application. This database is located on my LAN at the address 192.168.1.2. I am using MySQL Connector/ODBC 3.51 (MyODBC 3.51) for the connection. The connection string that I am using is the following- Driver={MySQL ODBC …

Member Avatar for pritaeas
0
252
Member Avatar for felix001

Ive been developing a new website for the last few months. Initalling I configured all my databases to use the root account. Now I need to change all the passwords along with changing the web UI login. Ive tried changing the password for root within the gui but it doesnt …

0
73
Member Avatar for rotten69

I'm trying to make a table and mysql is giving me this error: [QUOTE] #1005 - Can't create table 'likes.users' (errno: 150) [/QUOTE] That would be great to see a website that explains mysql errors like this for oracle [url]http://ora-code.com/[/url] [CODE] CREATE TABLE IF NOT EXISTS `users` ( `user_id` int(2) …

Member Avatar for rotten69
0
160
Member Avatar for sidra 100

i want to increase the size of the column [CODE]ALTER TABLE employee ALTER COLUMN department_name VARCHAR(50)[/CODE]

Member Avatar for pritaeas
0
85
Member Avatar for bflack

Hey guys, Can you all help and teach me how to retrieve image file which is stored on database?.. I had an image stored on database in the column i called 'profpic'. By the way, I am needing this information for profile picture on a users page. I've started testing …

Member Avatar for bflack
0
206
Member Avatar for rotten69

Hi everyone, I have created tables and deleted some rows and then inserted new rows. The IDs of the later created rows didn't start at 0 or 1. I dropped my entire database then recreated the same one with the same tables and fields. Unfortunately, newly entered rows started from …

Member Avatar for rotten69
0
169
Member Avatar for RazorRamon

I have a variable [ICODE]$topic = $POST_['topic'][/ICODE] that is entered by the user, it can possibly have spaces. I want to create a table based on this variable. Right now the code creates the table but only uses the first word. [CODE] $create="Create TABLE $topic (I know this part works)"; …

Member Avatar for pritaeas
0
93
Member Avatar for joy39

i am starting to learn to connect a cprogram to a mysql database. i have got this elementary program to connect to server , create a database and disconnect from it. [code]#include <stdio.h> #include<windows.h> #include <mysql.h> static char *opt_host_name = NULL; /* server host (default=localhost) */ static char *opt_user_name =NULL; …

Member Avatar for pritaeas
0
199
Member Avatar for garyjuano

i had a database with 4 column and each column has a value, below are the sample. ---------------------- col1-col2-col3-col4 -- 1------4-----7--------- 5------3----------10--- 6------------5----12--- my question is how can i get the lowest value in each row? here's an output that i wanted to get: 1 3 5 and here's my …

Member Avatar for pritaeas
0
129
Member Avatar for MeeDeggi

I need some help with radio button data and how to code it in PHP to insert the data into MySQL. Here is my [B]Form Code[/B]: [CODE]<form method="post" action="update.php"> First Name: <br /> <input type="text" name="fname" size="35" /><br /> Last Name: <br /> <input type="text" name="lname" size="35" /><br /> Phone …

Member Avatar for Red_Rain
0
210
Member Avatar for RockyMtnHi

I have a loop that writes out data for franchises. It works the first time through, but not the 2nd. Here is the page where the data is written out: [URL="http://184.172.137.97/~royl21st/1.php"]http://184.172.137.97/~royl21st/1.php[/URL] Here is the code that spits out the wrong data after the first successful loop. Any ideas? [code] $areaCodeData …

Member Avatar for pritaeas
0
214
Member Avatar for rotten69

Hi all, I haven't changed anything in the config file in phpMyAdmin folder. I don't know why the WAMP server gives me this error. Although everything was working perfectly yesterday. Does anyone know how I can fix this problem? [CODE] You don't have permission to access /phpmyadmin/ on this server. …

Member Avatar for rotten69
0
106
Member Avatar for billmudry

Before I really dig in ----- HAPPY NEW YEAR EVERYONE! A few of you may remember that I have been working on producing a large wood knowledge base (woodsoftheworld.org). It is totally none profit. I am getting much closer to having enough working that soon I hope to be able …

Member Avatar for urtrivedi
1
1K

The End.