7,368 Topics

Member Avatar for
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
113
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
254
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
268
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
734
Member Avatar for DaveyMoyes

hi everyone, I am looking into a small problem I have with a mysql database. At the moment users can upload upto 4 images per item. I am using php to display the images from the database, but if a user has only uploaded 2 images I am getting empty …

Member Avatar for smantscheff
0
135
Member Avatar for rogerg

I want to allow registered members to upload files to the file system I have two mysql tables members for registered users and a table files to have a trace which member uploaded which file. now, I only would like to allow the upload of PDF's to the file system. …

Member Avatar for rogerg
0
222
Member Avatar for bbaaking

hi, I’ve got a big problem. Could anyone give me a hand? My aim is:Remove the duplicate data, that is, the various entries of EndTime and Qos for a same ServiceID due to the repeated feedback. The rule is to only keep the records with the lowest Qos for a …

Member Avatar for bbaaking
0
216
Member Avatar for |-|x

During some recent project issues I found myself asking this very question: **Does MySQL short circuit WHERE clause statements?** After doing some research and finding that several other people and technical forums have posed this question, with several answers pertaining to be intelligent but that amount to *"i don't know"*, …

Member Avatar for |-|x
0
2K
Member Avatar for A T Smith

I have created a simple database designed to accept domains and their associated TLD values: **CREATE TABLE domains(name VARCHAR(50) NOT NULL, PRIMARY KEY(name), tld ENUM('.com', '.net', '.info', '.org', '.co.uk', '.co', '.biz', '.info', '.de', '.me', '.nl', '.it', '.ch', '.li', '.us', '.name', '.ws'));** ...and I now need to display a form with …

Member Avatar for blocblue
0
136
Member Avatar for blaaam

Hi! I have started learn about Query and PHP, and i don't know what to do next. I have made table with query help i can show in table records from my Database, so far i have well, but next what i want to do is every record in table …

Member Avatar for Biiim
0
320
Member Avatar for Sonia11
Member Avatar for MarPlo
0
78
Member Avatar for nova37

i have little problem with one algo . first i have two tables there are above one lac records in each table . table 1X structure id domain 1 google.com 2 daniweb.com 3 yahoo.com table 2X structure id domain 1 google.com 2 facebook.com 3 youtube.com now my task is to …

Member Avatar for smantscheff
0
210
Member Avatar for rogerg

Hello, I'm trying to set up a website where user can upload files to which should be readable by everybody. Logged users should be able to comment on the files and rate the files. I'm new to MySql and quite new to PHP so it has taken me already lots …

Member Avatar for rogerg
0
497
Member Avatar for |-|x

Ok, so the scenario is a database which stores customer contracts (to keep it simple) so that every time a contract is expired and renewed a new version is created in the database to reflect any changes (terms, price etc). My page needs to display a list of the latest …

Member Avatar for |-|x
0
148
Member Avatar for riahc3

Hey I want to search for a text string but I dont know what table or column it is in. I just know the database that it is in. I know also that the type is a text type. Any query I can do or in MySQL Workbench? Thanks!

Member Avatar for smantscheff
0
435
Member Avatar for showman13

OK, this is probably a variation on a previous question but the original question was never resolved, so I will present it on it's own to avoid confusion. I have a member data table called 'members' Primary key is 'mem_id' I have 7 different 'position' tables called position_1, position_2, position_3, …

Member Avatar for smantscheff
0
231
Member Avatar for Collossus

I am having problems getting getJSON call to work. At the moment it doesn't retrieve any data, however when I change the '$.getJSON' to ' $.get' it retrieves the data in it's encoded format: [{"Page":"User Journey","Description":"Interactive User Journey Diagram","Bounce_Rate":"0","Avg_Time_On_Page":"0","Page_Views":"0","Click_Rate":"0"} What am I missing from the $.getJSON call? getstatistics.php: $query="SELECT Page, …

Member Avatar for pritaeas
0
130
Member Avatar for ilyons

Hey all, Some rows of a single table in a database that I administer manage to have gone missing. Not that big of a problem: I have a backup. The issue is that there has been more information added since the old data was lost, so I can't do a …

Member Avatar for ilyons
0
270
Member Avatar for |-|x

I have a query in which I need to display some group function figures SUM COUNT etc from a joined table. I also need to select the latest version (by datetime) of a matching record from a separate table, which I can do using an ordered subquery in the join. …

Member Avatar for |-|x
0
210
Member Avatar for fcvolunteer

I had my wordpress site up and running just fine but when I visited it recently I got the following error: > *Your PHP installation appears to be missing the MySQL extension which is required by WordPress.* I contacted the person who set up my database and was told > …

Member Avatar for fcvolunteer
0
270
Member Avatar for smartadolf

am total newbie to programming, apart from knowing SQL, the thing is i have been given a MYSQL database containing various information about kids diseases and a web interface written in php to create reports from the database that can be accessed via the interface. there are almost 25 different …

Member Avatar for smartadolf
0
162
Member Avatar for tubesnube

Hi, wondering can I get some help here please as this is incredibly frustrating. I have a database that contains files and I want to be able to search those files by putting in a ID number. In my databse my doc_id is the primary key, and I want the …

Member Avatar for tubesnube
0
294
Member Avatar for stevo356

Hi All, I'm having a problem with a query - which is based on conditional user inputs. In all circumstances, the outputted query ALWAYS works in phpmyadmin returning rows where applicable, but not always in php. No errors are displayed, with error reporting set at E_ALL, and mysql_error hasn't been …

Member Avatar for pritaeas
0
251
Member Avatar for showman13

Good Morning, I have an ever growing member database that is currently at around 6000 (developed over the past 2 weeks), and expect it to be in the hundreds of thousands within a few more weeks... My problem is that alot of members are using a single email address for …

Member Avatar for showman13
0
192
Member Avatar for jrlittle86

I have an application written in VB.Net with a MySQL database that is working fine in my development environment. I would like to create an installation package to test on other computers. The install package should include: 1. Check for .Net 4 - if it doesn't exist then install it …

Member Avatar for Reverend Jim
0
313
Member Avatar for lazo87

Hello peeps! I've got an issue which I am trying to sort out. I am trying to build a website where ppl can search for car's sell and buy. I got stack where I had to make the search option on the website, so I started looking on google where …

Member Avatar for lazo87
0
216
Member Avatar for Jfunch

What I need to do is search brand names, find all the brands that start with the letters A-E and put those under a header on my webpage. Then search F-O and then P-Z and do the same thing. How would I go about querying the database to get the …

Member Avatar for |-|x
0
94
Member Avatar for nathmack

Hi, I have been trying to solve this for ages and just can’t seem to get it right. I want to do 2 things here, i am getting an array out of a mysql database (i am getting the user’s id) and then converting that array into a string and …

Member Avatar for |-|x
1
144
Member Avatar for phplover

Hello, Can someoneone tell me when you `prepare()` a statement (in my case an update statement) and then `execute()` it, i then check using `rowCount()` after the update query (see code below) if `rowCount() > 0` if it is then a match was found and update took place, but i …

Member Avatar for phplover
0
196
Member Avatar for nathmack

hi, I am having trouble finding the problem here. i also can't really find anything great on the net to help me. I keep getting an error saying: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax …

0
48

The End.