7,368 Topics

Member Avatar for
Member Avatar for thearts.beach

`$data= "echo * from table1 where id=$_post[ID] "` can anyone see why this line duz not compute please ?

Member Avatar for thearts.beach
0
591
Member Avatar for PriteshP23

I am not able to insert data from CSV file with "¤" Character. Please help me to solve the problem. Thanks a lot in advanced. CSV File: FirstName¤LastName¤City¤Year |$| Bill¤Gates¤NW¤2013¤|$| David¤Beckham¤London¤2010¤|$| PHP Code: $csv_file = "Contacts.csv"; $csvfile = fopen($csv_file, 'r'); $theData = fgets($csvfile); $i = 1; do { $insert_csv = …

Member Avatar for PriteshP23
0
908
Member Avatar for PriteshP23

I have 3 tables as mentioned below: Users Code Name NW London 1 Bill ---- ---- Contacts Code Country 1 USA Location Country City USA NW I need to update Users.NW = 1 in the Users Table. There are other cities like NW, London, Paris etc. In respective cities i …

Member Avatar for PriteshP23
0
1K
Member Avatar for Secretary

I installed a new script onto a Linux server using cpanel. > ERROR: Nothing parsed, nothing printed > Invalid query > SELECT * FROM `dating_country` WHERE `id` IN () > MySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for pritaeas
0
205
Member Avatar for khushhappy

Dear Respected Members/Users, I Cannot add/insert mysql last insert id in the third table. Kindly please help me out in adding the para_id into the last insert query. I have demonstrated in the Image file which will help alot in getting my point. Waiting for response. thanks. ![94fea611ba93443aecd1d5f13b6b82c8](/attachments/small/2/94fea611ba93443aecd1d5f13b6b82c8.gif "align-left")

Member Avatar for khushhappy
0
175
Member Avatar for wallet123

why does this thing keeps on showing? what should i do? ![a8bc6b5cc903d7ad96a55f4a95e2f57e](/attachments/large/3/a8bc6b5cc903d7ad96a55f4a95e2f57e.png "a8bc6b5cc903d7ad96a55f4a95e2f57e")

Member Avatar for pritaeas
0
137
Member Avatar for sanbhu2105

hello guys i have created the below codes. the first one is the mysql select statement which works fine when i echo. the second one is an html/css table i created. i am stuck to the point where i can merge both of them so that i get a nice …

Member Avatar for broj1
0
952
Member Avatar for deepak.fugo

Hi All, I want to select rows from dynamic created tables i.e we have tables like web_analytics_mm_yy(ex: web_analytics_06_13, web_analytics_05_13, web_analytics_04_13 and so on) web_analytics -> table name mm_yy -> month_year. I know this can be acheived in PHP by using for loop { // CONSTRUCTING SQL STATEMENT USING // UNION …

Member Avatar for diafol
0
283
Member Avatar for JukesK

firstly I apologise in advance if this has been asked 100 times over.. I've been ambushed by my company i "HAVE" to use an old Mysql 4.1 server something to do with an atiquated system still running that cannot be upgraded for x,y and z reasons. but they want a …

Member Avatar for JukesK
0
202
Member Avatar for Marie22

I have a problem that I've racked my brain with for two weeks without success. I have a table named 'user_answers' containing columns 'user_answer_id' and 'user_name'. Each 'user_name' has 25 rows. I'm trying to compare/count the number of rows where user A and user B match answer_id. SELECT COUNT (*) …

Member Avatar for Marie22
0
657
Member Avatar for brandon66

Hello, I was wondering how i would create the Units table for this. Would i just set both Unit_ID and Customer_ID in the Units table as foreign keys or do i need to have a primary key like Customer_Unit_ID then have the two foreign keys? Customers Customer_ID Customer_Full_Name Contact_Name Address_1 …

Member Avatar for brandon66
0
161
Member Avatar for a.dhamumca

hi, i want to store date time whan i click radio button(name login time)in mysql. if i click logout radio button it should store logout time. ples help me... php and mysql code ...

Member Avatar for pritaeas
0
248
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to limit users on how many database entries they can insert then once they have reached 100 (Max entried) entries it will delete old entries. So if the user has reached 100 entried and they try to insert another entry …

Member Avatar for joshl_1995
0
380
Member Avatar for simirnov

Hi All, I am a beginner in php and working on admin side of a small website. I have attached a PHP CKEDITOR to the admin page so that the admin may edit the pages text. Here, i am a bit confused about one thing and that is about how …

Member Avatar for Qaalid
0
2K
Member Avatar for shlokka

hi everyone im having issues with some results i need, basically i have a view page that needs to output results based on earnings per month. all results are collected and outputted in rows, is there anyway in php i can group all the results by the earning month instead …

Member Avatar for asprin
0
164
Member Avatar for anojs

[B]insert.php[/B] [CODE]<?php $dbun = "$_POST[dbun]"; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO $dbun (sn, date, particular, dr, cr) VALUES ('$_POST[sn]','$_POST[date]','$_POST[ptr]','$_POST[dr]','$_POST[cr]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con) ?> [/CODE] [B]DB name = my_db[/B] [B]user.php[/B] …

Member Avatar for dono.reseller
0
259
Member Avatar for eoliva

I need to store the values of a textarea tag using a form to submit the value and finally store to a mysql database table. Here is what I have, I am sure its something dumb, but its been a while since I have used php. [CODE] <?php if(isset($_POST['submit'])){ $con …

Member Avatar for DenaEden
0
4K
Member Avatar for Eagle.Avik

hi, i am new to mysql and also to php, i am trying to add a feature to a webpage, for showing some latest records from a mysql databse. i managed to show records from mysql database, but the problem is i only trying to show the first four records …

Member Avatar for Eagle.Avik
0
840
Member Avatar for thearts.beach

Hi, I am trying to learn how to use a data base to store photos and such, I can now get info into the base and can get all the records to display , this is not what I had planed, So that lead me on a surch for answers …

Member Avatar for thearts.beach
0
383
Member Avatar for ronaldpaul

Hi, In Virtual Box I've installed Fedora 17 and setup LAMP development environment. I've set the static ip to access the localhost and the applicaions/projects. Now I would like to configure it as to access them using the static IP from the host machine (Windows 7 OS). How can I …

Member Avatar for CimmerianX
0
274
Member Avatar for bops

Hi there, This question relates to data structures, performance and approach to a problem. It is best explained with example so bear with me. For the record, I will be using a combination of PHP, MySQL and Apache server on a dedicated Linux server. The problem is how we would …

Member Avatar for bops
0
311
Member Avatar for Zagga

Hi folks. I'm developing a MySQL database driven, PHP web application that will be used by the general public and I'm starting to get a bit paranoid about database security. While creating the site I was using a single, full privileges database user to connect on each page that required …

Member Avatar for Zagga
0
241
Member Avatar for Moderns

Hello, I need to know what's the best way to search tables with million records. I have a table called <people> and this table has the column: <status> Status might be more than one word like: "I am happy today and the weather is nice". Also, it might be in …

Member Avatar for Zagga
0
250
Member Avatar for GreenGERMBUBBLE

My code: <?php include("db.php"); if (isset($_POST['username']) && isset($_POST['password']) && isset($_POST['email'])) //Prevent SQL injections $username = mysql_real_escape_string($_POST['username']); $email = mysql_real_escape_string($_POST['email']); //Get MD5 hash of password $password = md5($_POST['password']); //Check to see if username exists $sql = mysql_query("SELECT username FROM usersystem WHERE username = '".$username."'"); if (mysql_num_rows($sql)>0) { die ("Username taken."); } …

Member Avatar for broj1
0
236
Member Avatar for vizz

windows xp was crashed, so after formatting & installation of windows I installed (overwrite of all existing files) **XAMPP** which was on different drive, other than **C:\**. As it was not lost when windows was crashed, I just overwrite the all files, this had happened with me lot of time …

Member Avatar for drjohn
0
221
Member Avatar for xxmp

Hello I have these database countries ->country_id ->country_name ->language counties ->county_id ->county_name ->language towns ->town_id ->town_name ->language locations ->location_id ->location_name ->language streets ->street_id ->street_name ->language and i have users that select country,county,town,location and optional street at a selected language and i want to show the show the informations of address …

Member Avatar for xxmp
0
306
Member Avatar for nerdynewf

I have code to upload a image to a folder (storing location and image info in a mysql database) with a separate page to display the images in albums on a website. Can I change this existing code to allow me to upload multiple images at once? here is the …

Member Avatar for nerdynewf
0
246
Member Avatar for aspertrace

<?php $username = $_SESSION['username']; $result = 'sample'; $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $sql = "Select FirstName from Person Where LoginID = (Select LoginID from UserLogin Where Username = '$username')"; $result = mysql_query($sql,$con); echo $result; ?> I'm kinda new to this server-side scripting …

Member Avatar for aspertrace
0
214
Member Avatar for dhatsah

This is a school project which I am a bit lost on. I have two tables with a relationship between course +-------------+----------------+ |id(primary) |coursename | +-------------+----------------+ enrolled +-------------+----------------+----------------+ |id(primary) |studentName |courseid(FK_from| | | |course.id) | +-------------+----------------+----------------+ I can insert a new course into the course table using the INSERT syntax …

Member Avatar for diafol
0
192
Member Avatar for turpentyne

I've just run into a problem, when pulling location data using a link table. There can be two entries in the link table, like so: item_id | contentent | country | state ------------------------------------- 123 | 1 | 2 | 20 123 | 1 | 2 | 21 When I echo …

Member Avatar for diafol
0
173

The End.