Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\fullc.php on line 29
$tableid = $_GET['id'];
$tablecode = $_GET['code'];
$query = "SELECT * FROM nmr WHERE id=$tableid";
$query = "SELECT * FROM nmr WHERE code=$tablecode";
Right. Quoting made it work. Thanks.
I still need to sort out protecting my database.
I may just password protect the site (fail)
Aye. I've been taking a backup every so often. But automated would be far more useful.
I also handwrite each entry in my lab book :D
<form name="openlocation"> <input type="text" name="code" value="AT"> <input type="button" value="Go To" onClick="document.location = "fullc.php?="'document.openlocation.code.value';; "> </form>
<input type="text" id="code" value="AT"/> <button type="button" onclick="location.href='./fullc.php?code='+$j('#code').val();">Go To</button>
<input type="text" id="code" value="AT"/> <button type="button" onclick="location.href='./fullc.php?code='+document.getElementById('code').value;">Go To</button>
Yay, nearly there. Just the 'code' needs to be in single quotes in the final URL.
Though that now seems to have broken somehow :@
Fantastic. Done. Sorted. Working. :D
Also, don't worry, I'll be keeping you occupied with more questions in the coming weeks/months. :Y