18,960 Topics

Member Avatar for
Member Avatar for ashneet

I have two servers and one of them have mysql db and one doesnt so is it possible to use mysql db in my other server while hosting my website on another. also if there is how would you do it with php.

Member Avatar for resuldeger
0
249
Member Avatar for tunde011

[code=php] <?php include 'config.php'; include 'opendb.php'; $result = mysql_query("SELECT * FROM 888db ORDER BY id") or die(mysql_error()); echo "<table border='0'>"; echo "<div id='bodyframe'>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $result )) { // Print out the contents of each row …

Member Avatar for me655321
0
382
Member Avatar for jlego

this is not a web design question, i'm actually using it in vb.net but they don't have a database forum in the software development section. what i am doing: i have two tables. customer and customer_phones my visual basic program has a search for customer option, which returns the customers …

Member Avatar for jlego
0
141
Member Avatar for rukshilag

Using following HTML Code please show me how to write PHP code to accept and delete the incoming data entered through the form below. from the following MySQL database and table. [B]Database[/B] = hrms [B]Table[/B] = Student [B]Fields[/B] = StdNo(Number), Name(String), Address(String), Contact No(String) [CODE] Student No<Input type='text' name='txtStdNo' /> …

Member Avatar for rukshilag
0
133
Member Avatar for jumanaakram

Hi, I'm new member I saw this site and it is really interesting , I have new project I worked on it with html and php it is a web site for songs I built the whole site and now start programming the database for singers and songs what I …

Member Avatar for FlashCreations
0
123
Member Avatar for hemgoyal_1990

Hi All Friends, I Have a Problem in My PHP Code that The $tree Array not Store Third Value(Parent ID). my Code is Display Below. The Below code Show Parent/Child Tree from MySQL Database.: dhtmlgoodies_tree.class.php [CODE]<?php /* This is one of the free scripts from www.dhtmlgoodies.com You are free to …

Member Avatar for phpbeginners
0
505
Member Avatar for rogerse

Well having thought I'd got over all the hurdles of this damn database with my previous post, it seems I hadn't quite suffered enough, and have been thrown another challenge. I have a piece of code which fills a form in with the current details of a car record. Form …

Member Avatar for rogerse
0
104
Member Avatar for sweisern

Hey all you AJAX masters, Here comes a long post but I know someone out there knows what's wrong here.... I have no idea why the following script doesn't work but I think I have isolated the problem. I have an 'order form' page (that calls this script) that generates …

Member Avatar for sweisern
0
109
Member Avatar for nschessnerd

Hi, I need some help searching for extended ascii characters. I keep track of scores for a game along with the user's name. The user can have a crazy name like "»LPk«FËNÃŽX§" but when he searches for himself it isnt found so he has to search for something like lpk% …

Member Avatar for nschessnerd
0
107
Member Avatar for mrjoli021

i have two values in a table and instead of returning the values it returns the word "array" twice. [code] $mysql = new sqlConnection(); $query = "SELECT DISTINCT status FROM status ORDER BY status"; $result = mysql_query($query) or die('Error, query failed'); while ($row = mysql_fetch_array($result)) { echo "$row<br>"; } $mysql->close(); …

Member Avatar for mrjoli021
0
2K
Member Avatar for tqmd1

Dear Developers I have following codes on lostfocus of textbox1.text to search values. It works fine but how to navigate database. I mean what codes should I use for Next Record and Previous Record Buttons. My SQL database name is accounts and table name is employees Please help str = …

Member Avatar for wiss.dev
0
110
Member Avatar for dskumar_85

Hai friend's i just want the sql tutorial,Plz give me the link

Member Avatar for Ezzaral
-3
63
Member Avatar for veledrom

Hi, How do i prevent printing "Warning" bit of connection error? I only want see my error message on screen. Note: I deliberetly enter wrong Host IP to see the message thou. [code] Warning: mysql_connect() [function.mysql-connect]: Host '127.0.0.123123' is not allowed to connect to this MySQL server in C:\apache\login\database.php on …

Member Avatar for veledrom
0
116
Member Avatar for rukshilag

ok so my development folder is in xammp htdocs (php codes) i am trying to insert an image to a table and when i display it on the php pages, it does not show why is this?? i used the absolute and relative path both. the images i need to …

Member Avatar for zinnqu
0
259
Member Avatar for poolanex

im looking to convert this code using prepared statments if possible but am open to suggestions [CODE=php] function list_owner_notes(){ $id = $this->id; $sql = "SELECT nid, title FROM notes JOIN hubs ON notes.hub_url=hubs.hub_url WHERE owner = '$id'"; $result = mysql_query($sql) or die(mysql_error()); $notes = array(); / for($i=0; $row = mysql_fetch_array($result, …

Member Avatar for Member #585571
0
109
Member Avatar for Member #671921

Hi I have a bunch of .pdf's full of music notes in a library and I want these notes to be [I]search-able[/I] from my site using three values (that, would be very nice if can be [I]combined[/I] using AND and OR operators): 1) author; 2) title 3) keyword. - How …

Member Avatar for Member #585571
0
110
Member Avatar for ablitz

Hi guys, I'm back for some help. Spent days googling for the answer... cant do it anymore. Could somebody please tell me how to simulate Joomla readmore function. What I mean is: I have a mysql database with news articles. Each article is stored in the 'news' table in the …

Member Avatar for pritaeas
0
151
Member Avatar for nccsbim071

Hi everybody I have been using mysqldump utility to dump the contents of database to a file. Everything is ok but i want to eliminate the "USE `db_name`;" statement that appears in mysqldump. Is it possible to do that. Please help:sweat:

Member Avatar for nccsbim071
0
165
Member Avatar for SheSaidImaPregy

I posted earlier on this site for help on where to set a command when a user session timesout. I posted this in the global.asax file: [code]Imports System.Web Imports System.Web.SessionState Imports System.Diagnostics Public Class Global Inherits System.Web.HttpApplication Sub Application_Start(ByVal Sender As Object, ByVal E As EventArgs) Application("CurrentUsers") = 0 Application("TotalSessions") …

Member Avatar for jaredclinton
0
1K
Member Avatar for sanishan

Hi! i want to send 10,000 email to my users i have shared web hosting. i think i have only this solution. i want a simple php coding. if some one visit at my site an email automatically send from database list. i have a mysql table -------------------------------- | ID …

Member Avatar for sanishan
0
99
Member Avatar for dsmush

Hi I'm doing a project which requires a registration/login page. I have created both registration and login html pages and have done the validation servlet for the login page. I've also attempted the validation servlet for the registration page, but this is where I am struggling because I can't get …

Member Avatar for javaAddict
0
531
Member Avatar for whitestream6

This is the code for my TV guide website (stored on localhost)'s articles in PHP: [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select which database you want to edit mysql_select_db("tvguide"); //select the table $result = mysql_query("select * from epdata"); //grab all …

Member Avatar for whitestream6
0
155
Member Avatar for sethm

I am trying to get my date that people enter into a form from mm/dd/yyyy to input it into the database. I can't seem to get this to work, I guess I only know enough to hang myself, what would someone use to get this to function properly? I've been …

Member Avatar for sethm
0
178
Member Avatar for bigjoke

Here is an extracted code from my php file. Basically what i want to do now is put the results fetched while in a WHILE loop into an array, lets call it $array99. HOWW??? i am totally stumped here. Just so you can understand the logic of the program(its irrelevant …

Member Avatar for me655321
0
66
Member Avatar for Vandithar

Hi, I am using MySQL Version 5.0.45. I am getting time out error while trying to access large data. I am performing 2 operations: a) I am loading the data file into the database b) I am retrieving the data from the database. 1) Loading the data file into the …

Member Avatar for Vandithar
0
209
Member Avatar for beanboy

hi helpers, i wanted to develop a discussion forum in java,...downloaded jforum 2.1.8 War file,...imported to eclipse,...what else should i do to run the project?.....sadly i didnt find 'how to' any tutorial in net :( i've never worked with any open src projects b4,...how to configure mysql db for it?...where …

Member Avatar for Phaelax
0
2K
Member Avatar for Aigini

Just need to know whether or not mysql server supports multiple strings of databases. Will the performance be hindered ? My company has a server that holds a few large databases for now (20GB and larger). In the near future more and more databases will be added. Adding more databases …

0
70
Member Avatar for bharanidharanit

Hello, I want to use CreateUserWizard. Here i want to add some additional fields in that wizard. Also i want my own validation (even for password format) in this wizard. Also i want this to be stored in my sql database, instead of ASP.NET Website Configuration default website (as it …

Member Avatar for reach_yousuf
0
121
Member Avatar for IT21

hey, im wondering what is the best way to go about creating queries... my program.. i am creating a staff search program, i have craeted my databse and have included queries in access. but imnot sure how to call them in vb.net wondering if anyone can help me on that... …

Member Avatar for me655321
0
95
Member Avatar for EPierre

I'm working on this since 3 days, grabbing the web looking after ideas. Hope someone faced this problem and solved it. All is about a picture site Here how it's doing: There are about 15 items with different options offered to the customers. A combination of size, number of figures, …

0
68
Member Avatar for fridge2305

Hi Everyone, I would appreciate it if someone could have a look at this short mysqli script and tell my why I am getting this parse error: Parse error: syntax error, unexpected T_VARIABLE in /home/james230/public_html/xampp/htdocs/lesson1/login.php on line 10 I had this set up as mysql and it works perfectly, but …

Member Avatar for bigjoke
0
175
Member Avatar for dhrider

Hey. I'm new to php and I have been looking everywhere for info on how to take information from my sql table field and put it into a html form list.

Member Avatar for Member #120589
0
177
Member Avatar for Lolalola

Hi, Why not uploaded the data into db? Do not show any error. [CODE] string City = "Berlin"; string MyConString = "SERVER=localhost;" + "DATABASE=test;" + "UID=root;" + "PASSWORD=;"; MySqlConnection connection = new MySqlConnection(MyConString); MySqlCommand command = connection.CreateCommand(); command.CommandText = "insert into city(city) VALUES (@City)"; command.Parameters.Add(new MySqlParameter("@City", MySqlDbType.VarChar, 40)).Value = City; …

Member Avatar for DdoubleD
0
142
Member Avatar for whitestream6

I get these errors in a script of mine: [CODE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\www\vhosts\myradiostation\test.php on line 13[/CODE] and my original page (included in another page): [CODE] <?php //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORDREMOVED"); //select …

Member Avatar for DW Master
0
189
Member Avatar for bigjoke

Hi everyone, I am trying to figure out the way to check if the file ,that exists on a filestore, is also present in the database. Ultimately i want to flag up the files that exist in the database but are not on the filestore and vice versa. I have …

Member Avatar for bigjoke
0
101
Member Avatar for Kystadio

Right now, I have a PHP script which - ideally - selects "posts" from a table, based whether or not the the time in the post is greater than the current time. [code]if(isset($_POST['id'])) { $id=addslashes($_POST['id']); $time=date("h:i:s"); $sql=mysql_query("SELECT * FROM public_wis WHERE mig_id='$id' AND time >= '$time'"); if(mysql_num_rows($sql)!=0) { while($rows=mysql_fetch_array($sql)) { …

Member Avatar for pritaeas
0
113
Member Avatar for Kadjii

Hi, I was wondering if it was possible to update the value of a mySQL cell by a method similar to using += in php code. For example, I'd like to do: [code] $sql = "UPDATE inventory WHERE userID = '$_SESSION[userID]' SET money+='$ssmoney'"; [/code] I know I can instead run …

Member Avatar for Kadjii
0
142
Member Avatar for Member #321605

Hi There I'm a newcomer to php trying to develop a basic photo album. I have created a simple template in htm, and am trying to use php to show 15 thumbnails per page. However, I am experiencing the error message: "Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL …

Member Avatar for yashmistrey
0
480
Member Avatar for vizz

How to send SMS on mobile from website for user account registrration using PHP, Mysql ? How to send SMS that contain username & auto-generated password? Plerase, anybody ?......, it's urgent.............. THANK YOU in advance

Member Avatar for vizz
0
759
Member Avatar for bharanidharanit

Hi used the below coding for enrypting and decrypting a text. But with this i dont know how to save to a database, when i tried i am getting many errors. How to do this? [CODE]Private Sub cmdEncrypt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ' Encrypt MyText …

Member Avatar for bharanidharanit
0
132
Member Avatar for daryll1

For some reason this is killing me, I am trying to update the field available to '-1' and don to '0' when the user submits the correct string into the input box, the thing I cant work out is why available wont update but don will the code is below …

Member Avatar for daryll1
0
120
Member Avatar for newtri13

I have a small script that connects using ssh and opens a tunnel on port 3306. It works in the ipython interpreter if i type it in manually. However when I try to run the script from the interpreter or command line I get the error message "Can't connect to …

Member Avatar for newtri13
0
203
Member Avatar for aspnetguy

I've got my website, [url="http://www.bangbangt-shirts.com/"]Bang Bang T-shirts[/url], on a Windows Server 2003 dedicated machine. In the last few weeks, it's crashed a few times and I think it does this when it performs an auto update and tries to restart. When they support staff from the hosting company manually reboot …

0
46
Member Avatar for Dmennite

First off I apologize for being a newbie to MySQL but one must learn somewhere... I am attempting to create a stored procedure that take input (primary key) and finds a field for that record and output to a variable... my code so far: [CODE]CREATE PROCEDURE sp_dealer_name( IN dealerID CHAR, …

Member Avatar for Dmennite
0
191
Member Avatar for whitestream6

I've been trying to create a database-driven site, am new to this, have looked it up on Google and tried for myself, but need a bit of help. [CODE] <?php // Connects to your Database mysql_connect("localhost", "root", "PASSWORDREMOVED") or die(mysql_error()); mysql_select_db("epguides") or die(mysql_error()); $data = mysql_query("SELECT * FROM epguides) or …

Member Avatar for Arianna
0
129
Member Avatar for pitulobo

I have 2 tables 1st INVHD 2nd INVDT In INVHD I have following fields InvNo, InvDate,CustCd, CustName, TotalDisc (Discount on total Invoice), GrandTotal In INVDT I have following fields InvNo, RowNo,ItemCode, Qty, Rate, BaseVal, etc…. Now I need a query to be generated for The customer CustCd, CustName, Sum(totalDisc), Sum(GrandTotal) …

Member Avatar for darkagn
0
77
Member Avatar for nickEncarnacion

Hi, i am a beginner in using ASP.NET. I have this problem. Whenever i select the advanced options in configuring the sqldatasource, the Advanced SQL Generation Options are all greyed out/disabled. Now, i found out that the cause of this is because the table that i am trying to access …

Member Avatar for kvprajapati
0
109
Member Avatar for rajeesh_rsn

Hai, I had a database with tables id,name,email. ( Total about 25 thousand of rows in that database ) . I want to do mails to these email ids daily. Now in this condition so much email ids are repeating bcoz I converted a excel file to musql. It is …

Member Avatar for yalus
0
69
Member Avatar for asmikwen

Hello, I have been checking for data integration / transfer programs able to help with Mysql. I have had some advice from some people but have not found the right software yet. The main feature would be to be able to migrate important quantities of contacts and data every day. …

Member Avatar for bgkalbente
0
77
Member Avatar for qk00001

Hi people, Do you have any good sites for C++ MySQL.Especially how the 'query' part works in the C++. Thanks a lot!!!

Member Avatar for VernonDozier
0
167

The End.