What it want from me?
<?php
if (isset($_POST['submit']) &&
$_POST['submit'] == "Update") {
$query_update = "UPDATE preturi SET
preturi = '" . $_POST['preturi'] . "'
WHERE username = '" . $_SESSION['user_logged'] . "'
AND password = '" . $_SESSION['user_password'] ."'";
$result_update = mysql_query($query_update)
or die(mysql_error());
$query = "SELECT * FROM user_info,preturi
WHERE user_info.user_id=preturi.id_ofertant
AND username = '" . $_SESSION['user_logged'] . "'
AND password = '" . $_SESSION['user_password'] . "'";
$result = mysql_query($query)
or die(mysql_error());
$row = mysql_fetch_array($result);
?>
<b>Your account information has been updated.</b><br>
<a href="user_personal.php">Click here</a> to return to your account.
</p>
<?php
} else {
$query = "SELECT * FROM user_info,preturi
WHERE user_info.user_id=preturi.id_ofertant
AND username = '" . $_SESSION['user_logged'] . "'
AND password = '" . $_SESSION['user_password'] ."'";
if (isset( $query) && !empty( $query)) {
"<!--" . $query . "-->";
$result = mysql_query( $query)
or die ("invalid query 4: " . mysql_error ());}
while ($row = mysql_fetch_array($result)){
?>
"<p><form action="updatepreturi.php" method="post"></p>
<?php echo$row['id_manopera'];?>:
<input type="text" size='2' name="preturi"value="<?php echo $row['Pret_manopera'];}}?>"><br>
<input type="submit" name="submit" value="Update">
<input type="button" value="Cancel" onclick="history.go(-1);">
</form>