Posts by Bruno Ferreira • 129 points
9 posts
-
0
votes2
answers2710
viewsQ: Take random value mysql
I would like to know some way to get some random value from Mysql without repeating, I am using this line: $query = mysql_query("SELECT * FROM users ORDER BY RAND()"); but it repeats quite a lot of…
-
1
votes1
answer804
viewsA: Get image name in mysql for id
I changed line 24 to id, and used $_GET to get the id in the profile.php :D <?php require_once("config.php"); mysql_connect("$host", "$usuario", "$senha"); mysql_select_db("$db"); $user =…
-
0
votes1
answer804
viewsQ: Get image name in mysql for id
I would like to know how to get the image name by user id, I have this comic: I would like to show only the image of the Claudiomiro, and not all that are in the comic... this way: I have this code…
-
1
votes1
answer161
viewsQ: Upload mysql image
I am in need of a help to develop a code to store images in the database, so far I have not achieved anything... I don’t know if it is better to store the file in a directory and only the name in…
-
0
votes0
answers29
viewsQ: Return database result with password only
It is possible to return something from the Mysql database only with a "password"? I have two names "so-and-so" and "Ciclano" so-and-so is birthday day 11/07, So-and would have to put his name and…
-
0
votes0
answers47
viewsQ: How to use Join, mysql/php
I’m starting with PHP now, and I’d like to know what it’s for and how to use Join, I think it would help solve my problem, but I don’t even know where to start...
-
2
votes2
answers253
viewsQ: Display different objects with equal groups
I tried it in various ways, got different results some good, others not so much. I would like to do something like store group/objects in Mysql and display on screen using PHP I have this table I…
-
6
votes3
answers1474
viewsQ: How to repeat columns up to "x" of times
Well I have a column in my database with names, I write it on the screen, through this code: <html> <head> <title>Pagina Inicial</title> <meta charset="utf8"> <link…
-
2
votes1
answer1459
viewsQ: How to force the maximum table width?
Can you set the width to be occupied by the table? forcing it to make a line break and continue when it reaches that maximum width?