- Interests
- Coding , Designing. I.T
27 Posted Topics
Hi, I have a raspberry pi and was wondering if it was possible to detect button presses from a webpage in python. I have a robot arm and can control it using this code: #!/usr/bin/env python #ROBOT ARM CONTROL PROGRAM # MoveArm(1,[0,1,0]) @Rotate base anti-clockwise # MoveArm(1,[0,2,0]) @Rotate base clockwise … | |
Hi, when I try to use a SELECT statement in php, I get an error: > Resource id #18 <?php include("include/session.php"); $get = mysql_query("SELECT value FROM settings WHERE id=2"); echo $get; ?> The file session.php contains the database credentials .etc and it's correct. But then when I try to echo … | |
Hi, I have a really simple mailing script.It works, but it sends the message twice. How do I send the mail once. <?php $email = 'example@domain.com'; $subject = 'MESSAGE FROM DOMAIN!'; $message = 'The Message Was Successfully Sent!'; $headers = 'From: noreply@domain.com' . "\r\n" . 'Reply-To: reply@domain.com' . "\r\n" . … | |
Hi, how would you delete a folder on the click of a button including its contents, including the file that has the script to delete it. After it has been deleted it should redirect to the homepage of the site. And how you show that if a folder exists then … | |
Re: Hi, please check this tutorial: [Click Here](http://complete-concrete-concise.com/joomla/installing-joomla-2-5-under-xampp) | |
Hi, I have been trying to integrate gravatar to my login system but it doesn't seem to work. Here is the code: <?php include("include/session.php"); $connectmysql = mysql_connect("localhost", "********_login", "*******"); mysql_select_db("********_login", $connectmysql); ?> <html> <?php $email = mysql_query("SELECT email FROM blog_users WHERE user = '$session->username', $connectmysql"); $default = "mm"; //This returns … | |
<?php include("include/session.php"); ?> <?php $db = new PDO('mysql:host=localhost;dbname=******x2_login', '******x2_login', '********'); $stmt = $db->query('SELECT value FROM settings WHERE value = "Login Script" '); $id = $stmt->fetchColumn(0); if ($id !== false) { echo $id; } ?> <?php if(isset($_POST['Submit'])){//if the submit button is clicked $update = "UPDATE settings WHERE value = 'Login Script' … | |
Hi, I tried to convert timestamp into the actual date and time. <?php $connectmysql = mysql_connect("localhost", "********_login", "********"); mysql_select_db("********_login", $connectmysql); $timestamp = mysql_query("SELECT timestamp FROM blog_users WHERE username = '<?php session->username ?>', $connectmysql); $datetime = date("Y-m-d H:i:s", $timestamp); ?> This gets the user's username: $session->username But, then I get an … | |
NB: I'm a beginner at php programming. Hi, I've been trying to add an 'Online' or 'Offline' plugin to my login system. To display the username you use thr following: $session->username In the database, I have a table for active users. When a user logs in, he is added to … | |
Hi, I'm modifying a login script; I added an avatar system and now I get an error: Parse error: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /home/promanx2/public_html/include/session.php on line 455 The whole code of that page is here. <?php /** * Session.php * * The Session class is … | |
Hi, I want to echo something if certain text is typed into a form textbox. <form action="mail.php" method="POST"> <table border="0"> <tr><td><b>To:</b></td><td><input type="text" name="mailTo" size="20" value="<? ; ?>"></td></tr> <tr><td><b>Subject:</b></td><td><input type="text" name="mailSubject" size="20" value="<?=$mailSubject;?>"></td></tr> </table> <b>Message:</b><br> <textarea rows='16' cols='45' name='mailMessage'></textarea><br> <input type="submit" name="mailAction" value="Send" /> </form> I want to add it to … | |
Hi I have a bad sector and cannot log in to the netbook I have a zoostorm freedom netbook and when I start the netbook it always goes to repair and then restart and repair so I did a disk check on advanced options none of the advanced recovery methods … | |
Hi, I want to create a log file so when someone logs in or when someone gets their password wrong or someone tries to log in to the admin account and gets it wrong, like ip address. date|Time etc The script I am using is this one http://angry-frog.com/downloads-page/ PHP Login … | |
Hi, I need a script that on click of a button. Delete a folder/file. So when I click the button the folder deletes and it is for a install file that I made. | |
Hi, I want to have my Short Register Form's content go to the main registration page. So like I type some information into a short register form like username and email but when I click the submit button I get transfered to another page which already has the information entered … | |
How would I create a page using php on the click of a button and name the file in a form so like The Form Name of File:|_____________| Submit - This is the Button. And how would you show a files script and I know it might not be safe … | |
Re: Even if you disable right click they can still access it through f12 button | |
Hi, I have a login system this is the code <table> <tr><td> <?php /** * User has already logged in, so display relavent links, including * a link to the admin center if the user is an administrator. */ if($session->logged_in){ echo "<h1>Logged In</h1>"; echo "Welcome <b>$session->username</b>, you are logged in. … | |
Hi, So I have a login system but when I create an account and activate it through email. It goes through but then the style.css does not apply so all the backgroung and images fail. So the link is like this. http://www.site.com/register.php?mode=activateusername=user&activationcode=D56gsjd and the html and all the rest doesnt … | |
How would you add sub meus to this menu. <div class="menu"> <ul> <li><a href="index.html" class="active"><span>Home Page </span></a></li> <li><a href="contact.html"><span>Contact Us</span></a></li> </ul> </div> | |
Hi , I want to buy a server to create a web hosting site so people can create sites on my site. So which server would I need to buy. And I am thinking of getting cPanel is it good. So can it control my server and will it be … | |
I want like a ranking system that works something like this. User clicks on something there is a percentage chance that they will suceed. And if they do they get xp. but if they fail they only get like 1 xp. Anyone a mmporg Coder. Because I will Pay up … ![]() | |
What would A good website name be because I cant think of anything it will have tutorials , It will be about technology and coding. | |
I want to create a grey login bar at the top of my page but I don't know how to make one please could someone help. The code that I want in the login bar is <table> <tr><td> <?php if($session->logged_in){ echo "Welcome <b>$session->username</b>, you are logged in. <br><br>" ."[<a href=\"userinfo.php?user=$session->username\">My … | |
How could I use ajax or javascript to make that when I click on a button that links to another page make it go to that specific page without refreshing so like the url changes to something like index.php?=2 | |
How do you edit from php like I have a form and from another php file I can edit that form but just like click it and type something like name : (then login text box) and save it. I want that for register and login . ![]() | |
Hi , I edited my webpage and this occured **Parse error: syntax error, unexpected $end in /home/techgeek/public_html/FrF/test.php on line 59** I have checked all the tags and they are closed and here is the code. <?php include("include/session.php"); global $database; $config = $database->getConfigs(); ?> <html> <head> <title><?php echo $config['SITE_NAME']; ?> - … ![]() |
The End.