10,932 Topics

Member Avatar for
Member Avatar for kevin wood

i have found this code and would like to know how i can get the column titles to show up at the top of the page. [CODE]$result = mysql_query( "SELECT * FROM merc_users" ) or die("SELECT Error: ".mysql_error()); $num_rows = mysql_num_rows($result); print "There are $num_rows records.<P>"; print "<table width=1000 height=400 …

Member Avatar for kevin wood
0
100
Member Avatar for Killer_Typo

[php] <?php /* declar some relevant variables */ $Host = "localhost"; //location of mySQL on server $User = "michael"; //my username $Pass = "koolaide"; //my password $Name = "phpaccess"; //name of the database to be used $Table = "info"; //name of the table within the database mysql_connect ($Host, $User, $Pass, …

Member Avatar for michael.mckee
0
3K
Member Avatar for colcar2008

Hi, Can you please help me? I need to store the path to an image in a mysql database. Would anyone be able to provide me with a script that can do this? Thanks Col

Member Avatar for peter_budo
0
77
Member Avatar for ztwalsh

I am creating a movie database. Right now I have each movie set up as its own table. Inside each table there are fields for title, summary, rating and so on. On one of my web pages, feeding off this database, I want to show the movie title, summary and …

Member Avatar for nav33n
0
70
Member Avatar for pranabmohanty

hello all, i m new to asp.net.....can anyone send me the complete code to write into the mysql data base.....plz mention the complete code to insert data to mysql database..... i m using asp.net and C#...... thanx in advance

Member Avatar for a496761
0
115
Member Avatar for vamp.ali.ca

i need some help i wana talk about security in mysql 5.2.5 plz send me links (i searched mysql.com site and still i'm not able to get anything about mysql 5.2.5 , no informations were found) 10x

Member Avatar for pritaeas
0
78
Member Avatar for colcar2008

Hi, Can anyone help me here, I want to display an image using the path of the image and the image title from a mysql db? I can upload the info to the db, but I have trouble displaying the image. Here is the code: [code=sql]CREATE TABLE `trailer` ( `id` …

Member Avatar for kvdd
0
920
Member Avatar for dnalor

package packagePgmaLibrarySystemRolandgasparDizon; import javax.swing.SwingUtilities; import java.awt.BorderLayout; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Dimension; import javax.swing.JLabel; import java.awt.Rectangle; import javax.swing.*; import java.awt.*; import javax.swing.JSlider; import java.awt.GridBagLayout; import javax.swing.border.SoftBevelBorder; import javax.swing.JScrollPane; import javax.swing.JTable; import java.awt.GridBagConstraints; import javax.swing.JButton; import javax.swing.BorderFactory; import javax.swing.border.EtchedBorder; import java.sql.*; import java.awt.event.*; import javax.swing.ImageIcon; import java.awt.SystemColor; import java.awt.Color; …

Member Avatar for masijade
0
169
Member Avatar for tanha

Hi. I know this is MySQl forum, but maybe some one help me through the below issue: I don't know which file I should download to install postgreSQL, could nayone please guide me which I should download ??? [URL="http://www.postgresql.org/ftp/source/v8.3.1/"]http://www.postgresql.org/ftp/source/v8.3.1/[/URL] I am using Windows OS.

Member Avatar for tanha
0
99
Member Avatar for webguru07

Hi, I am making a mailing program and the problem i'm having is that I want to display the message exactly as it is entered for example, when the sender presses enter for a new line the reciever see's it. I have thought of using <pre></pre> tags but if the …

Member Avatar for fenixZ
0
69
Member Avatar for flashyflashy

Can we arrange a single table in two ways within a page .? I'm in a situation where I need to arrange a single table in two ways within a page, When I test the first piece it works ,even the second piece works great when tested alone, but when …

Member Avatar for Ole Raptor
0
77
Member Avatar for Sheridan

I am trying to execute a mysql query of the form: [code=php] $query = "Select * from individuals where MotherId like '%".$iName."%' or FatherID like '%".$iName."%' "; [/code] I am getting an "unexpected FatherID" error message. FatherID is of course an attribue of the queried table. The query works as …

Member Avatar for somedude3488
0
52
Member Avatar for tanha

Hi. I want to know how it is possible to write your own function "UDF" in MySQL? and how use that UDF in MySQL?

Member Avatar for tanha
0
150
Member Avatar for rickarro

I have a form that inputs data to a database. All is working fine, but what I'd like to do is when it gets to the [code] $result = mysql_query($query) or die ("Error in query: $query. ".mysql_error()); [/code] instead of the mysql_error, I want to display my own error with …

Member Avatar for rickarro
0
5K
Member Avatar for madhavipoudala

[b]hello, i want a help for you all. about mysqlprocedures and functions i am enable to create procedures and functions in mysql so that i am enable to do jdbc colleable statements programs. please help me[/b]

Member Avatar for jwenting
0
70
Member Avatar for ceyesuma

Is someone farmiliar with the travel database that installs with the netbeans installation? I can finally connect to the db and it shows folders to hold tables etc yet there is no tables in the folder. Is there a way to obtain the scrip for the travel db so I …

0
50
Member Avatar for ryy705

Hello, mysq_query($query) returns a valid result set. However, [CODE] function query($query) { return mysql_query($query); } [/CODE] returns a 1. Why does this happen? Is there a way around it? Thanks in advance.

Member Avatar for ryy705
0
109
Member Avatar for dtmd

Hello, i have a database that came with MYSQL statements to get it working but we are using MSSQL and have managed to convert a large proportion of them but there are two statements we are having trouble with and wondered if anyone could help. The first is below: [CODE]SELECT …

Member Avatar for huangzhi
0
159
Member Avatar for kevin wood

is it possible to add a number to a number that is stored in mysql db without extracting the stored number first. i have a count and i am updating the count periodically but i would like to know if i can update the count while it is in side …

Member Avatar for nav33n
0
77
Member Avatar for kevin wood

after i have run my query on a mysql db how can i set the result to equal a variable that i will use later on in the page. i have set the query up like this [CODE] <?php $rand = rand (0, 100); $query = "SELECT broad1 FROM images_broad"; …

Member Avatar for kevin wood
0
137
Member Avatar for kevin wood

i have created a table to store the number of a count which i need for some subtraction at a later date. when i try to get the information out of the table instead of getting the number 5 i am getting resource id # 5. the table has been …

Member Avatar for kevin wood
0
69
Member Avatar for still_learning

Hey guys, Is there any way that I can just simply get the length of a row in a table? Thanks

Member Avatar for still_learning
0
297
Member Avatar for tanha

Hi, I wan to know where the MySQL variables stored? when I execute the [CODE]show variables; show status; [/CODE] I see many more variables, so I want to know the place they are stored in? and the file name too?

Member Avatar for mwasif
0
90
Member Avatar for ceyesuma

For some reason I deleted a sample database that was in the netbeans tutorial. Of course now I need it and I don't where to get it( I tried the google,and will try again) but does anyone know how to obtain the script? Thanks -Steve

Member Avatar for ceyesuma
0
94
Member Avatar for Kavitha Butchi

Hello All, Is there a way how we can pass a PHP variable whose value has been retrieved from MySQL database to the next page? Initially I tried this which didnt help me anyway. [code=PHP] // if user login information is CORRECT then redirecting them to the user home page …

Member Avatar for Kavitha Butchi
0
219
Member Avatar for jdworske

I am running a MySQL cluster test on 3 nodes. 1 management node 2 storage nodes. I can't seem to get mysql to start successfully. All 3 nodes are running Ubuntu Server 8.04 with MySQL 5.1 ... I know this is totally new, however, we are trying to test out …

0
53
Member Avatar for marrrrrrc

Hi, I need to match rows from one table to another table that may or may not have a match on one common column.... the problem begins with bringing back the most recent row in the other table. So, the query I'm starting with is: [code]SELECT * FROM data LEFT …

Member Avatar for tal17
0
103
Member Avatar for sjgriffiths

Hello Is there a way i can have a MYSQL query to run automatically at a certain time without me running it myself?

Member Avatar for jemajoign
0
68
Member Avatar for tanha

Hi. I want to GRANT privileges on two tables, but I dont know why error, but on one table it is ok. what is wrong? [CODE]GRANT SELECT ON mysql.db, mysql.user TO 'user'@'localhost' IDENTIFIED BY 'password';[/CODE] I dont know why it is not working on two tables???

Member Avatar for tanha
0
84
Member Avatar for cacorat

I keep getting an error where the symbol cannot be resolved and the arrow pointing to where i have written statement.ExcecuteUpdate Am not able to insert any data into my database, can anyone see where i may have gone wrong. thanx heres the code: <%@ page import="java.sql.*" %> <%@ page …

Member Avatar for masijade
0
351

The End.