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

Linux, Apache, MySQL, PHP

 
AnswerRe: Convert the sql query into linq Pin
Richard MacCutchan11-Apr-19 23:05
mveRichard MacCutchan11-Apr-19 23:05 
Questionwhat is the error : SQL syntax; check the manual that corresponds to your MariaDB server version? Pin
Amir karim3-Apr-19 20:47
Amir karim3-Apr-19 20:47 
AnswerRe: what is the error : SQL syntax; check the manual that corresponds to your MariaDB server version? Pin
Peter_in_27803-Apr-19 21:02
professionalPeter_in_27803-Apr-19 21:02 
GeneralRe: what is the error : SQL syntax; check the manual that corresponds to your MariaDB server version? Pin
Amir karim3-Apr-19 21:24
Amir karim3-Apr-19 21:24 
GeneralRe: what is the error : SQL syntax; check the manual that corresponds to your MariaDB server version? Pin
Richard Deeming3-Apr-19 22:28
mveRichard Deeming3-Apr-19 22:28 
QuestionStored procedure is needed Pin
Member 1246113225-Mar-19 4:02
Member 1246113225-Mar-19 4:02 
AnswerRe: Stored procedure is needed Pin
Richard MacCutchan25-Mar-19 5:40
mveRichard MacCutchan25-Mar-19 5:40 
QuestionHow to call php divisions by a button click Pin
Member 1417791010-Mar-19 22:54
Member 1417791010-Mar-19 22:54 
Good morning,

I have a problem to this site https://lsfdhelper.000webhostapp.com/helper.php

If I go on request and press two request, there will be two request. Also, If I press all of the, all request will show. How can I do a script so if I press on request, others request to hide?

As you can see, if you press LSFD Helper, Request and press two or more button, like Double Faction Approval and Off-Duty Employment they will show two box. I want to show just one div, so if I press for instance Double Faction Approval it should hide every other box like Off-Duty Employment or TeamSpeak

Also, how can I clean the inputs after Submit button is pressed.

And the last question. Is it possible to do, for instance
....
in a special php named d2.php and call it when needed.

Thank you, I posted the code below.
        <div id="d2">
            <script>
                if(document.getElementById('d2').style.display == 'block')
                {
                <?php
                    $ri = "#2 (Off-Duty Employment)";

                    ?>

            </script>
            <div id ="formular2">
                <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
                    <div class='pl'>
                        <label>Employee Name:</label>
                        <input type="text" name="name" placeholder="Ex: John Doe" value="<?php echo $name;?>">
                        <label>Employee Rank:</label>
                        <input type="text" name="rank" placeholder="Ex: Firefighter I" value="<?php echo $rank;?>">
                        <label>Employee Service Number:</label>
                        <input type="text" name="sn" placeholder="Ex: 23956" value="<?php echo $sn;?>">
                    </div>
                    <div class="dl">
                        <label>Place Of Off-duty Eployment:</label>
                        <input type="text" name="offduty" placeholder="Los Santos Police Department" value="<?php echo $offduty;?>">
                        <label>Reason For Off-duty Employment:</label>
                        <input type="text" name="reason" placeholder="Ex: Reason" value="<?php echo $reason;?>">
                    </div>
                    <div class="tl">
                        <label>Additional Information:</label>
                        <input type="text" name="ai" placeholder="Ex: Information" value="<?php echo $ai;?>">
                    </div>
                    <center>  <input id ="submit" type="submit" class="imputonlick" name="submit" value="Submit" onclick="arata('arata2'); return false;">
                        <input  type="submit" class="imputonlick" name="reload" value="Reload" onclick="arata();return true; curata();">
                    </center>
                </form>
            </div>
            <div class="outputcode" id='arata2'>
            <b> <?php
            echo "Title: "; echo $ri;

            echo "<br>";
            echo "<br>";
            echo "<br>";
            echo "<br>";

            echo "[divbox=white][center][img]https://i.imgur.com/ujHmoAV.jpg[/img][/center]";
            echo '<br>';

            echo "[list=none] ";
            echo date("F d"), ", ", date("Y");
            echo "<br>";
            echo "Departmental Request:";
            echo "<br>";

            echo "[b][u]Purpose[/u][/b]";
            echo "<br>";
            echo " [list=none]";
            echo "<br>";
            echo " Upon submission of this official request document — in accordance with the Los Santos Fire Department administrative documentation procedure — (Chief) Fire Officers will thoroughly analyze the request by the employee and determine eligibility.";
            echo "<br>";
            echo "[/list]";
            echo "<br>";

            echo "[b][u]Details[/u][/b]";
            echo "<br>";
            echo "[list=none]";
            echo "[*] [b]EMPLOYEE NAME[/b]: ", $name;
                echo "<br>";
            echo "[*] [b]EMPLOYEE RANK[/b]: ", $rank; 
                echo "<br>";
            echo "[*] [b]EMPLOYEE SERVICE NUMBER[/b]: ", $sn ;
                echo "<br>";
            echo "[size=1].[/size]";
            echo "[*] [b]REQUEST ITEM[/b]: ", $ri    ; 
            echo "<br>";
            echo "[*] [b]PLACE OF OFF-DUTY EPLOYMENT[/b]: ", $offduty ;
                echo "<br>";
            echo "[*] [b]REASON FOR OFF-DUTY EMPLOYMENT:[/b]: ", $reason;
                echo "<br>";
            echo "[/list][list=none]";
            echo "<br>";
            echo "[*] [b]ADDITIONAL INFORMATION[/b]: ", $ai;
                echo "<br>";
            echo "[/list]";
            echo "<br>";
            echo "[/divbox]";

            ?>
            </div>
    </div>
        </div>
    </div>

QuestionDEVELOPING WEB FORM Pin
Member 1402329817-Oct-18 5:40
Member 1402329817-Oct-18 5:40 
AnswerRe: DEVELOPING WEB FORM Pin
Mycroft Holmes17-Oct-18 12:43
professionalMycroft Holmes17-Oct-18 12:43 
QuestionWhy my field returns boolean instead of object? Pin
Member 1399562824-Sep-18 3:12
Member 1399562824-Sep-18 3:12 
AnswerRe: Why my field returns boolean instead of object? Pin
Graham Breach24-Sep-18 3:48
Graham Breach24-Sep-18 3:48 
GeneralRe: Why my field returns boolean instead of object? Pin
Member 1399562824-Sep-18 3:50
Member 1399562824-Sep-18 3:50 
GeneralRe: Why my field returns boolean instead of object? Pin
Graham Breach24-Sep-18 4:57
Graham Breach24-Sep-18 4:57 
AnswerRe: Why my field returns boolean instead of object? Pin
SiFinances28-Oct-18 0:52
SiFinances28-Oct-18 0:52 
Questionhow to find daily cash book record from two tables with php mysql Pin
Faruk Web10-Aug-18 21:46
Faruk Web10-Aug-18 21:46 
QuestionGet data attribute from an array of select box Pin
Member 85505912-Aug-18 16:23
Member 85505912-Aug-18 16:23 
QuestionHow to allow access to a yii web application for specific users using .htaccess Pin
Member 139352711-Aug-18 23:20
Member 139352711-Aug-18 23:20 
AnswerRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 0:40
mveRichard MacCutchan2-Aug-18 0:40 
AnswerRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 1:31
mveRichard MacCutchan2-Aug-18 1:31 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 139352712-Aug-18 1:35
Member 139352712-Aug-18 1:35 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Richard MacCutchan2-Aug-18 3:49
mveRichard MacCutchan2-Aug-18 3:49 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 1393527114-Aug-18 1:02
Member 1393527114-Aug-18 1:02 
GeneralRe: How to allow access to a yii web application for specific users using .htaccess Pin
Member 1393527114-Aug-18 1:02
Member 1393527114-Aug-18 1:02 
QuestionHow Can I Start Learning PHP Pin
Andre Hoss3-Jul-18 7:03
Andre Hoss3-Jul-18 7:03 

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.