Skip to main content

All Questions

Tagged with
2 votes
4 answers
37k views

PHP echo inside echo

I'm trying to call an HTML/PHP content that it's inside my database using: <?php echo $row_content['conteudo']; ?> When the row is called the HTML appears correctly but the PHP doesn't. I ...
André Ferreira's user avatar
2 votes
2 answers
30k views

How to display all the images stored inside a database

I am making a gallery that uses a MySQL database (yeah I know it's a bad practice but it's the requirement for the moment.) I can upload multiple images but I'm having trouble displaying all images ...
SimonCode's user avatar
13 votes
2 answers
280k views

Creating a search form in PHP [duplicate]

I am currently trying to complete a project where the specifications are to use a search form to search through a packaging database. The database has lots of variables ranging from Sizes, names, ...
LiamHorizon's user avatar
1 vote
3 answers
11k views

Auto Refresh a Html table every x seconds

I am attempting to refresh a table i have as the variables in there are constantly updated and i want to re-update those variable every few seconds. I have already done up code on my part by giving ...
nigel's user avatar
  • 101
6 votes
8 answers
48k views

Displaying message when no results found in PHP MySQL search

I have a PHP search script which queries a MySQL database. Currently, when no results are displayed the script shows and error. How can I make it display a message like "No Results were found" when ...
Callum Whyte's user avatar
  • 2,389
12 votes
14 answers
4k views

Displaying a table in PHP with repeated columns

I have the following data in a MySQL database: Autonum ID Name MetaValue 1 1 Rose Drinker 2 1 Rose Nice Person 3 1 Rose Runner 4 2 Gary Player 5 2 ...
hidden's user avatar
  • 3,236
7 votes
2 answers
2k views

How to generate a tree view from this result set based on Tree Traversal Algorithm?

I have this table: CREATE TABLE `categories` ( `id` int(11) NOT NULL auto_increment, `category_id` int(11) default NULL, `root_id` int(11) default NULL, `name` varchar(100) collate ...
Keyne Viana's user avatar
  • 6,202
5 votes
2 answers
7k views

MySQL query with limit and large offset taking forever

I have a directory that I've built with the PHP script below and it uses pagination to get 1002 results per page. The problem is that the farther you get in the pages, the longer they take to load. ...
user avatar
1 vote
3 answers
939 views

Which third party search engine (free) should I use?

As the title says, I need a search engine... for mysql searching. My website is PHP based. I was going with sphinx but my hosting company doesn't support full-text indexes! So a search engine to be ...
user avatar
-1 votes
1 answer
112 views

Obtain User ID when a user logs in using Username & Password

I need to input the USER_ID field of my USER table as a foreign key in another table. Therefore, I think I need to start a session when the user logs in. I'm having difficulty getting it to echo ...
user3183576's user avatar
-1 votes
5 answers
32k views

Loop over an insert Query in PHP [duplicate]

I am having trouble with insert the same value N time In SQL via PHP script. I have this vslue? Table Info column (ID,Name, LastName,) Valus ('',Alain,Alian); Whata i want to do is insert this ...
Apocaliptica61's user avatar
13 votes
4 answers
39k views

loop through $_GET results

If I had something like this: ?FormSub=Submit&qty=1&partno=ipod&notes=apple&unitprice=102.99&rowid=1&qty=2&partno=Ear+Buds&notes=Headphones&unitprice=45.99&...
user avatar
13 votes
2 answers
86k views

Send html form data to sql database via php (using mysqli)

I want to send the data inputted into an html form to my sql database, i.e., create a new row attributing certain values to certain columns. I know there are similar questions, I read the answers but ...
Alex's user avatar
  • 1,446
11 votes
3 answers
3k views

setting up a database for tracking which users have clicked which links?

I'll try and elaborate on my problem a bit more. I recently got an entry-level part time developer position with my university, in efforts to sharpen my dev skills. While I have used MySQL in the ...
tdc's user avatar
  • 5,364
8 votes
3 answers
5k views

How to implement MVC style on my PHP/SQL/HTML/CSS code? [closed]

I have been developing a program for the visualization of some data. My program takes specific input from a MySQL database and draws some graphs (libchart library), creates some tables etc. My ...
Ion's user avatar
  • 1,043

15 30 50 per page
1
2 3 4 5
8