39,320 Topics
| |
Ok so what I want to do is only execute the folowing code when the user enters a postcode to be within Greenwich according to the Latitude and Longitude of Greenwich how do I do this? As each time the postcode changes both the latitude and longitude changes? $val = … | |
I can't use PHP. Every time I put it on my website, it either doesn't pop up or shows the code itself. How do I fix this? (Just started using PHP, I'm not good.) | |
Hi all, I'm working with a PHP mail form and so far all is working well. It is returning everything from the form except the checkbox results. For them, it just says 'array'. I've searched high and low for a fix but I can't seem to get it working using … | |
hello dears friends i get a error on my page but i don't know what i do wrong the error code is "Notice: Undefined index: MM_Username in c:\folder\page.php on line <form name="form1" method="POST" action="<?php echo $editFormAction; ?>"> <label for="textfield"></label> <input name="article" type="text" id="article" value="<?php echo $row_N9389['article']; ?>" readonly><br> <label for="price"></label> … | |
I have a login page that uses email and password and also an admin checkbox. i have already created the coding for email and password login but not the coding if checkbox is checked it will direct admin.php coz well im not sure how. normal users will be directed to … | |
Hi frens, I have already asked this question in another thread, but then felt this issue was irrelevent to that thread. I have a requirement to generate a invoice in pdf format and download it. i have a dynamic form, where user can enter date, choose option from dropdown, add/remove … | |
Hello, I try to make a pdf in my web app. But when I built pdf, it always display "Failed to Load PDF Document". I will send my code with all library to you when u comment on this forum. cause I cant explain it well. :( Thanks before. | |
I have created a login page using CodeIgniter 1.7. its code is shown below: <?php class login extends Controller { function login() { parent::Controller(); } function index() { $this->load->view('loginview'); } function verify() { if ($this->input->post('username')){ $uname = $this->input->post('username'); $upass = $this->input->post('password'); $result=$this->dblogin->verifyUser($uname,$upass); if($result){ redirect('dashboards','refresh'); }} } } /* End of … | |
Array ( [results] => Array ( [0] => stdClass Object ( [status] => No [student_id] => LR0s646RYl [examiner_id] => mA0b2mv51s [audio] => stdClass Object ( [__type] => File [name] => a038ddfc-67e8-4cb9-ba6b-87613f355ceb-test_26-11-2013-10-32-pm.mp3 [url] => http://files.parse.com/96571424-15c1-4ad5-8c56-404c6b4b930a/a038ddfc-67e8-4cb9-ba6b-87613f355ceb-test_26-11-2013-10-32-pm.mp3 ) [createdAt] => 2013-11-26T17:38:46.097Z [updatedAt] => 2013-11-26T17:38:46.097Z [objectId] => NfiG4j80ON ) [1] => stdClass Object ( … | |
Dear Sir, I have following codes if(isset($_POST['delete'])) { // Get values from form $sno = $_POST['txtsno']; $pro = $_POST['txtpro']; $wet = $_POST['txtwet']; $query = "delete from test WHERE sno={$sno}" ; $result = mysqli_query($con, $query); if(!$result){ echo "<script>alert('Record not deleted')</script>"; }else{ echo ("<script>alert('Record deleted successfully')</script>"); } } It works fine, but … | |
hi guys, What will happen if the PHP developer leaves the company and what might be the consequence if his/her program will be used by another developer of the company. Some concerns that the 2nd programmer will have the chance to steal the program. niu any comments are much appreciated. | |
I am new to php and been following various youtube tutorials and boought a few books, I am now however clueless with my latest error and really need some help. This is my error Parse error: syntax error, unexpected T_STRING unexpected '?' in /web/com/138601040918006/main.php on line 17 Please have a … | |
HI I'm working with a php script and connecting via PDO to a database My php file retrieves all data from datebase when I selected one radio button for example 2GB usb driver. This is my html code <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>form php pdo</title> </head> <body> … | |
Rewrite the following piece of code using only if() and while() statements: case'a': p = one(q); break; case'b': p = p %2; case'c': do { r += p*q; p *=2; } while (p < 20); break; case 'd': case 'e': for(i=0;i<4;i++) { p += q+r; q = q/2; r = … | |
Tryin to get this project to open on the server but before i can even see the php file inside i am getting errors. Solved a few but cannot see the error here hopefully ye can help. Error 1 = SCREAM: Error suppression ignored for Error 2 : Parse error: … | |
navigation.php <div id="navigation"> <div id="logo"><img src="images/logo2.png" width="160" height="60"></div> <?php include('include/con_database.php'); $result2 = mysql_query("SELECT menu_name FROM menu_order WHERE menu_id='1'"); while ($data2 = mysql_fetch_array($result2)){ echo '<td>'.$data2['menu_name'].'</td>'.'<br>'; } ?> <div id='cssmenu'> <ul> <li class='active'><a href='index.php'>|    Home    |</a></li> <li class='has-sub'><a href='index.php'>    Product & Services    |</a> <ul> <li class='onelayer'><a href='connection.php'>    Connection       <img src="images/arrow.png"></a> <ul> <li class='onelayer'><a href='vsat.php'>    VSAT</a></li> <li class='onelayer'><a … | |
Hi - I am having an issue and can't seem to get my head around it. I am trying to calculate GBP from EUR - which should be easy but for some reason my returned value is always a few GBP more than it should be, yet I do the … | |
hi i am mangesh i have a problem i.e. i have a menu form in that menu items nad it name and values it come from my datavase i mean i featch that menu from my db now i waana uhen i select checkbox then i waana the sum of … | |
Fatal error: Call to undefined function dean-ueki@hotmail.com() in F:\xampp\htdocs\contact.php on line 87 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'> <link href="style.css" … | |
Hi I am a beginner programmer and I am really interested about learning new skills. So I need your help. I have a question regarding designing. I want to design a website where the user will be first shown couple of example page designs/template and then the user chooses one … | |
Please if u can send me the code or any example of the code of this game because i have on project on my univesity on app inventor . the game is like that this link http://www.mathplayground.com/numberballs.html but my project really contain :With the start of the game, from the … | |
Hey programmers, I am working for my website http://www.printusher.com and when i wish to make it open fast for seo reasons. the website speed is slow. How can i speedify my website to open it seen. Please give me some suggestions who know about this problem | |
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 … | |
I have a web page with highcharts jQuery library and I used CSV file as a keep my data. Now I waht get data from my server mysql data base. Any one can me explain how highchrts link with mysql data base | |
Hi, all I've been banging my head on this one for about a day, now, so I figure it might be time to consult experts. I've got a form, here, that has 3 fields (First, Last Name, and E-Mail address). It's supposed to auto-generate a username and password, insert into … | |
i am using hpage to create my site and i want to creat a form of my own to send feedback to email | |
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in F:\xampp\htdocs\s.php on line 95 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR...l1-strict.dtd"> <!-- --> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="keywords" content="" /> <meta name="description" content="" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Yakity Yak</title> <link href='http://fonts.googlea...=Oswald:400,300' rel='stylesheet' type='text/css'> <link href='http://fonts.googlea...css?family=Abel|Satisfy' rel='stylesheet' … | |
Hi all. I'm having a mad issue... totally mad. I mean I've never had this before. I have the following HTML form: <form action="" method="POST" name="createForumCategory"> <label>Create a new category:</label> <input type="text" name="category" class="m-wrap placeholder-no-fix" /> <input type="hidden" name="id" id="id" value="<?php echo $forumOrange['id']; ?>" /> <button class="btn green" type="submit">Add Category</button> … | |
I just got a new laptop that is running os x maverick. I opened the /etc/apache2/httpd.conf file and uncommented the # Virtual hosts Include /private/etc/apache2/extra/httpd-vhosts.conf and LoadModule php5_module libexec/apache2/libphp5.so lines, but I still can't run php files. Does anyone have any idea how I can run php files locally again? | |
I am attempting to use preg_replace to purge everything except letters and numbers in the $_POST, however is seems to be failing to work. Sample code below demonstrating the problem. <html> <?php if( isset($_POST["name"]) || isset($_POST["age"]) ) { $x1 = preg_replace('[^A-Za-z0-9]', "", $_POST['name'] ); $x2 = preg_replace('[^A-Za-z0-9]', "", $_POST['age'] ); … |
The End.