Hi,
I am having trouble achieving the outcome I am looking for with a mysql
query .
The query below pulls information from two tables: profile_images and
name_list.
It pulls 6
random images where the name_list.id matches the
profile_images.vref but also checks that the 'class'
field from name_list is
equal to '5'.
$index_thumbs = mysql_query("SELECT DISTINCT * FROM profile_images,
name_list
WHERE profile_images.vref = name_list.id AND name_list.class = '5'
ORDER BY RAND() LIMIT 0,6");This is working fine for pulling 6 random images that meet those
requirements but I'd also like to to make the profile_images.vref /
name_list.id
UNIQUE as there are multiple images for each each
name_list.id - So therefore I'd like to return 6 unique images from 6
id's in the name_list rather than having cases where multiple images show up
from one name_list.id
I'm hoping this is going to be a simple adjustment to someone who knows what
they're doing :)
Thanks in advance.
Steve
Blogs related to Unique Image Query
Unique file name
Each client may have any number of documents scanned, so I would like to store the
images with filenames that describe the client number and a
unique sequence for that client, for example Client1234-001.tif, Client1234-002.tif,
...
Copyright your Hologram
It may, however, be noted that the ROC’s formal registration process takes a few months, various clarifications/ visits, and there is practically no possibility of any prompt search
query etc. India is signatory to the Berne Convention
...
Create Drupal Module
All of your module's files must be prefix 'phonedir'. Your drupal configuration file must be placed at: /usr/local/apache/htdocs/drupal/sites/default/settings.
php Please edit settings.
php to add MySQL connection to the aother database:
...
Default Root Password in Infrant (now Netgear) ReadyNAS "RAIDiator"
Even if the root password is
unique per device (due to the MAC address being part of the hash), it cannot be considered as secret. First, if the NAS device is on the local LAN, one can easily
query the MAC address with an ARP request.
...
PHP-MySQL Interview Question - 2
Q:90, What is SQL Injection in
PHP security? A:90, SQL injection attacks are extremely simple to defend against, but many applications are still vulnerable. Consider the following SQL statement:. This
query is constructed with $_POST,
...
MySQL General :: RE: Show certain information on index page.
php my_db_sel(); $query_count = "SELECT count(*) FROM phplist_listuser WHERE listid = '1' "; $display = mysql_result(my_query($query_count),0,0); echo $display; ?> FREE
Unique Image Hosting.