Member Avatar for cuonic

Hi all,

I'm making a website that enables easy sharing of Public PGP keys using PHP and MySQL server side and JS client side making it all nice and dynamic. The site works fine on localhost, but I have just uploaded it to my host, TuxFamily, and it doesn't work. I am unable to find out what the problem is with my query, because that is what I think is wrong.

Anyway here's the code :

index.php : http://pastebin.com/TqJryvC2
inc/pgpshare.class.php : http://pastebin.com/XXMv2PjK

Connections to the MySQL server are made via MySQLi, which connects correctly, all the other functions seem to work except GetUser1Key($id) Line n° 14 in index.php / Line n° 151 in pgpshare.class.php

Thanks in advance ;)

Recommended Answers

All 3 Replies

Is $id a string? If it is an integer, have you tried to bind with i instead of s ?

Member Avatar for cuonic

id is a string formed by the following line of code :

$id = substr(hash("SHA512", microtime()), 10, 10);
Member Avatar for cuonic

Bump ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.