I am stuck, my code should manage contacts and be able to alter them.
I would like to click to the Name1, Name2, Name3 and be able to see on the right hand side and be able to submit/save it in my SQL DB.
<?php
include("db_con1.php");
// left side people list
$peoplelist='SELECT contact_first, contact_sur, contact_mobil FROM contactmain WHERE status=1';
$queryl = $pdo->prepare($peoplelist);
$queryl->execute();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Email sending program</title>
<link rel="stylesheet" type="text/css" href="css/adminolok.css">
<link rel="stylesheet" type="text/css" href="css/menu.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$('leftnavigation a.names').click(
var thisId = $(this).attr('id');
$('.midtop input').val( $(this).html() + $(this).attr('id'); );
</script>
</head>
<body>
<?php include("menu.php"); ?>
<div id="leftnavigation">
<ul>
<?php foreach ($queryl as $i => $rowl) { ?>
<li >
<a href="#" class="names" id="<?php echo $i; ?>">
<span class="name">
<?php echo $rowl['contact_first'].' <strong>'.$rowl['contact_sur'].'</strong>'; ?>
</span>
<br />
<span class="mobil"><?php echo $rowl['contact_mobil'];?></span>
</a>
<?php }?>
</li>
</ul>
</div>
<div id="midtop">
Change your name: <input type="text" name="name" />
</div>
</body>
</html>
As I am getting more and more help I feel that I will be... but it is still full of bug as it doesn't work yet. Any help would be really appreciated.
Made some alteration as I've been taught to do so:)))) thanks for that
I am stack with my code to pass the info from left to right. What does this have to do with mySQL?