Jump to content

Help with turning a table fielt into a link


darkfreaks

Recommended Posts

ok now that it is linked ot conduct i want conduct.php like

 

<?php///if not logged in //// 
if($_SESSION[userlevel] != 1){
///echo
}else { echo "<table><tr><td><a href='green.gif'><img src='green.gif'></a></td><td><a href='yellow.gif'><img src='yellow.gif'></a></td><td><a href='red.gif'><img src="red.gif"></a></td></tr></table>";?>
<?php
/// array images

$image= array(green.gif,yellow.gif,red.gif);


/// if clicked on green.gif code insert it into the database 

/// if clicked on yellow.gif insert into database


/// if clicked on  red.gif insert it into the database


?>

Link to comment
Share on other sites

Basically i want it so if you click on red.gif it inserts into red  and same with the rest of the pictures.

 

and then i want to echo it somehow on the page echo it so it is like echo "congrats $username you have seleted The Behavior color red or whatever image they selected"; after it updates into the database.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.