<a false="" return="" ).show();="" email_2008-10-09-ab-49_10_1.png="" 1="" pdata="" 10="" 2008-10-09-ab-49="" nmr="" ab="" data="" oct="" 2008="" bruk400data="" .="" ,="" src="" ).attr(="" img#spectra="" onclick="(" href="./nmr/bruk400data/2008/Oct/data/AB/nmr/2008-10-09-AB-49/10/pdata/1/email_2008-10-09-AB-49_10_1.png">F #2</a> <br/> <img id="spectra" style="display: none;" alt="" src=""/>
<a href='./nmr/{$row['machine']}/{$row['year']}/{$row['month']}/data/AB/nmr/{$row['servercode']}/{$row['nmrn1']}/pdata/1/email_{$row['servercode']}_{$row['nmrn1']}_1.png' onclick='$j('img#spectra').attr('src','./nmr/{$row['machine']}/{$row['year']}/{$row['month']}/data/AB/nmr/{$row['servercode']}/{$row['nmrn1']}/pdata/1/email_{$row['servercode']}_{$row['nmrn1']}_1.png').show(); return false'>{$row['nmre1']} #2</a> <br /> <img id='spectra' src='' alt='' style='display:none;'/>
onclick=\"...\"
<a href='$prefix{$row['nmrn1']}/pdata/1/email_{$row['servercode']}_{$row['nmrn1']}_1.png' onclick=\"$j('img#spectra').attr('src','$prefix{$row['nmrn1']}/pdata/1/email_{$row['servercode']}_{$row['nmrn1']}_1.png').show(); return false\">{$row['nmre1']} #2</a> <br /> <img id='spectra' src='' alt='' style='display:none;'/> </span
Still opens the image directly and not within the page.EDITED: 30 Nov 2008 20:46 by ANT_THOMAS
<a href='$prefix{$row['nmrn1']}/pdata/1/email_{$row['servercode']}_{$row['nmrn1']}_1.png' onclick=\"\$j('img#spectra').attr('src', this.href ).show(); return false\">{$row['nmre1']} #2</a>
(That also has the second url replaced with this.href)
Once you've done that it'll work.EDITED: 30 Nov 2008 23:14 by BOUGHTONP
$tableid = $_GET['id']; $query = "SELECT * FROM nmr LIMIT 5 OFFSET $tableid";
select * from nmr where id >= offset limit 5
edit: oh and you prob want a "order by id asc" just to make sure.
$tableid = $_GET['id']; $query = "SELECT * FROM nmr WHERE id >= $tableid LIMIT 5";
$getid = $_GET['id']; $tableid = mysql_escape_string($getid); $query = "SELECT * FROM nmr WHERE id >= $tableid LIMIT 5";
$tableid = mysql_escape_string($_GET['id']);
if (isset($_GET['id']) && is_numeric($_GET['id'])) { // No need to escape via mysql_escape_string as we // know it's numeric from the is_numeric test in the // if statement. $table_id = $_GET['id']; // sprintf can also be used to sanitise input from a user, // but it can make code harder to read. In this example %d // requires the variable to be an integer. The other types // are listed on the manual page. $query = sprintf("SELECT * FROM nmr WHERE id >= %d LIMIT 5", $table_id); // Rest of your code goes here }else { // ID is not set in the URL query or it is not a number, show an error here? }
Problem number something:
I have a load of the data I want in my database in the form of an Excel spreadsheet. I've now saved it as a CSV and removed all the lines already present. I thought I could import this using PHPMyAdmin but it turns out I can't. I've read that it's possible (from the PHPMA wiki of all places) but for me it only gives me the option to import SQL based files.
I've upgraded PHPMA versions from 2.11.6 to 3.1.0 with no luck.
How and where does one enable CSV imports/uploads?
Thank you!
All imported now. All the help from all round has been appreciated. No doubt I'll be back for more.
Actually, why am I only able to access PHPMyAdmin on the server itself and not on any locally networked PC?
http://www.heidisql.com/download.php
So infinitely much better than PHPMyAdmin. By fuck I hate PHPMyAdmin.
(have to allow remote connections from wherever you intend to use the app, obviously)