Will work on latest:Chrome Safari Firefox Opera and all versions of IE. *(client notifications are for demonstration purposes only, and subject to designer decisions and modifications ) Can be used for size and mime-type restrictions. When mime-type is not an issue, accepting any kind of image format can be done usnig "image" as a function argument. Multiple mime-types allowed should be separated with the following syntax: "gif|jpeg|png" etc. [see the demo]. Numeric value signifies the maximum size in kilobytes. Benefits: your client doesn't have to wait until the image uploads on the server just to see that his file is …

Member Avatar
Member Avatar
+2 forum 4

I am having trouble figuring out an efficient way to perform the checks for how a winner is determined in a 3D tic tac toe program (that is 3x3x3). Winners can be three spaces in any vertical, horizontal, or diagonal, including those between the 3 "boards." There are over 50 winning possibilities, but I'm not sure exactly how many there are. The grid is represented by the 3D array [COLOR="Red"]char grid[3][3][3][/COLOR]. My intention is to check every possible winning combination by adding up the ASCII values held by each position (which will either be a ' ', 'X', or 'O', …

Member Avatar
Member Avatar
+0 forum 6

hello, I need domain check availability code for my website thanks

Member Avatar
Member Avatar
+0 forum 1

I have this code for checking the username and ticket availability but something doesnt work well if someone can tell me whats the problem, this error shows me if i enter the right info `Invalid Ticket or Receiver` here is the code: <?php if(isset($_POST['sendTicket'])) { $ticketID = $_POST['ticketID']; $ticketReceiver = $_POST['ticketReceiver']; $ticket_id = getUserData('kladilnica', 'ticket_id'); $sender = getUserData('users', 'Username'); if(!empty($ticketID) && !empty($ticketReceiver)) { $sql = "INSERT INTO ticket (senderName, receiverName, Date, ticketID, match1, match2, match3, match4, match5, match6, match7, match8, match9, match10, match11, match12, match13, match14, match15, match16, tip1, tip2, tip3, tip4, tip5, tip6, tip7, tip8, tip9, tip10, tip11, tip12, …

Member Avatar
Member Avatar
+0 forum 24

Hi I am building this website for a small hotel. The user interface is ready and I have a form as shown below: If I click on submit I can insert the data from the form into the database.My question is where do I go from here? Is my database design right? Besides inserting the form data I should select all unoccupied rooms, how do I do that? Here is what I have so far. TABLES bookings: id int11 auto increment primary key arrival date departure date adults int3 children int3 customers: id int11 auto increment primary key first_name varchar30 …

Member Avatar
Member Avatar
+0 forum 1

Hi I have a page named 'xyz'. and I have a webpage xyz.com Now I want that visitor must like my page to view my web site. So I need a code which will check whether my page has been liked by user or not. NB: I dont have any ssl in my site. Plz help me. Thnx

Member Avatar
Member Avatar
+0 forum 3

Hello is there a way of checking the input field have a value but with out clicking a button, for ex. if i write any letter inside the field to give me result for example `hello` or something else...

Member Avatar
Member Avatar
+0 forum 4

I cant seem to get this login form to work right I have the login form come up and i can use it to get to the form.php page that i try to access but my problem is that its not verifying any login information, it just goes on through to the form page regardless. Let me give some more detail to clerify some things, im running this program over a local network so i dont need anything encrypted and also my login form is based entirely on an admin changable user name and password in phpmyadmin, my boss will …

Member Avatar
Member Avatar
+0 forum 12

hey i have this code that always evaluates to true but it should only in the case of there being a value in the database i have selected, maybe im doing this wrong or maybe its something else but i cant seem to figure out the problem :( any assistence is greatly appreciated. //submission code, inserting data into mysql database $mySqlDate = date('Y-m-d'); $mySqlTime = date("g:i a"); if(isset($_GET['add'])) { $newnum = $_GET['newnum']; $firstname = $_GET['firstname']; $lastname = $_GET['lastname']; } if(strlen($newnum) == $min_length) { $newnum = mysqli_real_escape_string($con, $_GET['newnum']); $firstname = mysqli_real_escape_string($con, $_GET['firstname']); $lastname = mysqli_real_escape_string($con, $_GET['lastname']); $check = mysqli_query($con, "SELECT count(*) …

Member Avatar
Member Avatar
+0 forum 4

Hello, I have this program that will check and see if the email address the user entered contains valid characters and the @ and . character. The only problem is that my program isn't working... When I enter a valid email address it says it is invalid, when I enter an invalid email address it also says it's invalid. Here is my code: procedure TForm1.btnValidateClick(Sender: TObject); var sEmail: string; bResult: boolean; i: integer; iPos: integer; const ALLOWED = 'abcdefghijklmnopqrstuvwxyz0123456789_'; begin sEmail := edtEmailAddress.Text; i := 1; bResult := false; { Check to see if there is an @ in the …

Member Avatar
Member Avatar
+0 forum 12

Alright so what I'm trying to do is send the form data to the value of whatever checkbox is checked in checkbox_1. <html> <head> <title>Untitled Document</title> <h1>Student Request Form</h1> </head> <body> <?php if(isset($_POST['checkbox_1'])) { $checkbox_1 = implode(",", $_POST['checkbox_1']); $to=implode(",", $_POST['checkbox_1']); $subject = "My subject"; $txt = "Hello world!"; mail($to,$subject,$txt); } else { $checkbox_1 = ""; } ?> <?php if(isset($_POST['checkbox_2'])) { $checkbox_2 = implode(",", $_POST['checkbox_2']); } else { $checkbox_2 = ""; } ?> <?php $con = mysqli_connect("localhost","root","admin","form2"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } /*Get Values from form*/ $todays_date=""; if(isset($_POST['todays_date'])){ $todays_date = $_POST['todays_date']; } $student_fname=""; …

Member Avatar
Member Avatar
+0 forum 2

hey guys so i have a table where the `<tbody>` is populated by data in php. a row has 4 columns: name, unconfirmed, attending and unattending. the last 3 columns are radio buttons(echoed). the problem is that the radio buttons cannot be checked. for example for first row unconfirmed is clicked then second row attending is clicked then for the third row attending is clicked but then the second rows radio button is unclicked(like it moves from second row to third row). how do i go around this? <table class="rsvp-guest-table"> <thead> <tr> <th style="width:100px">Guests</th> <th>Unconfirmed</th> <th>Attending</th> <th>Unattending</th> </tr> </thead> <tbody> …

Member Avatar
Member Avatar
+0 forum 4

Hi, I wanted to know if I could search for a file in the application's folder, just by checking with the `File.Exists` method. I am searching for a DLL file in the app's directory. Thanks in advance, Yuvjeeth

Member Avatar
+0 forum 0

Hi am trying to have Dependency check box in one of my php form but am not able can you tell me how to do it

Member Avatar
+0 forum 0

Hi I made a page which check the login information if it is true or not but the code didn't work there is no errors just empty page ! <?php session_start(); ?> <html> <head> <meta http-equiv="content" content="text/html" charset="UTF-8" /> <title>Login checking</title> </head> <body> <?php require_once('inc/config.php'); $username = $_POST['username']; $password = $_POST['password']; $md5 = md5($password); if(empty($username) or empty($password)) { echo "Fill all fields"; }else{ $sql = "SELECT * FROM users WHERE username='".$username."'"; $query = mysql_query($sql) or die(mysql_error()); $result = mysql_fetch_assoc($query); $result['username']; $result['password']; if($username == $result['username'] and $md5 == $result['password']) { $SESSION['user'] = $username; echo "Welcome".$username; header("Refresh: 5;index.php"); }else { echo "the …

Member Avatar
Member Avatar
+0 forum 2

Hi I'm working on a registration system and I've faced a problem with checking if the email is already inthedatabase this is my checking code $sql = "SELECT * FROM users WHERE email='".$email."'"; $result = mysql_query($sql); $row1 = mysql_fetch_assoc($result); $row1['email']; if($email = $row1['email']) the problem is that when I put any email that is not in the database it show me an error that this email is already registerd!

Member Avatar
Member Avatar
+0 forum 2

so my newest problem! i have a save button and that save button already has the insert into query and working fine now what i wanna do is when the user clicks on the save button what it does first is, it checks if a record of that user already exists and if there already is a record in regards to that user then instead of inserting it will update the table. but before updating i want a confirmation message that asks the user if they would like to update because there already is a record. and if there isnt …

Member Avatar
Member Avatar
+0 forum 14

there is a large busy cosmetic store. In store, for billing, there are four counters with four tellers (who deal payment etc) . A customer comes to the store and collects the things he/she wants to purchase and go to one of the counters to pay for purchase. If there are already people in front of counters, customer has to stand in the queue. A customer generally selects the shortest queue (with respect to the number of people in queue). The selection can become wrong if one of the people in the queue has a huge buying list. But if …

Member Avatar
Member Avatar
+0 forum 1

hi all, i'm difficult to get values array condition: 1. if value only one get values 2. if value same then get value with index or key most high 3. if value same and key most high get all example: $data = Array(Array ("1" => "12306") , Array ("0" => "12106") ,Array ("1" => "12770") ,Array ("3" => "12770") ,Array ("3" => "12306") ,Array ("3" => "12770") ); the result: Array ( [1] => Array ( [0] => 12106 ) [3] => Array ( [3] => 12770 ) [4] => Array ( [3] => 12306 ) [5] => Array ( …

Member Avatar
Member Avatar
+0 forum 3

how to check the master volume is muted or not on windows 7 os.

Member Avatar
Member Avatar
+0 forum 1

Yes it was a very dumb thing to do, I realised about a second after I did it. In my defence I was actually waiting for a UPS shipment, which was the subject of the phishing mail. The attached file was zipped and I didn't open it, I immediately deleted it. I'm in the process of running a full ClamXav scan. If it turns nothing up am I in the clear, or do I have to do further checking for infection?

Member Avatar
Member Avatar
+0 forum 8

hi all, how to check same values array if it values is the high values in array associative and get it values? example 1: Array ( [value 1] => 0.8434 [value 4] => 0.8434 [value 6] => 0.8434 [value 3] => 0.3434 [value 2] => 0.3434 [value 7] => 0.2114 ) so, the result: Array ( [value 1] => 0.8434 [value 4] => 0.8434 [value 6] => 0.8434 ) example 2: Array ( [value 1] => 0.8434 [value 3] => 0.3434 [value 13] => 0.3434 [value 7] => 0.2114 ) so, the result: Array ( [value 1] => 0.8434 ) …

Member Avatar
Member Avatar
+0 forum 1

hy all, how to get previous value and check different between recently value and previous values in loop < 0.5? if different value < 0.5 get it's array please help me define('DIV', 0.5); function iteration($data, $data2) { $m1=$m2=$data; $m3=multiply($m1,$m2); echo "iteration 1:\n"; print_r($m3); $temp_m3 = $m3; for ($i=0;$i<count($temp_m3);$i++) { for ($j=0;$j<count($temp_m3[$i]);$j++) { if (isset($data2[$i][$j])){ $aR[] = (($temp_m3[$i][0]*$data2[$i][$j])+($temp_m3[$i][1]*$data2[$i][$j])+($temp_m3[$i][2]*$data2[$i][$j])); } } } print_r($aR); echo $max = max($aR)."<br/>"; for($a=0; $a<count($aR);$a++){ $bg_max[] = $max/$aR[$a]; } print_r($bg_max); $m1=$m2=$m3; for($c=2;$c<=7;$c++) { $m3=multiply($m1,$m2); echo "iteration $c:\n"; print_r($m3); $m1=$m3; $aR2 = array(); for ($x=0;$x<count($m3);$x++) { for ($y=0;$y<count($m3[$x]);$y++) { if (isset($data2[$x][$y])){ echo "value aR=> ".$aR2[] = (($m3[$x][0]*$data2[$x][$y])+($m3[$x][1]*$data2[$x][$y])+($m3[$x][2]*$data2[$x][$y]))."<br/>"; } } …

Member Avatar
Member Avatar
+0 forum 2

Im doing an application n c# and using Ms Access 2003. i want to check whether a product id already exist in the database. Below is part of my code[code]string sql; OleDbCommand cmd; OleDbDataReader rdr; mDB.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data source=" + Path.Combine(Application.StartupPath, "..\\..\\Company.mdb"); mDB.Open(); sql = "Select COUNT (*) ProductID FROM Product"; cmd = new OleDbCommand(sql, mDB); rdr = cmd.ExecuteReader(); if (txtProductID.Text == (string)rdr["ProductID"] ) { MessageBox.Show("ID exixst"); } else { return; }[/code]

Member Avatar
Member Avatar
+0 forum 4

Dear All ! I have a table member_email. i have 4 columns in it. Id Email CellNumber Carrier I want to create constraint who check following conditions, 1-Email can be null if Cellnumber is given , and Cellnumber can be null if email is given. 2-both email and cell number can not be null in one record. 3-If cellnumber is available then carrier should not be null. Carrier will be null if email is given and cellnumber is not available. Need guidence. Regards

Member Avatar
Member Avatar
+0 forum 2

Hi ! I have a column of 'City', now I want to compare the value of each cell of 'City' against the column 'City_Check'; the cell where the value matches, pick the value of 'City_ID' column & replace the city name with that ID in the 'City column'. * The Image clarifies what I want(Plz see the attachments)... I have my original data file attached as well. Regards.

Member Avatar
Member Avatar
+0 forum 5

Hello. Please guide me how to start a session when a user clicks on login page and the info finds correct? How to check this session on other pages which i want to secure from unauthorised access? if the session found then open this secure page, otherwise redirect the user to the index page? and How to end this session when user clicks on Logout? Regards.

Member Avatar
Member Avatar
+0 forum 2

Hello guys, I really need your help on this one, Please help me out with it I'm using a webBrowser in my application "Visual Basic 2010", And what basically it will do, Once you open up the application, It will show you a URL, let's say for example Google.com by default | What i wanted to do is, To kind of show a specific part of the website only and hide the rest of it, Like for example like result or on google.com, Show the search bar and the search button, But not the I'm feeling lucky Button Can't i …

Member Avatar
Member Avatar
+0 forum 7

I don't know whats wrong but my code not working properly here is my html code <input type="text" name="username" id="username"> <div id="check_usr"></div> AJAX call <script> $(document).ready(function() { //user name $('#username').on("keypress", function(e) { startTypingTimer($(e.target)); }); }); var typingTimeout; function startTypingTimer(input_field) { if (typingTimeout != undefined) clearTimeout(typingTimeout); typingTimeout = setTimeout( function() { if($('#username').val().length < 4 ){ $('#check_usr').empty().append('<span class="label label-important">Username must be more than 3 charachters</span>'); }else { $.ajax({ url: "checkuser.php", type: 'POST', data : {username : $('#username').val()}, success:function(data){ if(data === 'yes'){ $('#check_usr').empty().append('<span class="label label-warning">Username is already taken</span>'); }else{ $('#check_usr').empty().append('<span class="label label-success">OK</span>'); } }}); } } , 500); } </script> and php file …

Member Avatar
Member Avatar
+0 forum 5

hi everyone i am try to write a code for a checkbox that work like a radioButton dynamicaly in vb.net. i.e. if i have 5 check box and i try to check the first one other will become unchecked. Second with same code if i increase the number of check box in the Form same code will work for that also.

Member Avatar
Member Avatar
+0 forum 3

The End.