11,093 Topics
![]() | |
[CODE]myconn.Open() MySQLstring1 = "select picture from naw where id = 17" myCommand1.Connection = myconn myCommand1.CommandText = MySQLstring1 myReader = myCommand1.ExecuteReader If Not myReader.HasRows Then MsgBox("now rows found") Exit Sub End If If myReader.Read Then Dim imgByteArray() As Byte imgByteArray = CType(myReader.Item("picture"), Byte()) Dim MyStream As New System.IO.MemoryStream(imgByteArray) [COLOR="red"]PictureBox1.Image = Image.FromStream(MyStream) … | |
Recently only i cam eto know about Mysqli.. . . i was wondering What Esp. does Mysqli have..?? :O i have a store procedure.. which i can call in Mysql..!! than why should i use Mysqli.?? :O One more thing i want to ask.. $link=mysql_connect($server,$serveruser,$serverpassword,0,65536); what two parameters used for..? … | |
Hi! All I am working with database mysql5.0 on my system. But when i upload every thing in web it is not recognising host as [url]http://205.178.146.79/[/url] and giving Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'http' (1) in /data/19/1/55/45/1870534/user/2032167/htdocs/music/LoginSystem.class.php on line 112 Unable to connect to MySQL Please help me … | |
Hi guys, My question would be..... how do I repair a MySQL table remotely? Is there a tool that I should first download? For example: I'm using windowsXP and I want to repair a table in a Linux server.... Is that possible? Thanx | |
watchinthegame posted the following thread on Mar 14th, 2009 : MYSQL field is Datatype DECIMAL(9,2) When I update the table and set the field to 120.00 it gets populated as 1200.00 What am I doing wrong? Thanks Watchin -------------------------------------------------------------------------------------- It doesn't appear this was every resolved (at least not via … | |
Dear all, I'm new in php MySQL and I'm wondering on how to maka users add many informations in one table, I'll explain. Now I have a table called users conataining: Username(primary key) - Name - Birthdate - Country and I want the user can add infos in a table … | |
Hi Experts, I am getting this error message, "Error connecting to mysql" whenever i am running the below scripts: [code=php]<?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'petstore'; mysql_select_db($dbname); ?>[/code] I've just set-up everything and … | |
Hi to all keen folks, can you help me to query the first 4 letters and the last 4 letters in one field. example: AAAABBBBCCCCDDDD how to query AAAA and DDDD. thank you. | |
Hi, I'm creating a basic CMS using PHP and MySQL and i'm struggling to get the checkbox information from my html page across into the database. I want the values to appear as binary 0 or 1 values, any help would be greatly appreciated thanks html document is written as … | |
i want source code for chat in php and mysql | |
Good morning/afternoon/evening! I'm trying to run a MySQL query, but it seems to be ignoring the "ORDER BY" clause, most likely, I'm believing, because I'm using the "IN" keyword in my query (several times, as a matter of fact, along with a "LIKE"). Is there a way I can structure … | |
hello, i have a mysql database which i use a php script to search and display results with fields make, model, price, year and would like to add extra functionality with presumably javascript to add a drop down form field as when a particular make is selected from the list … | |
MYSQL field is Datatype DECIMAL(9,2) When I update the table and set the field to 120.00 it gets populated as 1200.00 What am I doing wrong? Thanks Watchin | |
hey all - I'm more of a self-taught programmer but am going to school for programming as well. I'm quickly finding out that my favorite languages are the ones that school doesn't teach. figures, doesn't it? anyways, I've been playing with php/mysql for around a year now, and have been … | |
hello guyes ..i dont know what is the problem with this code ..it was working with me before but now it just store nothing ... when i submite the data every thing shows in the database ecept that image nothing shows there ..i attached the code here so every can … | |
Hi people, I have run across this website many times, with the first impression that it was a website to ask a guy named 'Dani' questions about code *snicker*. I haven't introduced myself. Maybe I will. But I have a question. In building a program, I'm running mysql code. In … | |
![]() | hello I have an idea of an rack space table which has hostnames and uheight info on it. But as I'm quite new to this mysql programming I actually dont have much of knowledge on this programming. I was thinking the database to be of both single table or multiple … |
Hi, I am showing my output using this. It shows all the records on web page where month is July(07) But I want it show all the records like: there are 29 records found, I also need 3 records per page, How I will do paging for these. please guide … | |
Hi friends I am new to mysql . After Installing mysql-standard-4.1.22-unknown-linux-gnu-x86_64-icc-glibc23 in linux i am getting the error ./mysql_install_db ./mysql_install_db: line 85: my_print_defaults: command not found Could not find help file 'fill_help_tables.sql' in ./support-files or inside .. pl help me how to overcome it Thanks in advance | |
I have MySQL running such that I can open a client command line and log on and make databases, tables, etc. I wanted to do some AJAX. Doing AJAX with ASP, SQL Server, etc is not advisable since both places where I am hosting my websites do not use the … | |
Hi all, I am writing a program which needs to connect to a mysql server I have set up. I use the proxy server at school to access internet. I found that my program cannot connect to the database. So how do I connect to mysql through the proxy server? … | |
read: \"you fail at life =]\" yuh is being put into the database from a form submit obviously i dont want the backslashes. how do i get the backslashes rom being inserted into the mysql db table? my code is `$code = mysql+real_escape_string($_POST[code]);` then insert it with mysql query. how … | |
Hi, I'm running a Vbulletin install on a CentOS server. MySQL is ver 4.1.22. Every few days, seemingly at random I have a Db that will reach it's connection limit of 150. The rest of the time connections stay below 30. Then all at once queries build up, and we … | |
Help for wml connection with mysql--------------------plz guide!!!? i have a project to mobilize a school website by wml in which a student can view its result sfter signing in.. i am totally new to wml plz guide me HOW IT CAN BE PERFORMRD ,HOW TO CONNECT WML DECK WITH DATBASE???(mysql) … | |
i have a thread in my forum. all the replies are by THE SAME USERNAME. the mysql thing looks like this: (that runs when i post a reply) [CODE]mysql_query("UPDATE `replytable` SET `the thing to show if its a mod` = 1 WHERE `by` = '$_SESSION[username]' AND `the thing to show … | |
How do i search table for a given keyword? I want to use it with Python. Cheers! | |
Hi all, I have completed a cms system but at present they have to use html tags to edit the information. I recently found out about wysiwyg, which i would love to impliment but im having issues. the two following files allow you to type something, then click edit, which … | |
I can connect from the services window but whenever I try to set the code myself on my app it tells me it cannot connect to the database. Here's my code: [CODE=java]import java.sql.*; public class LogBook { public static void main (String[] args) { connectToDB(); } // Connect to the … | |
I know mysql but I now have a job where mssql is needed. I am having a problem inerting multiple rows at once. MySQL Query: [code=mysql] INSERT INTO colours (ccode, cdesc) VALUES ('35', 'Green'), ('35', 'Turquoise') [/code] How do I get the same result with MSSQL? Thanks in advance. | |
Hey all, I have a MySQL database and I am wondering how to make certain data (tables and columns) in it available to search engines. Hopefully this is a MySQL question and not PHP. Any help or suggestions are appreciated. | |
hi folks , I have a Table names A with these fields (Id,Entry_Date,State) I want to fetch the 5 recent records with Unique States And Order them Desc so this is what I did [code=sql]Select * From A Order By Entry_Date Desc Limit 5 [/code] I tried many ways to … | |
I am writing a sports event result analyse of a database, there are few awards will be given 1. individual prize: suppose getting champion get 5 marks , second runner up get 3 marks , etc 2. the most active athlete award every student in a House participating every event … | |
I got a little problem I am making a little admin tool for my server that you can edit player stats and things with it. Problem is if I like make string Test and assign value "Hi" to it. How can I use the string inside my IMPORT INTO statement. … | |
Hello im juner, a new php developer, i already finished with a [B]register.php[/B], [B]login.php[/B] file. My problem is when the [B]main.php[/B] is accessable after login by correct username and password stored in mysql database, the main.php composed of the following link: changepassword.php addsponsor.php deletesponsor.php when i click the changepassword.php link … | |
ya i have this site i am working on and at first it was working fine, im not sure what i did but now it says i registered but when i login i get the error saying invalid username. So i went and looked at PhpMyAdmin and it did not … | |
I have a program that I want to use a view with. The code I'm using is: [icode] $v="select * from peoplecontact".$where." order by ci_city";[/icode] The select statement seems to work fine. It returns the correct number of rows. Now, how to I use it (see $entername)? [code=php]$v="select * from … | |
hello, i want to create a program to fetch the xml files data to mysql database. here is my code [CODE] <?php include 'mysql-connect.php'; $m=1; $n=".xml"; while($m<6) { $str=$m.$n; $doc = new DOMDocument(); $doc->load( $str ); $params = $doc->getElementsByTagName('BookData'); // Find BookData $k=0; foreach ($params as $param) //go to each … | |
I am new to AJAX. that's why I ask it to you. i search it in daniweb and google but i decided ask it. anyway, my question is : how can i dropdown list from database like google. I want to use it in searching the word in a dictionary … | |
Hey guys im trying to do a query on our database, the pieces of information i need are in 2 tables within my database. table 1= customers - information i need from this table: customers_id (primary) customers_firstname customers_lastname customers_email_address table 2= orders customers_id orders_id (primary) both tables contain more fields … | |
is it possible to fetch data from mysql and storing it in javascript array..!!! . . waiting for valid reply.. :) | |
Hi New to this forum so hello from sunny Coventry, UK My website uses MySQL which is accessed through PHPmyAdmin via CPanel. I have a major update to do on my main product inventory database. The standard edit/insert facility is too slow and risky in this instance as 1000's of … | |
When i type the text myself and click send it Goes to database but when i copy from anyweb and paste in the Text box so as To send. The text is Not Going To Database...And suprisingly its Not giving any Error.Help please,i dont know whats wrong. below is my … | |
how to create a function in mysql and code it to vb6?? | |
i want to ask.......if i have the data in a database of mysql....how can I generate html, chart from the database(mysql) | |
hellow everybody, i have created a image gallery, i am displaying a button name "[B][COLOR="Red"]Collect[/COLOR][/B]" with every image, when ever a registered user clicks on this button, the image id will be stored in the database table, but it must be behind the scene, i mean without refreshing the whole … | |
I have multiple tables, table_a, table_b, table_c. Each having the same structure. i.e ID, title, rating, content. I'm using [code=sql](select * from table_a order by rating DESC) union (select * from table_b order by rating DESC) union (select * from table_c order by rating DESC) [/code]to list all titles from … | |
Hi, I'm trying to create a CSV file from Excel to upload into a MySQL db. It's for a web-based dealer locator called Lookup Runner. When I try to import my CSV it never works. The people at Lookup Runner (hitcode.com) did something to my CSVs and they worked like … | |
I've created a PHP web application in Dreamweaver, which uses a MySQL database, containing 14 tables. On one page, I use an SQL query to select data from 10 of the tables in the database. However, when I try to preview the page in a browser, a PHP warning stating … | |
I've also wanted to know which of the following is the better approach Does it actually have a difference??? where table1.userid = table2.userid using the proper join statments such as Inner join | |
how to export mysql database table contents on to a PDF file. it has to be displayed in the website as "download/print data". when the customer click on that he/she has to get the PDF opened or an option to download the PDF with all the contents of the table. … |
The End.