39,316 Topics

Member Avatar for
Member Avatar for thirsty.soul

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'> …

Member Avatar for thirsty.soul
0
192
Member Avatar for sushmaja.arumalla.9

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"> …

Member Avatar for hericles
0
256
Member Avatar for payapart

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 …

Member Avatar for AleMonteiro
0
102
Member Avatar for nadiam

<?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']; …

Member Avatar for thirsty.soul
0
312
Member Avatar for brugernavn

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")); …

Member Avatar for brugernavn
0
608
Member Avatar for toxicandy

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 …

Member Avatar for pritaeas
0
177
Member Avatar for Vishnu_4

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 …

Member Avatar for veedeoo
0
460
Member Avatar for fheppell

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!

Member Avatar for arunmagar
0
169
Member Avatar for safi.najjar1

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?*

Member Avatar for veedeoo
0
229
Member Avatar for dhani09

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 …

Member Avatar for dhani09
0
161
Member Avatar for mwenyenia07

/////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 …

Member Avatar for mwenyenia07
0
210
Member Avatar for subrata_ushasi

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) …

Member Avatar for subrata_ushasi
0
539
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
242
Member Avatar for hriti

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.

Member Avatar for jeffey
0
127
Member Avatar for berserk

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. …

Member Avatar for berserk
0
169
Member Avatar for ultmt.punisher

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") && …

Member Avatar for ultmt.punisher
0
472
Member Avatar for berserk

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 …

Member Avatar for berserk
0
505
Member Avatar for nutandevjoshi

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. …

Member Avatar for nutandevjoshi
0
4K
Member Avatar for davy_yg

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> …

Member Avatar for cereal
0
172
Member Avatar for Priti_P

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 …

Member Avatar for Priti_P
0
170
Member Avatar for Simri

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: …

0
49
Member Avatar for moinwaseer

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 …

Member Avatar for gabrielcastillo
0
218
Member Avatar for UK-1991

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 …

Member Avatar for UK-1991
0
2K
Member Avatar for deva89

I am developing a project on PHP and MySQL. My problem is "I am unable to show a uniqueID in a textbox like 'GHY00001, GHY00002, etc' auto-incremented everytime i load the page and insert it into the database". I already tried some php tutorials but didn't find usuable to my …

Member Avatar for AndrisP
0
464
Member Avatar for Iikeloa

Hi I have a problem with inserting into the database. This is my code : $insert = $db_con->query("INSERT INTO users (username,password,email,com-name,com-logo,com-phone,com-mobile) VALUES('".$username."','".$enc_pass."','".$email."','".$com_name."','".$profile_path."','".$com_phone."','".$com_mobile."')");

Member Avatar for Iikeloa
0
278
Member Avatar for nadiam

database : mysql tool: phpmyadmin today my supervisor set up the web on the companies server. when its all settled, we try out the login page(`index.php`) but we get fatal error and the line its pointing at refers to the `connection.php` page which connects to the database. > Fatal error: …

Member Avatar for pritaeas
0
212
Member Avatar for Sharmilamega

Hi, i have a doubt in php. I need to store datas in database if i before my time ends. But before timing ends datas are not stored in db. this is my problem. Please give one solution for this.

Member Avatar for cereal
0
60
Member Avatar for atakarim

hello sir i am beginner of this course. now i am doing a project where i want to print a page/part of the page from web browser without print window. may i do this? if yes then how i could do so? please help me to find out the solution …

Member Avatar for atakarim
0
233
Member Avatar for zekstein

Hello ! I have a problem ! I'm starting a comment system for my website. The problem is: I want to use an HTML editor, but is not fully necesary. My problem is with the security. How to secure the user input that i save in database? Because i show …

Member Avatar for diafol
0
142
Member Avatar for ravi142

Hello Everyone, Can you suggest me for Any Script or snippets of dopdown value given to **database** using **jquery and ajax** in php file. Thank You.

Member Avatar for diafol
0
384

The End.