39,323 Topics
| |
I have a form that asks the user to enter in an exam id that they want to delete from the exam table in the DB. The problem I am having is that even if the user enters in an id that does not match in the DB the script … | |
I am needing to build a custom portal for very specific needs in my client. They work with dozens of outside contractors and so the basic idea is that the portal will have separate login accounts for each person, including the CEO, accountant, IT, etc. Within each person's "home", they … | |
Hi I need to generate six tables one by one but i am not able to generate with proper alignment its running out of page,I also checked pageheight,but its not working,My code is as follows and its very urgent some expert please hep me out in this issue.Thanks in advance … | |
Hi, I'm new to web development sector. Can anyone suggest me some tips or blogs to gain information about the web development with emerging ideas and tricks. | |
Hello, First off, this is probably not the right section, but the question is asking which language I should choose... so I don't know which forum topic it should go under... I am looking for a solution which would allow someone using an online panel running on my web server … | |
hello i want to display my pdf file on same page when i click on left side ...pdf will open in right div how i will do that??? | |
Hello DaniWeb. I want to generate dynamic table for my cources table. I have tried this code but the header(semester) seems not to be working. <section class="entry-content"> <?php $counter=1; $slect="Select * from mcs"; $qry= mysql_query($slect); while($row=mysql_fetch_row($qry)) { if($counter==$row[1]) { print "<div class='heading vcMsg'> <h3>SEMESTER $row[1] </h3> </div> <div class='column message-column'> … | |
Hi., I'm new to php using yii framework.The radiobuttons in the radio buttonlist are not displayed in IE9 and above.The code written is as follows. The radio buttons are displayed well in all the remaining browsers and also below IE-9(even not in IE-9). how to resolve this issue. <div class="services_opts"> … | |
Hello Friends, I have a mp3 search enging website ([www.mp3tracks.tk](http://www.mp3tracks.tk)). I am new. Do not know how to add a mp3 player just below the searched mp3 files from where the visitor can play, check and then download it. I have gone through many links in google, but non of … | |
<?php if(isset($_POST['login'])) { require 'connection.php'; include 'password.php'; $email = $_POST['email']; $password = $_POST['pass']; $query = $dbh->prepare("SELECT id,name,email,password FROM users WHERE email = :email"); $query->bindParam(':email', $email, PDO::PARAM_STR); $query->execute(); $userData = $query->fetch(PDO::FETCH_ASSOC); $userEmail = $userData['email']; $hash = $userData['password']; if(password_verify($password, $hash) && $email == $userEmail) { session_start(); $_SESSION['sess_user_id'] = $userData['id']; $_SESSION['sess_name'] = $userData['name']; … | |
Hello, PHP gives me wrong calculation results. !? Example, PHP says that: (47,60*554,82)/100 = 263,7 The right result is: 264 My code: function kurs_usd($value) { // in use (usd to dkk) $kurs = mysql_fetch_array(mysql_query("SELECT kurs, time FROM pvs.kurs WHERE id = 'usd'")); if(time() >= $kurs['time']) { $data = explode("\n", file_get_contents("http://www.nationalbanken.dk/_vti_bin/DN/DataService.svc/CurrencyRatesXML?lang=da")); … | |
So I have a website that will upload a volunteer html form to our php database, I have most of the PHP working but a few main parts. Part1: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in /home/petrzilk/public_html/Database/update.php on line 192 I … | |
Hi, Am working on hooks wit codeigniter, am getting an error after applying hooks like "This webpage has a redirect loop". My hooks.php file : $hook['post_controller_constructor'] = array( 'class' => 'SessionData', 'function' => 'initializeData', 'filename' => 'auth.php', 'filepath' => 'hooks', 'params' => array() ); auth.php file: <?php class SessionData{ var … | |
How would I go about appending a character to the end of every line except for the last line? The script won't know the length of the variable, as the last ten lines are loaded via tail. Thanks! | |
Hey folks, I've found 4 ways to call static methods and I'm confued about them. The ways are: **1- className::function() 2- $this->function() 3- self::function() 4- static::function()** so: *1-What are the differences between all of them? 2-What's the main reason for using static methods against non-static methods?* | |
I'm trying to push items into an array. Each time a user clicks a book link, the id of the book is supposed to be added to an array.(The name and id of the book are pulled from the database.) But when i push a new book id, the existing … | |
/////Get gl accounts class///// $sql_class = "SELECT cid,class_name FROM 0_chart_class WHERE cid>=3 ORDER BY cid ASC"; $result_class = mysql_query($sql_class) or die("Error in query: $sql_project.".mysql_error()); echo "<TABLE class='swPrpTopMenu'>"; echo "<th>Account Code</th><th>Name</th><th>Amount</th>"; while($row_class=mysql_fetch_array($result_class )) { $c_id=$row_class['cid']; $c_name=$row_class['class_name']; echo "<tr><td>$c_name</td></tr>"; ////////get accounts $sql_accounts="select ct.name,ct.class_id,cm.account_code,cm.account_name FROM 0_chart_types ct,0_chart_master cm WHERE ct.id=cm.account_type AND ct.class_id='$c_id' GROUP … | |
Hi all, I am trying to start date and end date which is running in my local machine but when I am trying to run online it is not working . here is the code: echo " ONE"; $pDate = date('Y-m-d'); $curdate= (explode("-",$pDate)); echo $curdate[1]."<br>"; echo $curdate[2]."<br>"; $date=$curdate[1]; switch ($date) … | |
Hi, I need a table with dynamic header for first row and the rest of rows is the price. Example:http://www.adtravel.com.my/domestic/package/142-legoland-2d1n-johor-special Any idea to develop in admin page as well as product page? I want to use WYSIWYG editor but my client do not know how to use it.(Because the table … | |
hello every one please help me out i want to show my data according to date... i mean it can be according to current date,previous date data can be according quaterly month how to display it from database. | |
I cant seem to upload a file in php to my server from just anywhere, it will only upload correctly if the file is in the same folder as my upload script which is a serious problem if i want the user to be able to upload from just anywhere. … | |
I am trying to set restriction on uploading files to php server but thats not working except only txt file. here is code. $allowedExts = array("text", "doc","rtf"); $temp = explode(".", $_FILES["datafile"]["name"]); $extension = end($temp); if (isset($_FILES['datafile']['tmp_name'])) { if (($_FILES['datafile']['type'] == "text/plain") || ($_FILES['datafile']['type'] == "application/msword") || ($_FILES['datafile']['type'] == "application/rtf") && … | |
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 … | |
am using XML RPC for webservices on localhost using simple example, but i got above error . //Client.php <html> <head> <title>XML-RPC PHP Demo</title> </head> <body> <h1>XML-RPC PHP Demo</h1> <?php include 'xmlrpc.inc'; // Make an object to represent our server. $server = new xmlrpc_client('http://localhost:81/xmlrpcDemo/sample.php'); // Send a message to the server. … | |
Hello, I am trying to create a form like this: registration1.php <form name="registration1" action="registration2.php<?php //$_SERVER['PHP_SELF'] ?>" method="POST"> <tr> <td>First Name</td> <td><input style="width: 500px;" type="text" name="fname" size="80px"><br><br></td> </tr> <tr> <td>Last Name</td> <td><input style="width: 500px;" type="text" name="lname" size="80px"><br><br></td> </tr> <tr> <td>Email Address</td> <td><input style="width: 500px;" type="text" name="email" size="80px"><br><br></td> </tr> <tr> <td>Phone No</td> … | |
Hello i have array as Array ( [1] => Fedora [6] => Array ( [0] => Android [1] => Selenium ) [200] => Array ( [0] => hi there [1] => New ) ) how to print this in php using for loop because using normal forloop it says no … | |
Hi all, I am very new in website developer. I bought a PHP template and I tried to insert / modifie the header using the Slider Cluster from Jssor slider. But the problem is when I click the content, the header slider doesen't work. It's stop. Here is the link: … | |
i want that when i click on detail button a small widnow open and data show from database with out refraesing the page in the same page i just want to show data i have already shown data on page but that is not in good way i just want … | |
Hello guys I really need your help to save my job. i started to create and attendance system but I stucked up with time in button. I have created a time out button and working fine and great but the problem is that I am unsuccessfull for creating a time … |
The End.