Jump to content

Sistem Login/Register(Probleme)


SrYu

Recommended Posts

Salut fratilor, am inceput sa fac un gm de la 0 si am inceput cu sistemul de Login/Register, sunt la inceput de drum, am gasit tutorial frumos, am dat drumu la treaba, au mai aparut erori pe parcurs, am reusit sa le dau de cap,  am rezolvat prin a cauta pe site-uri, forum-uri, toate bune si frumoase pana cand am compilat, am dat drumu la server, am intrat pe el si nu apare sa ma inregistrez sau sa ma loghez. Ma uit sa vad daca am gresit eu ceva, nimic, ma uit la mysql_log si apare [16:20:54 01/29/19] [ERROR] CMySQLQuery::Execute[checkAccount] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''users' WHERE 'Name'='dani' LIMIT 1' at line 1 (Query: "SELECT * FROM 'users' WHERE 'Name'='dani' LIMIT 1")  . De 3 zile caut pe forum-uri, pe forum.samp.com, am gasit ceva, am verificat, tot nimic, ma tot uit ca prostul la sinaxa asta si tot nu mi dau seama ce e gresit, m am uitat la baza de date poate am bagat ceva gresit, tot nu reusesc sa gasesc rezolvare (https://postimg.cc/McRbj1SC) .Baza de date e facuta, XAMPP pornit si tot nimic. Aici este gm-ul pe care l am inceput https://files.fm/u/7f3fvj5c , poate ma puteti ajuta sa aflu ce poate fi gresit. Va multumesc anticipat si o zi faina sa aveti ! ?

Link to comment
Share on other sites

Acum 11 minute, Banditul a spus:

SELECT * FROM `users` WHERE `Name`='%s' LIMIT 1

Nu este apostrof cand specifici tabel/coloana. Este tilda ( ` ) sau poti lasa fara tilda, e acelasi lucru

a mers, iti multumesc din toata inima, de 3 zile stau, mersi inca odata si seara faina sa ai :D:D

Link to comment
Share on other sites

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.   Paste as plain text instead

  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. For more details you can also review our Terms of Use and Privacy Policy.