Click here to Skip to main content
15,890,741 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: sum of all the fields in columns. where columns are dynamic Pin
Mohibur Rashid11-Mar-13 22:14
professionalMohibur Rashid11-Mar-13 22:14 
Questionhow to get a object according the name of class Pin
Keanu L18-Jan-13 16:31
Keanu L18-Jan-13 16:31 
AnswerRe: how to get a object according the name of class Pin
Graham Breach18-Jan-13 22:31
Graham Breach18-Jan-13 22:31 
GeneralRe: how to get a object according the name of class Pin
Keanu L6-Feb-13 1:28
Keanu L6-Feb-13 1:28 
QuestionHow much time does it take to be a great developer in PHP? Pin
atoi_powered17-Jan-13 13:34
atoi_powered17-Jan-13 13:34 
QuestionRe: How much time does it take to be a great developer in PHP? Pin
Richard MacCutchan17-Jan-13 23:19
mveRichard MacCutchan17-Jan-13 23:19 
AnswerRe: How much time does it take to be a great developer in PHP? Pin
Manfred Rudolf Bihy18-Jan-13 4:50
professionalManfred Rudolf Bihy18-Jan-13 4:50 
QuestionDispensing text from a text file Pin
John Smith8-Jan-13 19:56
John Smith8-Jan-13 19:56 
In my php file called "account.php" I have

XML
  <?php

    // First we execute our common code to connection to the database and start the session
    require("common.php");

    // At the top of the page we check to see whether the user is logged in or not
    if(empty($_SESSION['user']))
    {
        // If they are not, we redirect them to the login page.
        header("Location: login.php");

        // Remember that this die statement is absolutely critical.  Without it,
        // people can view your members-only content without logging in.
        die("Redirecting to login.php");
    }

?>
<html>
<body>
<link rel="icon" type="image/gif" href="favicon.gif" />
<?php include("header.php"); ?>
<div id="main-box">
<ul>
<li class="buttons">
<?php
TEXT BOX WITH A LINE FROM **TEXT.txt** SHOULD APPEAR HERE AFTER USER CLICKS BUTTONS
<input type="button" name="account" value="Get Your Account" onclick="#" />
</li>
</ul>
</div>
</body>
</html>


I want it so when the user clicks the button, a text box appears and displays ONE line from the text file and when they view it, it deletes it from the text file.

text.txt

Eddie
Apples
Hello
People

So after the user clicks the button it displays "Eddie" line to them and then deletes it after the user sees it so that the next line "Apples" would then become the first line.

If you don't understand my question then please let me know and I will try to explain further. Thank you. Smile | :)
AnswerRe: Dispensing text from a text file Pin
Zamshed Farhan12-Jan-13 3:03
Zamshed Farhan12-Jan-13 3:03 
QuestionSubmitting an ajax fetched table Pin
AkkiMo2-Jan-13 4:03
AkkiMo2-Jan-13 4:03 
QuestionI have a trouble about query_insert(). Pin
陳建勳24-Dec-12 1:31
陳建勳24-Dec-12 1:31 
AnswerRe: I have a trouble about query_insert(). Pin
ziggyfish6-Jan-13 12:36
ziggyfish6-Jan-13 12:36 
Questionwithout refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
vinay digil16-Dec-12 7:10
vinay digil16-Dec-12 7:10 
AnswerRe: without refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
Killzone DeathMan19-Dec-12 23:12
Killzone DeathMan19-Dec-12 23:12 
Questionhow can Multiple selected List box items move from one list box to another list Pin
vinay digil16-Dec-12 7:06
vinay digil16-Dec-12 7:06 
AnswerRe: how can Multiple selected List box items move from one list box to another list Pin
Killzone DeathMan19-Dec-12 22:57
Killzone DeathMan19-Dec-12 22:57 
Questionhow to get data when using header('location:'. $url) ? help me Pin
aa_zz26-Nov-12 4:29
aa_zz26-Nov-12 4:29 
AnswerRe: how to get data when using header('location:'. $url) ? help me Pin
Killzone DeathMan19-Dec-12 22:54
Killzone DeathMan19-Dec-12 22:54 
AnswerRe: how to get data when using header('location:'. $url) ? help me Pin
Keanu L18-Jan-13 16:29
Keanu L18-Jan-13 16:29 
QuestionStarting Point Pin
silentspeaker19-Nov-12 23:43
silentspeaker19-Nov-12 23:43 
AnswerRe: Starting Point Pin
User 171649219-Nov-12 23:58
professionalUser 171649219-Nov-12 23:58 
GeneralRe: Starting Point Pin
silentspeaker20-Nov-12 0:07
silentspeaker20-Nov-12 0:07 
GeneralRe: Starting Point Pin
User 171649220-Nov-12 0:21
professionalUser 171649220-Nov-12 0:21 
QuestionPHP, MySQL and Apache Pin
silentspeaker10-Nov-12 19:38
silentspeaker10-Nov-12 19:38 
AnswerRe: PHP, MySQL and Apache Pin
Richard MacCutchan10-Nov-12 21:39
mveRichard MacCutchan10-Nov-12 21:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.