Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
52% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
~5K People Reached
Interests
Coding , Designing. I.T
Favorite Tags
Member Avatar for BadManSam

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 …

Member Avatar for BadManSam
0
478
Member Avatar for BadManSam

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 …

Member Avatar for Derice
-1
411
Member Avatar for BadManSam

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" . …

Member Avatar for cereal
0
107
Member Avatar for BadManSam

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 …

Member Avatar for paulkd
0
156
Member Avatar for vicky one

Hello every one i am seeking a user of joomla to help me a little. During joomla webinstaller database mssql is not connected it gives number error, now what to do??? Why mssql is not connected m using xammp server...

Member Avatar for BadManSam
0
70
Member Avatar for BadManSam

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 …

Member Avatar for cereal
0
146
Member Avatar for BadManSam

<?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' …

Member Avatar for minitauros
0
161
Member Avatar for BadManSam

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 …

Member Avatar for chrishea
0
193
Member Avatar for BadManSam

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 …

Member Avatar for BadManSam
-1
785
Member Avatar for BadManSam

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 …

Member Avatar for BadManSam
0
204
Member Avatar for BadManSam

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 …

Member Avatar for BadManSam
0
228
Member Avatar for BadManSam

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 …

Member Avatar for razib8bd
0
152
Member Avatar for BadManSam

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 …

Member Avatar for retrax57
0
102
Member Avatar for BadManSam

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.

Member Avatar for vibhaJ
0
122
Member Avatar for BadManSam

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 …

Member Avatar for Travus
0
173
Member Avatar for BadManSam

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 …

Member Avatar for BadManSam
0
119
Member Avatar for gurusubramaniam
Member Avatar for BadManSam

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. …

Member Avatar for akmozo
0
119
Member Avatar for BadManSam

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 …

Member Avatar for BadManSam
0
122
Member Avatar for BadManSam

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>

Member Avatar for rileyganimator
0
104
Member Avatar for BadManSam

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 …

Member Avatar for JorgeM
0
121
Member Avatar for BadManSam

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 …

Member Avatar for diafol
0
90
Member Avatar for BadManSam

What would A good website name be because I cant think of anything it will have tutorials , It will be about technology and coding.

Member Avatar for ndeniche
0
72
Member Avatar for BadManSam

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 …

Member Avatar for code739
0
150
Member Avatar for BadManSam

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

0
56
Member Avatar for BadManSam

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 .

Member Avatar for diafol
0
126
Member Avatar for BadManSam

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']; ?> - …

Member Avatar for diafol
0
195