0
votes
2answers
37 views

I'm having trouble with php while loop inserting data in to mysql database

all the php code is below. the script works fine up until the insert in to cinema database table part. Ive echo'd the contents of the variables each run through the loop to ensure that they have all ...
0
votes
0answers
22 views

Symfony 2 Entity Relationships

Using symfony 2 I have a users, who can have many notebooks whilst a notebook can have many notes. Now I want to display all 'public' notes for the current logged in user who I get by doing $user = ...
0
votes
2answers
24 views

Unable to display image from MySQL database using php

I have a Products_Images table which stores the images in BLOB format. I want to show all the images and product details in 'View All Products' page. To accomplish this task I have created the ...
0
votes
1answer
38 views

How to change image link using PHP?

I have been working on PHP gallery and creating 'pretty URLs'. But before going with the .htaccess route, I would like to see if I can clean up my link using PHP. I am sorry if this sounds so stupid ...
0
votes
1answer
16 views

design generic code for different DBMS in php

I'm developing an application in PHP 5.3, they want switch between MySQL and PostgreSQL and oracle easily, they want edit just "host" and "Dbname" and "password" and choose the target database then my ...
0
votes
3answers
20 views

My function runs successfully, but the database shows a row with zeros or blank space

I'm designing a crud app to store storage data in a database. Using php, mySQL (with the help of XAMPP). I keep running into this problem, though, where I click "Submit" on my form and the function ...
1
vote
2answers
29 views

Entity relationship

I'm working on a symfony 2 project and wondered about the correct relationship of my entities. I have users who can own many notebooks and a notebook can contain many notes. A notebook is tied to a ...
0
votes
1answer
25 views

Saving form data, inside wordpress?

I am adding onto an opensource meta box script... View the source here What I am doing is essentially adding contents inside a textbox as a layer (textbox is cloned each time a user wants a new ...
1
vote
3answers
46 views

Nothing shows up with WHERE clause mySQL

I'm trying to put through a basic search through my Database based on a user entry, and I could not get it to work, so I'm doing a hard coded search just so I can get it to work... and I can't. My ...
-1
votes
1answer
32 views

Replacing server-side language by JavaScript [on hold]

I would like to know if it is possible to replace a server side language (PHP, C#, Java EE, etc) by JavaScript to do the same work (accessing a database, using sessions, etc). I hate PHP the more I ...
1
vote
4answers
32 views

Check if mysql field contains a certain number in mysql query

I am having a table with a column that has few ids that were put into database with multi select. Column for example contains: 1,4,5,7,9. Is it possible to check if this column contains for example ...
3
votes
5answers
52 views

Delete Specific MySQL Database Entry

I am trying to delete a specific entry in my MYSQL Database. Database: PhotoID, IDCount, UserID. This is my code for deleting a photo depending on the ID. function delete($IdPhoto) { $result = ...
0
votes
4answers
59 views

Delete PHP MySQL Query Error

I am currently having trouble deleted a photo from my database after a user uploads it. This is my index file. case "delete": delete((int)$_POST['IdPhoto']); break; This is my API file (Trying to ...
0
votes
1answer
28 views

Insert a new field when primary keys from two separate tables match

I have two tables one is called Players and the other is importdata. The importdata table consists of two fields the player id (PID) and the photo (Photo). In the Players table I created a column ...
0
votes
5answers
61 views

PHP alert message

I know the first thing everyone is going to say is that this has been posted hundreds of times; however, I have tried all the different methods people have suggested with still no luck... I am trying ...
0
votes
1answer
27 views

Foreach list with different database status

I am working on a project (real estate) and need to display a list of properties. (pictures) The properties are in a database. Properties can have two 'objects_status': 1=for sale, 2=sold. Sold ...
0
votes
4answers
45 views

how to use a query result() value in another query[codeigniter]

Update All of your methods work. Thanks @NiloySaha, @AeroX, @Ray, @SusheelMishra. But what if I want to compare more fields such as work experience, salary, etc? @Ray do I just add more params ...
0
votes
1answer
37 views

CodeIgniter - Ajax validation not working correct and not storing data in database

I'd like some help please. From my tests till now, I get these: If validation fails - The div #ajaxResults from my view gets the class alert-error and shows the errors (as expected). If validation ...
-2
votes
2answers
72 views

Syntax error, unexpected '' [duplicate]

I keep getting this error whenever I try to run my webpage. I'm not sure what is causing this; I've tried moving around the ' and " a bunch of times but still getting the same error... Here is the ...
0
votes
1answer
36 views

How can I extract metadata from 10 000 PDF documents and store it in my database?

I'm currently building a document-sharing platform, and to attract as many users as possible, I want to already add 10 000 documents to my platform. The documents are only PDF files. I'm working with ...
0
votes
5answers
69 views

What is the best way to create a CMS program [on hold]

I've a project to create a CMS on PHP, without using Wordpress or joomla. The project will have an Admin panel and an user interface. Admin can insert products, categories,images and user can view the ...
0
votes
2answers
49 views

Unable to Insert Multiple images in MySQL Database using PHP

I am trying to insert multiple images in MySQL database. The program was working perfectly fine when I was inserting a single image in database, but now when I have added 3 images, its giving me an ...
-1
votes
0answers
32 views

PHP with MS ACCESS database [on hold]

I am some how unable to connect my ms access database with PHP. When i am calling values from the database then instead of the values being printed the code it self is getting displayed. I am unable ...
0
votes
2answers
28 views

Unable to insert Images record in MySQL Table

I am creating a PHP program which takes Product information and its images as input and store the information in the database. I have written the following code, its inserting the 'Product ...
1
vote
0answers
20 views

PHP apc caching variables and periodically update database

Ok I've seen many questions but none actually solve my 'problem'. To put it simple. I have some sort of object that can be 'liked' so to speak. If someone likes it, the script is run ( through AJAX) ...
0
votes
3answers
61 views

PHP MYSQL ROW UPDATE BY adding 1

Hi there trying to do srcipt like Vote So Row bitwa_glosy are setted to 0 and when i press button post method should incrase value from 0 to 1. and should grown up everytime i pressed the button. ...
0
votes
4answers
32 views

Display information from MySQL Database on page using PHP

I have a database called test. In it there is a table called people. People has 4 fields: fname, lname, age, city. I have a page with a form where people can enter in data. <?php ...
-2
votes
0answers
20 views

save session shopping cart data into database

i want to save my session to database, to let user can refer the history of purchase, and so on~ but i no idea how to save the session to database, the code is i refer to youtube to build a session ...
0
votes
1answer
40 views

Update tables in database from tables in a different form

I have one working import xml to my mysql, which import to tables. Now I want to update with these imported tables my new tables. But I don't know how. The importer import from 3 different xml. ...
0
votes
3answers
44 views

Connecting to MySQL(WAMP) database with PHP

Here is what I am trying to do. I have an index.php page which accepts user input and then transfers it to infosubmitted.php <?php include('header.php'); ?> <body> <form ...

1 2 3 4 5 266
15 30 50 per page