Može pomoć!? hvala:)

<?php if ($_GET['id'] != "") { include_once "scripts/mysql_connection.php"; $id = $_GET['id']; $hashpass = $_GET['sequence']; $id = mysql_real_escape_string($id ); $id = eregi_replace("`", "", $id); $hashpass = mysql_real_escape_string($hashpass); $hashpass = eregi_replace("`", "", $hashpass); $sql = mysql_query("UPDATE myMembers SET email_activated='1' WHERE id='$id' AND password='$hashpass'"); $sql_doublecheck = mysql_query("SELECT * FROM myMembers WHERE id='$id' AND password='$hashpass' AND email_activated='1'"); $doublecheck = mysql_num_rows($sql_doublecheck); if($doublecheck == 0){ $msgToUser = "

Your account could not be activated!

Please email site administrator and request manual activation. "; include 'msgToUser.php'; exit(); } elseif ($doublecheck > 0) { $msgToUser = "

Your account has been activated! Log In anytime up top.

"; include 'msgToUser.php'; exit(); } } print "Essential data from the activation URL is missing! Close your browser, go back to your email inbox, and please use the full URL supplied in the activation link we sent you. "; ?>

neće mi update napravit, mislim da je sve ok ali možda je problem u dozvolama na serveru, evo ako tko zna bio bi zahvalan!

LP

[quote=“EuroNet”]<?php

if ($_GET[‘id’] != “”) {
[/quote]

vjerovatno nije do toga, al jednom imao problema s ovakvim uvjetom pa se trudim umjesto ovako nečega koristiti if ( isset($_GET[‘id’]) )

Može.
Ubuduće piši opisni naslov teme.

Nema na čemu.


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja