Jump to content

random data

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
redsox8792

redsox8792

    Newbie

  • Members
  • Pip
  • 2 posts
So heres what I want to do. I want to display, for example, a random picture from a database. Along with it I want to display something text, such as the name of the person in the picture. I want a couple of names to appear though, and the user can select which one they think is correct. So one of the names has to be the right name. Do I need to different databases for the pictures and text? I'm kinda new.

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Create a table with a binary blob for the image and a few varchars for the different names, an int as primary key and a field for correct answer (int with value 1 to x for correspending name?)
use the tutorials in the php tutorial section about storing and fetching images to/from database.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#3
redsox8792

redsox8792

    Newbie

  • Members
  • Pip
  • 2 posts
k thanks