Sponsored Content
Full Discussion: Basic php help
Top Forums Web Development Basic php help Post 302917989 by barrydocks on Friday 19th of September 2014 04:21:48 PM
Old 09-19-2014
Basic php help

So I want to hide or display a html button based on a mysql data value. The button has a link to a specific page to update a record, I can do both but can't combine the code Smilie

Show/hide button:
Code:
<?php
if($row_spec_rx['locked'] == 1) {
echo "locked";
}
else {
echo "button goes here";
 }
?>

Buttons and link:
Code:
<a href="update_spec_rx.php?spec_RxID=<?php echo  $row_spec_rx['spec_rx_id']; ?>"  target="_parent"><button>Amend</button></a>

Basically I need to include the button code where echo "button goes here" is.

Thanks for any help Smilie
 

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Basic...

hi, I am pretty new both to unix and this forum, can anyone help me to give shortcuts to my commands... eg:- instead of "cd /usr/bin" i want to to give " bin " and get to that path. I'm using HP-UX 11.0 abey (2 Replies)
Discussion started by: abey
2 Replies

2. HP-UX

Bt-basic

Hi Guys, I very new to bt-basic even I got 8 years experience on UNIX. I searched through google about bt-basic but nothing really give me solid documentation. Anybody have documentation or manual for this bt-basic? Pls help me (2 Replies)
Discussion started by: shahru
2 Replies

3. HP-UX

to know the basic

Hi, Good morning I want to install HP-Unix in my PC. I already have windows XP home edition in my PC. I do not want remove XP,But I need HP-Unix in the same system. Is it posssible? If it is what is the name and version of HP-Unix cd? Where can I get the CD to install. I have... (4 Replies)
Discussion started by: nandhini
4 Replies

4. Shell Programming and Scripting

help on a basic example

hi, in a text file i have listed some file names, it look like this AAAA1 AAAA2 AAAA3 BBBBB1 AAAA4 BBBBB2 BBBBB3 AAAA5 AAAA6 BBBBB4 i want to make some operations on the files with name AAAAAx which is listed just before files with name BBBBBx that is: i want to select AAAA3,... (8 Replies)
Discussion started by: gfhgfnhhn
8 Replies

5. UNIX for Dummies Questions & Answers

basic if else

I know this is pretty basic, but i cant figure it out to save my life. i want it to ask for a variable, as long as that variable isnt -/0 i want it to print out the area. else if the variable is -/0, i want it to print out invalid entry. the only problem is it will still try to print out the... (1 Reply)
Discussion started by: cookiebooy
1 Replies

6. Solaris

Basic - how do I?

How do I use ls and grep together to count a certain number of files in a directory? -Thanks (1 Reply)
Discussion started by: secno
1 Replies

7. UNIX for Dummies Questions & Answers

Basic help

Hi , I need to know the difference between $((command)) and $(command) and $(($(command))). "" and '' and ``. I have tried searching the help files but cant able to find this. Could you let me knoq about any document. Thanks (4 Replies)
Discussion started by: Raj999
4 Replies

8. What is on Your Mind?

Vs basic

There isn't much of a relation between 80's BASIC and today's BASIC. A lot of languages seem similar. The BASIC I worked with was Dartmouth or VSBASIC. Now existing as ATARI BASIC. PERL and JULIA look appealing, it would be nice if there where a program like VSBASIC. 80's... (7 Replies)
Discussion started by: teak
7 Replies
x_buttontest(6) 						  Games and Demos						   x_buttontest(6)

NAME
x_buttontest - Xview demonstration and test program for SunButtons SYNOPSIS
/usr/demo/BUTTONBOX/x_buttontest DESCRIPTION
x_buttontest is an Xview application that displays a window with thirty two buttons, corresponding to those on the SunButtons buttonbox. To determine if the buttonbox has been set up correctly, select the Diagnostic button on the panel. If the buttonbox is functional and cor- rectly interfaced, each of the buttons will light in sequence for about 1 second. Then "OK." is sent to the standard output of the demo program. x_buttontest is now in its (default) interactive mode. Pressing a button on the buttonbox highlights the corresponding button on the screen. Additionally, x_buttontest sends a BDIOBUTLITE ioctl to the buttonbox in response to each key press and key release, so that the button light is illuminated while the button is held down. If the serial communications become confused, as can happen when both the buttonbox and the dialbox are operated at the same time, one or more button lights may remain on after the button is released. Clicking on the Reset button on the panel will unconditionally turn all the button lights off. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |SPARC | +-----------------------------+-----------------------------+ SEE ALSO
bdconfig(1M), attributes(5), x_dialtest(6), bd(7M), streamio(7I) SunOS 5.10 1 Jan 1997 x_buttontest(6)
All times are GMT -4. The time now is 07:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy