I would do something like
$array = array("quote1","quote2");
shuffle($array);
echo $array[rand(0,count($array))];
Edit:
If you are getting the quotes from a db then use ORDER BY RAND() in your query
Yes the best way to this is to have one query which will get the process (use a while loop to loop through each process) then in the loop you will have two queries (or one joined query) to get the inputs and outputs, then use php to echo them or create an image using them
It won't have an exact tutorial on their for that but does have all the parts required.
http://www.tizag.com/phpT/forms.php
http://www.tizag.com/mysqlTutorial/mysqldelete.php
So if i am getting it correct,
you have a table with inputs?
And one with outputs?
Or are they both in one table, and you want to loop through each input and find the process and then the outputs for that process?
Yes except session_register is deprecated, so it should now be
$_SESSION['session_name'] = $session_value;
And try to use <?php instead of <? just better coding practice
We are not here to make your site bit by bit for you, please try and work it out on your own.
http://tizag.com
and
http://w3schools.com
are great places to learn php
Please use php tags.
Code doesn't need to look pretty and escaping characters is fine.
But if you don't want to then you can do
$var = <<something
stuff
something>>
that would allow you to insert html without the need of escaping.
Or similar, one of the other members may know
No, that is not what i meant when you use it in links and/or submit them as pages in your site map it can make the search engine believe it is a directory and in effect come up with a 404
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.