10,932 Topics

Member Avatar for
Member Avatar for punithapary

Hi , Can anyone tell me is there any other connection method(mysql with php) other than this.Please help me.. [code=php] $hostingname="localhost"; $username="root"; $password=""; $dbname="test"; $rr=mysql_connect("$hostingname","$username","$password")or die(mysql_error()); mysql_query($rr); mysql_select_db($dbname) or die(mysql_error());[/code] thanks Punithapary

Member Avatar for pritaeas
0
84
Member Avatar for guruOfCool

Hi all, We're implementing a web-based database application for keeping track of employee emergency information. I need a sql query to select a row, but leave out any fields that are empty (but not null). I've got it working so that all fields in a row are selected. The problem …

Member Avatar for stephen84s
0
84
Member Avatar for s_susanta

im Indian a novice and in php. I installed the wamp server2 that has the apacheserver,phpmyadmin and mysql but when I try to connect mysql through PHP code a error message - "Warning : Mysql_connect()[function.mysql.connect]; Access denied for user ' '@'localhost'(using password YES) in c:\wamp\www\school\temp.php on line 10." is comming …

Member Avatar for stephen84s
0
99
Member Avatar for antwan1986

Hi everyone, and thanks for reading. I've a client who will be wanting an events/news section for their website and I have a question about handling this information from a database. Lets say that the table consisted of: [CODE] story_id - To make each story unique. title - The title …

Member Avatar for ferminselvin
0
110
Member Avatar for mortalex

Hey, i've got a problem, i'm trying to make a drop down box but so that the first value chosen automatically updates the fields that you can choose in the second drop down menu. Yes this may seem easy, but the thing is that each values need to be populated …

Member Avatar for samarinder
0
136
Member Avatar for wuodpam

I'm having a problem with displaying my profile images from a database .the upload works fine,but no image is displayed:Could you please help! I have the following code which cant work: 1. main profile page has the following script: <?php echo '<img src="XXXXX_XXX.php?id=$Current_Person_Id">'; --------------------------------------------------------------------------------- 2.the image page has the following …

Member Avatar for wuodpam
0
141
Member Avatar for bridgecity_dev

Sorry for how stupid this question may sound but I am in the process of linking two different warehouses together that use different databases. I need to run a query from one that is a remote webserver as well running PHP with a MYSQL database. This query will be done …

Member Avatar for gpm1982
0
135
Member Avatar for tmarket

I have 2 tables: an IP Address table, and an IP Ranges table. I want to retrieve a list of ranges in the ranges table for which one or more of the IP addresses in the IP address table fall within that range. The IP addresses are represented as integers, …

Member Avatar for tesuji
0
588
Member Avatar for Chagh

hi all, how can we have a select satement in an SP?(i want to return a result set from the SP). i want to migrate from SQL Server to MySQL and i don't know what to do with these SPs. it can be done in MySQL client, but it gives …

Member Avatar for varmadba
0
73
Member Avatar for kutta_vin

Hi friends, I think the MySql is not case sensitive for selecting values. for example I am having a table called dept, Id | Depart 1 | BTECH 11 | it 12 | ibt 2 | BE 21 | cse 22 | ece Now i want to select the capital …

Member Avatar for kutta_vin
0
153
Member Avatar for ckurtz

Hello, i'm a newbie here and i just want to ask if what is the best distro in running PHP, MySQL, Apache? counting on your replies. thanks :)

Member Avatar for icaruslnx
0
155
Member Avatar for davidcitron

Hello all, i have got an issue with a client here, who is running an internal CRM system. we need to get information into our Webserver (Linux-MySQL5) database (dealer lists, product lists, ....) and this information is stored in the CRM. but the CRM is Windows-MSsql. The output is .DAT …

Member Avatar for pclfw
0
184
Member Avatar for godevars

I have just started using DB2 and have been re-introduced to SQL. I want to make sure I post in the right forum with some questions regarding SQL and some basic scripts I have been given - please, let me know if this is not the place. Also, anyone have …

Member Avatar for Ole Raptor
0
61
Member Avatar for misra

Hi I am unable to connect mysql server through jar execution file. But when I am trying to connect through java class file directly(instead of putting in jar file), it is very well connected. I am not able to understand where I am wrong. Please help.

Member Avatar for jwenting
0
23
Member Avatar for AliHurworth

Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. However I'm getting errors on the second table [icode]mysql_num_rows(): supplied argument is not a valid MySQL result resource [/icode] and [icode]mysql_fetch_array(): supplied argument is not a valid …

Member Avatar for R0bb0b
0
134
Member Avatar for vaibhavs

I am using MySQL 3.23.58 on FC2 I ran PhpMyAdmin >> Runtime Information and it said that "Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based. " My existing my.cnf looks like this: [CODE] [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock set-variable …

Member Avatar for varmadba
0
117
Member Avatar for JeremyReger

Hello all, I am wanting to structure a database that will allow for multiple prices per products. I also want to be able to upload an image and enter details about the product. My initial thought would be to have a product_db and have a price table, a product table, …

Member Avatar for pritaeas
0
108
Member Avatar for AliHurworth

Hi, I'm struggling to get a relatively simple PHP/MySQL script to work. Basically, I've got two tables populated with entries from a database. However I'm getting errors on the second table [icode]mysql_num_rows(): supplied argument is not a valid MySQL result resource [/icode] and [icode]mysql_fetch_array(): supplied argument is not a valid …

Member Avatar for somedude3488
0
233
Member Avatar for e_pech

I'm sorry but I'm totally new on Web Development, I'd like to make a registration form for everyone that downloads a file I have on a Website. The ideal thing would be to send a confirmation email where the link to file is attatched. So basically when a person wants …

Member Avatar for e_pech
0
97
Member Avatar for chsarp_vijay

Hi, I have created one table in MySQL database. I want to use that table in my C sharp application through ODBC. I have installed the ODBC driver also. I have created the project in visual C#, Smart device and WINCE 5.0. Now i want my application will interact with …

Member Avatar for bbkidsdad
0
102
Member Avatar for sammoray

[code]if(isset($_SESSION['admin']) == TRUE){echo "<font face='tahoma' color='#ff0000'>ADMIN : ".$_SESSION['admin']." welcome<br></font>";} $sql="SELECT * FROM messages WHERE messages.user_id=" .$_SESSION['userid']. ";"; $result=mysql_query($sql); [COLOR="Red"]$numrows=mysql_num_rows($result);[/COLOR][/code] for the previous code the browser show me this message: [COLOR="Green"]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/e3lan3.freehostia.com/header.php on line 9[/COLOR]‎ and line 9 is the …

Member Avatar for ryan_vietnow
0
86
Member Avatar for b_bayaraa_d

hi all. i can't write to mysql database in jsp so please send some simple example regards bayarja.

Member Avatar for masijade
0
36
Member Avatar for tech@gmail.com

[B]Hi All[/B] 2 db servers replication interval in every 60 secs right now needs to have length interval ncreased is this o.k. to do - pro's and cons of this Thanks for ur time and help..............

Member Avatar for mwasif
0
60
Member Avatar for jaasaria

hello sir... from our office we are using wamp for our mysqlserver... but i wanted to be connected to my sitemate database only changing the MysqlHost address.. username and also the password... the problem is i cant connected to it.. maybe u already incounter this before and im hoping that …

0
64
Member Avatar for Phaelax

Nevermind, I'm a retard. I had phpMyAdmin opened to the live server, not the testing server which is still empty. I need a drink.

0
72
Member Avatar for lydia21

hi I want to fetch data from four tables using a single query.please tell me how to do that. thanks in advance

Member Avatar for varmadba
0
98
Member Avatar for Fost

Hi guys, Im working on a bit of MySQL and was wondering if there is a way (without using php arrays or other) to search a table for a value (say 1) and return the rows which '1' wasnt found in. != wont work because the table contains more than …

Member Avatar for tesuji
0
93
Member Avatar for daniyalnawaz

hi, i have two entities products and categories. both have many-to-many relation. how can i get the products that are not related with the categories. i mean the ones which not not mapped in junction table. thank you! daniyal nawaz

Member Avatar for varmadba
0
101
Member Avatar for nibbler

I'm looking for some guidance on how to develop a msql query that loops through elemenets in a php array. The array is constructed from a multiple line list box.

Member Avatar for nibbler
0
157
Member Avatar for samarinder

Hi I have two databases ...1st is server database which is in MySql and 2nd is local database which i will create in oracle. I want to have some of fields of 1st database to be populate in in my local database which should be refreshed automaically ... plz let …

Member Avatar for pritaeas
0
60

The End.