Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16072

Re: How to retreive data from row and show it as link in a page

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: How to retreive data from row and show it as link in a page
Date 2016-01-04 22:56 +0100
Message-ID <568AEA95.5050507@arnowelzel.de> (permalink)
References <43088977-4e12-4d58-a977-aa114e491069@googlegroups.com> <5687D554.6050409@arnowelzel.de> <c65c6b16-208e-466f-ae7c-6a45a8811edb@googlegroups.com>

Show all headers | View raw


androidmaroso@gmail.com schrieb am 2016-01-04 um 20:57:

> Il giorno sabato 2 gennaio 2016 14:49:38 UTC+1, Arno Welzel ha scritto:
>> androidmaroso@gmail.com schrieb am 2016-01-02 um 12:18:
>>
>> [Getting the last record of a table in MySQL]
>>
>>> I've done this but without results :
>>>
>>> $link=Connection();
>>> $ultimoip=mysql_query("SELECT * FROM `iptable` ORDER BY `id` DESC limit 1",$link);
>>>
>>> if($ultimoip!==FALSE){
>>> 		     while($row = mysql_fetch_array($ultimoip)) {
>>> 	printf($row["ip"]);
>>> 	echo '<a href="' . $row["ip"] . '">IP Attuale</a>';
>>> 					}
>>>         mysql_free_result($ultimoip);
>>>
>>> can anyone help me please?
>>
>> Any error messages? Any server side logs? What does Connection() do and
>> where is that function - in an included script?
>>
>>

This is a signature (it starts with the line "-- "), which is usally NOT
cited:

>> -- 
>> Arno Welzel
>> http://arnowelzel.de
>> http://de-rec-fahrrad.de
>> http://fahrradzukunft.de
> 
> Yes it's an included file where database connection info is set to connect to database.

And what about error messages or log entries?


-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to retreive data from row and show it as link in a page androidmaroso@gmail.com - 2016-01-02 03:18 -0800
  Re: How to retreive data from row and show it as link in a page androidmaroso@gmail.com - 2016-01-02 03:43 -0800
  Re: How to retreive data from row and show it as link in a page Arno Welzel <usenet@arnowelzel.de> - 2016-01-02 14:49 +0100
    Re: How to retreive data from row and show it as link in a page androidmaroso@gmail.com - 2016-01-04 11:57 -0800
      Re: How to retreive data from row and show it as link in a page Arno Welzel <usenet@arnowelzel.de> - 2016-01-04 22:56 +0100

csiph-web