39,320 Topics
| |
Disabled or ReadOnly input field shows Stop symbol when mouse overs on it.How to get out of this problem.The look doesn't satisfied. Please help me how to show only cursor symbol when mouse overs on any disabled or read only input fields. | |
Hello Daniweb,, I have uploaded an image using the student_id as its filename. The student id is auto-incremented and unique per student_id. Now i am confused why it gives me problem to display it. I have tried. <?php print '<img src="uploads/'.$session_id.'" />' ?> <?php print '<img src="uploads/'.$session_id.".".$ext'" />' ?> <?php … | |
I HAVE ONE FORM IN THIS I AM INSERTING AND UPDATIONG BOTH, I WANT TO RETAIN the value of combox box when php validations occurs <td>Page Id</td> <td><select name='pageID' class="select"> <option value='0' >select any page</option> <?php $sql10 = "SELECT ID,Title FROM page"; $val=$PageId?:''; $rs = mysql_query($sql10) or die(mysql_error()); while($row = … | |
Hello, url: http://localhost/elearning/administrator/admin/study_progress_table.php?study_package_id=1 Error appears: Notice: Undefined index: delete in C:\xampp\htdocs\squprime\administrator\admin\study_progress_table.php on line 96 line 96: if (!empty($_REQUEST['study_package_id']) && $_REQUEST['delete']=='yes' && isset($_REQUEST['delete'])) How to fix it? | |
In reference to this: http://sqllessons.com/categories.html *Change parentid NULL to 0* Let's say I have 6 levels of subcategories. How do I have chained select dropdown based on the main category which has a 0 value under parentid, then show it's subcategoryLevel1 > SubcategoryLevel2 > and so on. Stops when there … | |
hye guys im new here. how do i want to display data from database to web page based on login ?example i already key in john as username and password as blahblahblah . so after login i want to go another page (lala.php). at lala php , i want it … | |
Hey guys, so here's what I'm trying to do: I've made an HTTP script in the game Second Life, it uses an application/x-www-form-urlencoded url to send information to my Php script on my website. Here's the script: <?php define('DB_NAME', 'vangua01_access_list'); define('DB_USER', 'vangua01_admin2'); define('DB_PASSWORD', 'askljflnfldsakn'); define('DB_HOST', 'localhost'); $action=$_POST['action']; if($action == 'connect') … | |
1. <?php 3. /* 4. $con = mysql_connect("localhost","root",""); 5. if (!$con) 6. { 7. die('Could not connect: ' . mysql_error()); 8. } 9. mysql_select_db("nvron",$con); 10. */ 13. $con = mysql_connect("localhost","nvronusr","DBpwd!@#"); 14. if (!$con) 15. { 16. die('Could not connect: ' . mysql_error()); 17. } 19. mysql_select_db("nvron", $con); 20. $DOWNLOADPATH='C:\Users\LENOVO\Desktop'; // … | |
hello evryone so i just finished my website, the problem is ive been creating this website on localhost with xampp and all my the database i created is in there, is any how a way to copy my tables on my ipage mysql database website? i just need tables and … | |
hi! i'm new here..my english is poor..:'( i'm doing my industrial training..i just want to ask..how to make a selection: *negeri = state * my question is by using these code.. --> how to make a state select then the branch will appear together if related? hope my english is … | |
Hi, i found this code [online](http://www.macrostash.com/2011/09/17/demo-use-a-php-mysql-database-to-load-markers-on-a-google-map/#comment-2675). After installing and running code on my website, the screen shows nothing back, though code is firmly in place. <script type='text/javascript' src='jquery-1.6.2.min.js'></script> <script type='text/javascript' src='jquery-ui-1.8.14.custom.min.js'></script> <style> BODY {font-family : Verdana,Arial,Helvetica,sans-serif; color: #000000; font-size : 13px ; } #map_canvas { width:100%; height: 100%; z-index: 0; … | |
Hello Pals... Help with this code...I am unable to hold Angularjs tag with Php variables $vid = "{{task.vid}}"; //this where the Errors comes in :( $s = $db->query("SELECT * FROM reply WHERE post_id_fk = '$vid'") or die($db->error.__LINE__); Please how can i go about this? Thank you! | |
Hi Everyone, I am trying to write text to a image and I would like to save that image as a new file with the text in place. I have been doing some google'ing and testing but im getting confused a wee bit. The two scripts I have found both … | |
I want if the user clicks submit to return the the selected value when the form reloads that what I try and no luck <?php $getData = $db->prepare("SELECT * FROM first_university_degree_list"); if ($getData->execute()) { $res = $getData->get_result(); while ($data = $res->fetch_array()) { ?> <option value="<?php echo $data['univ_degree']; ?>" <?php if($FirstUniversityDegree … | |
here i'm working with php regular expression. in this project my leader said use only regular expression instead of PHP predefined function. i know the PHP string functions are simple to find output. but here i need to use regular expression. this is the equivalent php function $refined_output = str_replace(' … | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="#" method="post"> UserName: <input type="text" name="username"><br /> Passward: <input type="text" name="passward"><br /> Name: <input type="text" name="name"> <input type="submit" name="Submit" value="Sent"> </form> <?php $con=mysql_connect("localhost","root","","firstphp"); if(isset($_POST['Submit'])) { $UserName = $_POST['username']; $Password … | |
hi when i am tring to run this script then could not setup cookies don't know why somebody plz help <!doctype html> <html> <head> <title>Login</title> </head> <body> <p><a href="aba.php">Register</a> | <a href="login.php">Login</a></p> <h3>Login Form</h3> <form action="" method="POST"> Email: <input type="text" name="email"><br /> <input type="submit" value="Login" name="submit"><br /> </form> <?php if(isset($_POST["submit"])){ … | |
I am trying to validate my form fields and redirect the user to success page so this is the PHP code if (empty($_POST['experiences'])) { $error['experiencesErr'] = "Experiences Required"; } else { $experiences = check_input($_POST['experiences']); if (!preg_match("/^[0-9_a-zA-Z ]*$/", $experiences)) { $error['experiencesErr'] = "Only letters, numbers and '_' allowed"; } } $courses … | |
Hallo, I am trying to understand the nature of using ini_set : ini_set("SMTP", "smtp.indonusa.net.id"); So if I delete the: SMTP = smtp.indonusa.net.id, will it works? Is it the same thing like writing that code to php.ini? php.ini SMTP = smtp.indonusa.net.id Thanks. | |
Hi, I've done my bachelors in Computer Science and was working for the past 2 and a half years in PHP and MySQL. Now I'm planning to change my career path to IBM Websphere Administration. However, changing directly from PHP to Websphere seems quite impossible. So I've planned to take … | |
Hi All I have created a simple php rss feed with works fine. However what I would really like is for the rss feed to dynamically change based on a search form. i.e. User searches for all properties for Rent, of Apartment type only, clicks on the rss icon which … | |
one who can solve this php code ^ echo "<option><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></option>"; ^ And the error on the page http://gyazo.com/aaf5d029a1da9d52ea3341dd01e55960 | |
<?php include"header.php"; if(empty($_SESSION['UserName'])){ header("Location: login.php"); exit;} $start=0; $limit=5; $page=''; $tbl_name="menu"; $targetpage = "menu.php"; //your file name (the name of this file) if(isset($_POST['fullname'])){ $term=$_POST['fullname'];} if(isset($_GET['page'])){ $page=$_GET['page']; $start=($page-1)*$limit; } { if(isset($_POST['Submit'])){ $query=mysql_query ("select * from $tbl_name where MenuName like '%$_REQUEST[fullname]%' LIMIT $start, $limit"); $search_num_rows = mysql_num_rows($query); echo "<div class='main'>"; echo"Found " .$search_num_rows. … | |
Write a function that outputs all the words ending in a "s", in a sentence sent to it as a parameter. | |
hi , it's joy i want to learn about error messege in php i mean if we find user already exits on the database then how to display an error messege on same page same page means like displaying another page on the main page like pop up messege.thanks in … | |
Hallo, I am trying to create device setting which includes: microphone, webcam, and speaker check features. Also if possible also being connected to speedtest.net to check internet connection speed. How to do so? Thanks before. | |
[Send email through command prompt](http://adiwazsha.wordpress.com/2008/05/16/kirim-email-lewat-cmd/) Sorry in different language: —-> s.itb.ac.id = intended mail server that we intend to send email —-> 25 = SMTP port This is the syntax that I tried: ---------------------------------------- 220 BLU437-SMTP35.smtp.hotmail.com Microsoft ESMTP MAIL Service, Version: 8.0.92 00.16384 ready at Fri, 15 Aug 2014 03:57:02 … | |
Hello I've created a custom php page for display in WordPress, and the client wants to allow users to be able to save this page from the browser as a pdf file on their desktop. How can I do so, keeping in mind that I do not have access to … | |
How to pass an row from resultset to an array[some index]=$row; | |
The End.