I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar
Member Avatar
+0 forum 22

Hello i cant understand how i can send database info to user for example i want to send my note which contain (date, text, title and other info) and this info is under ID for ex. (123456) please someone explain me how i can do that or help me thank you :)

Member Avatar
Member Avatar
+0 forum 3

Hello. There is a button in the page when i click it, a div will appear or disappear by toggling to the left and right. I want when the page loaded, user can only see the button and have to click to appear the dive. But the problem is that when the page loads, the dive is appeared on the page and user doesn't have to click the button to see the content of the hidden div. What can i do for that? I want the div to stay hidden till user click the button to make it appear, not …

Member Avatar
Member Avatar
+0 forum 9

Hi. With `$u_agent = $_SERVER['HTTP_USER_AGENT'];` i can get the users information but i just want to echo the OS that users use, something like: Linux,Ubuntu How can i get this out from the $u_agent variable?

Member Avatar
Member Avatar
+0 forum 11

Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that post or not, if the user clicks the cancel button, nothing happen but if clicks the ok button, then the script delete that post. this is the main code: <?php include('connection.php'); try { $sql = "SELECT ID, Title, Author, Content FROM Posts"; $result = $conn->query($sql); echo "<h4>LOGGED IN AS: " . $_SESSION["Username"] . "</h4>"; echo "<p id='err_msg'></p>"; echo "<table cellspacing='0' cellpadding='20' border='1px solid black' border-collapse='collapse'>"; echo "<tr><th> POST ID </th><th> …

Member Avatar
Member Avatar
+0 forum 2

I have been tasked with making some internal software (as you can probably tell from the section I'm posting in, it's PHP based). I have been asked to make it so the user is automatically logged in and doesn't need to have another password for another piece of software. The trouble is, I'm not sure if this would be possible in PHP. The software is purely internal and would have absolutely no outside access. I know that all the end users would be on Windows computers and all the usernames are in the same format so all I would need …

Member Avatar
Member Avatar
+0 forum 5

does anyone have code?

Member Avatar
Member Avatar
+0 forum 3

Hello Everyone, I use yhe standard class for the mediarecorder (android). Have to buttons for start and stop recording. Works fine! But want I want is when I talk to loud for example 10 (db?) (how to determine the volume and how to set the volume?), that there is an error sound and message with the message "start over". Thanks for any help Rem

Member Avatar
+0 forum 0

Hello i need little help overhere im confuzed getting user data from mysql database i want to update the `payCheck` column in the database but that column is located in the `receiver` or `where (in the code)` field i have this code please someone help me... <?php require 'connect.php'; require 'header.php'; if(isset($_POST['howMuch']) && isset($_POST['where'])) { $howMuch = $_POST['howMuch']; $where = $_POST['where']; // this is the receiver if(!empty($howMuch) || !empty($where)) { $user_mBalance = getUserData('payCheck'); // getting already logged user field 'payCheck' if($howMuch > $user_mBalance) { echo "<br><br><br><br><br>You cannot donate more than you have!"; } else { $query = "SELECT `ID` FROM …

Member Avatar
Member Avatar
+0 forum 13

Hi, I am not able to "run as different user" in my windows 7 (domain login) machine. For example if i'm trying to start iexplore (run as diff user) It returns the error : "The system cannot find the file specified". Please help me. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

As usual, after learning new stuff, I write on it. Yesterday I finished learning on "Functions in C++" and found that functions are very easy to learn and useful. Hope this tutorial helps beginners. # What is function? # Sometimes when we want to execute a specific task wherever it's needed, instead of writing the entire code again, we should create a block of code that is called a function. Once you define the functionality inside the function body, you can call it whenever and wherever it's needed. Functions prevent code repetition. There are 2 terminologies: 1. Defining a function: …

Member Avatar
Member Avatar
+2 forum 11

Is this correct? ![b2b188d015f982534475f938e7bb255c](/attachments/large/2/b2b188d015f982534475f938e7bb255c.png "b2b188d015f982534475f938e7bb255c") That seems like a lot of points for someone that has never contributed. Bug, or exploit?

Member Avatar
Member Avatar
+0 forum 3

I need help adding new users to a table i have made for an admin that can add or delete users from said table freely. What i have so far is an entry that can add date and time but for some reason it doesnt add the username and password. I dont know if its skipping the username and password and simply adding them the second you go to that page but something is wrong and i can figure this out, i have been stuck for days and what makes little sense to me is that i have this same …

Member Avatar
Member Avatar
+0 forum 5

I have this code which ironically WORKS on another page i have but for some reason will not work with my new page even though LITERALLY its the exact same function and should work regardless but with my luck it wont so i need help, maybe i have a small error but i have compared and compared the code time and time again and theres literally no difference from what i can tell. here is the code: <?php $con = mysqli_connect("localhost", "root", "", "numbers") or die(mysqli_error($con)); //submission code, inserting data into mysql database $username = NULL; $password = NULL; $mySqlDate …

Member Avatar
Member Avatar
+0 forum 3

Hi everyone! I'm making an application which requires users with different permissions/previleges to login and use the application.For example, if the user is "admin", all menu items in the menu bar are shown and enabled. If the user is say "user_group1", some of the menu items are to be hidden. The same for "user_group2", "user_group3", "user_group4" and so on. I could put a code for each specific user in each form but that's a great deal since users and their user groups may be added after application deployment. So it has to be something flexible. I want the user "Administrator" …

Member Avatar
Member Avatar
+0 forum 21

i am making an album book in php for each user in php, but all pics are shown on page,, i want to show them according to user login,,not all pics plz help,,,thanks

Member Avatar
Member Avatar
+0 forum 2

This is a function that I wrote and have re-used many times. I share it with you DaniWebers to use, laud or destroy! In a nutshell, this takes a user's search box input phrase and generates a series of LIKE clauses for your SELECT statement. Looks like "col1 LIKE '%s_term1%' OR col1 LIKE '%s_term2%' OR col2 LIKE '%s_term1' .." The column names you want it to use is the second parameter of the function.

Member Avatar
+1 forum 0

Ok, so I just made this account because I'm super stuck. Basically I need to create a math quiz that takes a users input (1 through 12), have it spit out a question, i.e What is 5 x 12? however if the user enters 5, it must randomly generate a question asking the user his 5x tables. i.e What is 5x3? What is 5x7? and so on and he needs to enter the correct answer, after which it will display correct or incorrect. I am having trouble getting the user input part. So far my code allows for him to …

Member Avatar
Member Avatar
+0 forum 2

Hi Guys I have a user control created , when i drag and drop it to the form designer, it gets this (error redering control, the file was not found)but it is inside the same project, how to avoid this ? thanks regards sumith

Member Avatar
+0 forum 0

Hello all! My name is Johnny A. Talavera, call me johnny though. :) I came from HackForums.net and am somewhat experienced in programming. :) So far, the only language I master in is C. I do know the basics and some of the advanced of other languages though like C++, Perl, Python, Asm, Java, and lua. I am experienced with many web designing languages as well. :) I think of myself as a nice, epic, cool and chill guy to talk to. I love music, it is my life. I mainly listen to electronic music. Stuff like Electro House/EDM/Trance/Dubstep/DnB and …

Member Avatar
Member Avatar
+0 forum 2

FB.api('/me', function(userInfo) { console.log(userInfo.email); var emailid = userInfo.email; console.log(emailid); }) $.ajax({ url: 'index.php?r=tryon/saveemailid', type:'post', data:{'saveemail':emailid}, success : function(data){ alert("success!"); } });

Member Avatar
Member Avatar
+0 forum 6

Hello there, For my project, I want to add notification feature where one user can send request for something and other user views by clicking button or something like that as a notification/alert similar to friend request in facebook. I dont know how to implement this feature. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 5

This is my process.php which I use to post data on my page's wall PHP Code: include_once("config.php"); //HTTP POST request to PAGE_ID/feed with the publish_stream $post_url = '/'.$userPageId.'/feed'; //after login redirect him and if i can get message submit it to page if(isset($_GET["message"])) { $msg_body = array( 'message' => $_GET["message"], ); try { $postResult = $facebook->api($post_url, 'post', $msg_body ); //header('Location: ' . $homeurl."?success=true"); $homeurl=$homeurl."?success=true"; echo "<script>window.location='$homeurl'</script>"; } catch (FacebookApiException $e) { echo $e->getMessage(); } } if($_POST) { //Post variables we received from user $userMessage = $_POST["message"]; if(strlen($userMessage)<1) { //message is empty $userMessage = 'No message was entered!'; } /* // …

Member Avatar
+0 forum 0

Just started learning c++ and ive got a bit stuck :L Im making a console application that injects a file into a process. The file name and process name are both specified at the start of the code using char FileToInject[] = "File_Name.xxx"; char ProcessName[] = "Process_Name.exe"; The console works fine, however the process name and file name are now fixed once ive compiled the console, and I am unable to change the file/process later on. What I would like to do is have the console ask for file name, and the process name, so I dont need to create …

Member Avatar
Member Avatar
+0 forum 2

I kinda like the idea behind the static/fixed header, but I was wondering if there's any chance to actually extend it, and add the user information to it, like this: ![cc7912a9152d4af5365953c22bf1c3ef](/attachments/large/3/cc7912a9152d4af5365953c22bf1c3ef.png "cc7912a9152d4af5365953c22bf1c3ef")

Member Avatar
Member Avatar
+0 forum 11

Here is the code for GUI in C++, http://facebook.com/muhammadmuzzammil1998 Tested in Code::Blocks hope it will help you :) #include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into a global variable */ char szClassName[ ] = "CodeBlocksWindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = …

Member Avatar
+0 forum 0

Hi : I'm running one shopping cart with prestashop which is working good, now I want the market place in my cart which is similar to ebay.com and olx.com in which the user can post their product in our store and sell their product. I want to integrate the functionality in my cart it is possible, or else any add-on is available for this if is available as free or cost kindly provide me the link I'm Ready to pay for that. & also I need the Auction to be done for the same cart.

Member Avatar
Member Avatar
+0 forum 2

Hello friend i am developing a new web portal in this portal one thing is also one user is visible online for another user which a user is add friend list but issu is that i have a worked on logout but what i will do when user close a browser where a profile is open. give me tip for doing this work.

Member Avatar
Member Avatar
+0 forum 1

How to give user the ability to set the decimal format rounding to whichever s/he prefers. I know that the users input can be gained by the code double decimalRoundTo; Scanner input = new Scanner(System.in); out.print(" Enter the number of decimal places you want to round to "); decimalRoundTo = input.nextDouble(); and the programmer can set the decimal format with the code below. out.format("%.2f", numberToBeRounded); However, I want to give my user that ability. How would this be possible, if it is at all?

Member Avatar
Member Avatar
+0 forum 4

hello guys am creating site were all users can post for there friends to see ans coment just like facebook where am having problem is how to make sure only a users friends can see there post not the whole site members i have table in my database called post where all post are queried from and displayed on the page according to there date of post i dnt know how to remove the post of non friends from being visible to every one just the way facebook is thanks

Member Avatar
Member Avatar
+0 forum 6

The End.