10,942 Topics

Member Avatar for
Member Avatar for sjeggels

Hi there, I am looking for help to code a php mysql search form with 4 dropdown list. I want the user to search for accommodation establishments by using a citytown, tourism route, accommodation profile and accommodation tariffs. All this will be in the dropdown list which reflects the fields …

Member Avatar for sjeggels
0
3K
Member Avatar for Lyandor

Hey guys. Can you have a look at my queries? I can't spot the error with my foreign key linking. As of now, the table staff has already existed: StaffID char(7) Staff_Name varchar(50) Position varchar(50) And now I'm trying to create a new table called SalesInvoice: create table SalesInvoice( SalesInvoiceID …

Member Avatar for seslie
0
175
Member Avatar for asif49

The following two are methods of joining two tables together but what I want to know is whether the two methods actually have any differences. I tested the two methods on two tables and they didn't give different results but maybe my two tables were just an anomaly. Are these …

Member Avatar for diafol
0
108
Member Avatar for lyrico

Hi all, Can anyone help me or give me an idea on how export data from mysql into multiple excel sheet using php? Below is the code I used to export data from mysql in a single excel sheet. thanks in advance [code] <?php $filename = 'filename.csv'; include 'connection.php'; $date …

Member Avatar for whiteyoh
0
300
Member Avatar for PF2G

Hi, Daniweb I have this code that works like this: i search for a product and it gives me the name, reference and the image of the product found. My problem is that the image doesn't appear. <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $sql_prod = "SELECT * FROM produtos WHERE nome …

Member Avatar for joehms22
0
130
Member Avatar for cali_dotcom

hi, i am currently building an application that depends on a third party application written in .net using a mssql server database. i am more of a lamp guy and prefer mysql. to extend the application i would need to add some tables to the database. i am currently thinking …

Member Avatar for pritaeas
0
188
Member Avatar for jimdj

I need a really good tutorial on how to alter MySQL databases, and to know how far you can alter a database without loosing or changing the information in the database. Thanx in advance for any help

Member Avatar for seslie
0
159
Member Avatar for showman13

Hi, I have a query that I would like to be able to decide what fields to select based on the value of the fields in the database... Here is the query I have SELECT mem_id, company, fname, lname, addr1, addr2, city, state, zip, country FROM dc_order WHERE STATUS='W' What …

Member Avatar for smantscheff
0
130
Member Avatar for akgeek

I think I have a relatively simple problem, but forgive me, I'm new at this. I'm trying to take output from a dynamically created checkbox in php to a foreach statement to make a new string that I can use to request an update from mysql. In the foreach loop, …

Member Avatar for diafol
0
3K
Member Avatar for polycinco

I got this error on my page when I tried to login, I don't know what happened please someone help me. What do I need to do? Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'steve_wff'@'208.113.246.18' (using password: YES) in /home/steve_wff/worldfamousflags.com/usssa/system/database/mysql.php on line 6 Error: Could not make a database connection …

Member Avatar for veedeoo
0
83
Member Avatar for Bidea

**Hello cool peoples**, so I couldn't figure out if images could be added in the post therefore follow the prescribed link at the end of this post. Problem: I do not know how to create whats going on in the pictures. I try not to use terms to define what's …

Member Avatar for Bidea
0
153
Member Avatar for viper139

hi i'm trying to create a search function for my website and I keep getting this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a7526299/public_html/SearchResult.php on line 158 <form action='SearchResult.php' method= 'get'> <input type='test' name='k' size='50' value='<?php echo $_GET['k']; ?>' /> <input type='submit' value='search' /> …

Member Avatar for diafol
0
513
Member Avatar for Maha Sh.

Hi all, I created a database for my web application in VB and I'm trying to insert data in my login table but its keep giving me error i have login table which contains loginID UserId Acctype Password My PK is LoginID MyFK is User Id which connected to three …

Member Avatar for Maha Sh.
0
145
Member Avatar for itisnot_me

first off hi again. Now i dont know where to start this one script or let alone how to execute it. This is what i would like to learn how to do. I would like to output the current DB structure then take that and update another db with the …

Member Avatar for |-|x
0
300
Member Avatar for dgibbons82

I am new to PHP/MySQL and currently working on a project to learn it a little better. I have a bit of PHP code and it has a problem that I'm having a little trouble figuring out. Basically, it is taking session data and writing it to a MySQL database. …

Member Avatar for veedeoo
0
307
Member Avatar for johndohmen1963

I have the following warning only when paword is wrong Warning : mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\mijn_stamboom\login\login.php on line 23 <?php include_once '../common.php'; include("config.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { $myusername1=addslashes($_POST['username']); $mypassword1=addslashes($_POST['password']); $ip = $_SERVER["REMOTE_ADDR"]; $pass1 = md5($mypassword1); $sql1="SELECT * FROM stamboom_admin WHERE username='$myusername1' and password='$pass1' …

Member Avatar for johndohmen1963
0
218
Member Avatar for whitecoder

Ok I am not getting any other errors in php or mysql but I keep getting returned Query was empty in my table. Any help is appreciated, if anybody needs more info on the code just let me know. This is basically a multi search tool for a huge database …

Member Avatar for smantscheff
0
2K
Member Avatar for Bidea

**Hello cool peoples**, so I couldn't figure out if images could be added in the post therefore follow the prescribed link at the end of this post. Problem: I do not know how to create whats going on in the pictures. I try not to use terms to define what's …

Member Avatar for Bidea
0
154
Member Avatar for gilgil2

Hi, this is part of a script used to verify paypal payments and update a mysql database if the payment is verified. I had it working in a separate mysql table but I have now changed the table and it doesn't seem to be working. When the verification from paypal …

Member Avatar for diafol
0
216
Member Avatar for jakubee

create trigger ins_notification after insert on transaction_detail for each row Begin insert into sell_notifications(user_id, product_id, quantity) values(new.transaction_id , new.product_id, new.quantity); End; Can any one see where's the problem? :(

Member Avatar for smantscheff
0
91
Member Avatar for Xephis

Hi all, I'm trying to display the average of each row displayed in my table but am having a bit of trouble, any assitance would be appreciated. Basically the table displays the name, the score you gave them, and their average score. Here is my code below (example, names modified. …

Member Avatar for Xephis
0
166
Member Avatar for gilgil2

Hi I have never done this before and am having some trouble. Could someone tell me where I am going wrong: $sql = mysql_query("UPDATE `gigs` (txnid, payment_amount, payment_status, itemid, createdtime) VALUES ( '".$data['txn_id']."' , '".$data['payment_amount']."' , '".$data['payment_status']."' , '".$data['item_number']."' , '".date("Y-m-d H:i:s")."' )WHERE (gigname)=".$data['item_number']."'" , $link); In case I have …

Member Avatar for seslie
0
199
Member Avatar for wipeskim

i have a table with day_date and price each record is displayed as below: Day_date Price Allotment 2012-05-20 500 2 2012-05-21 500 2 2012-05-22 500 2 2012-05-23 600 4 2012-05-24 600 4 2012-05-25 500 7 2012-05-26 500 7 2012-05-27 700 2 2012-05-28 700 2 what i want to do is …

Member Avatar for smantscheff
0
166
Member Avatar for ethar

I have uploaded the database file and the error i get is Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ethar'@'localhost' (using password: YES) in /home/eth/public_html/Connections/taking.php on line 9 Fatal error: Access denied for user 'etha'@'localhost' (using password: YES) in /home/eth/public_html/Connections/taking.php on line 9 What cud the problem be... Plz help.

0
57
Member Avatar for erogol

I want to pass my all database from windows to ubuntu on my computer. I think passing all releated data files will be enough so I need to find the files in my windows. Do you know what isthe directory path for these files? Also is it enough to carry …

Member Avatar for smantscheff
0
271
Member Avatar for realworldmedia

How do i insert this into my sql database? I have tried a few things like putting the array bracks on the upload file. when i do this it saves the image location but doesnt upload the image. This is my upload snippet for ($i=0;$i<4;$i++) { if($_FILES['userfile']['name'][$i]) { $uploadfile = …

Member Avatar for realworldmedia
0
115
Member Avatar for sowh4t

Really really need help with this one! I need to convert from php to mysql so that it reads language information from mysql, i made mysql table already but I just don't know how to change from php to mysql <?php session_start(); header('Cache-control: private'); if(isSet($_GET['lang'])) { $lang = $_GET['lang']; $_SESSION['lang'] …

Member Avatar for diafol
0
257
Member Avatar for rawrawrs

Hi. I'm a newbie in php, and I recently bought a book called PHP and MySQL Web Development by Luke Wlling and Laura Thomson. I was able to make an order form in Chapter 1, but in Chapter 2, I have to process orders so that every time I fill …

Member Avatar for rawrawrs
0
269
Member Avatar for gilgil2

Hi I am trying to allow users to update records in a MySql database through php forms. One problem I am having is with a drop down field for dates. I want to echo the date already in the database so that the drop down menus is set to that …

Member Avatar for gilgil2
0
186
Member Avatar for zspoja

I don't have any proper experience with MySQL but need to make a query from python to a database that would return a list of vacant apartments. So, I know the number_of_beds, start_date and end_date and need to get a list of available apartments. The two MySQl tables that I …

Member Avatar for zspoja
0
735

The End.