39,388 Topics
![]() | |
Hi all,... i've created hyperlink from database to pdf file, my goals when i click the hyperlink then display the pdf file, but the problem is there is a transition page with broken image on the upper left corner and if i place the cursor around the icon the cursor … | |
is it possible to use a string array in mysql using the set data type and add a valuse to it, like a list of names? ![]() | |
Dear Members/Guests, First of all, I'd like to tell you, the following website I am going to talk about is not created by me, so that's why I am having some problems editing or developing it. The problem is, that I have duplicate content on my website's subpage, have a … ![]() | |
my url keys are coming from database , say if my url is abc.com ,i have used a rewrite rule RewriteRule (.*)/(.*)/mcqs/(.*)/(.*)/(.*)\.html mcq.php?mcq_id=$4&page=$5 in this rewrite rule , first four (.*) are coming as url keys from db, but problem is that in address bar am able to add any … ![]() | |
Hello, how do i add an hour to time with DATE_ADD in DATE_FORMAT? Here is my code : <?php session_start(); include('includes/main_funcs.php'); $db = db(); $reponse = $db->query('SELECT name, message, DATE_FORMAT(time, '%H:%i') AS forTime FROM chat ORDER BY ID DESC LIMIT 0, 10'); while ($donnees = $reponse->fetch()) { echo'['.$donnees['forTime'].'] <strong>'.htmlspecialchars($donnees['name']).'</strong> : … | |
I have been having problems with this code and i cant find out why I am trying to add a new element to an array. it says it goes throu butwhen i check its empty: $sql="UPDATE $title SET arole = CONCAT_WS(',', arole, '$name') WHERE op = '$name'"; if (!mysql_query($sql,$con)) { … | |
I have an associative array that is many levels deep. I want to convert it to an indexed array (i.e. remove the key names). I don't want to flatten it; I want it to remain a nested array with all of the values intact. What's the best way to accomplish … | |
Hello everyone, I'm new to php and i'm developing a website for a school project. I need to implement a combobox with some options, for exemple, if I choose "Alimentation" it appears a table with the specific fields for this option and If I choose other option it appears a … | |
Strange question i am afraid, i have a friend who is after information on a database called "Profile". Does anyone have any links to this, as I have been unable to find anything | |
Hi, Below simple code is not working.. Please suggest?? <?php $userinput=24;?> <a href="s.php?id=<?php echo urlencode($userinput); ?>">test</a> | |
this is example of my data name month abc Jan xyz Jan efg feb ijk apr mno apr question is, how to group, using while loop, so the result like this **Jan** abc xyz **feb** efg **apr** ijk mno | |
I have been looking for an answer to this question since so long.. pleaase help.. We developed a website for which a ticket has been raised to make the links case sensitive Server : Linux with Apache CMS used : Joomla 2.5 Framework : Zend framework We are using SEF … | |
Hi All, Am pretty newbie to php and am battling with a piece of code and just dont know what I am doing wrong. I have a set of tabs along the top of my page with differnet user levels. If a user is an admin then they get to … | |
Hi, it's me again.. I have this codes wherein I can export the data from the databse to Excel.. I get a **Notice: Undefined variable: aData** on one of the php files.. well two of them actually.. The weird thing is... The other page which I have modified - i … | |
Hi, I am trying to read the content of url. when manually i put url in browser link : [url]http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions[/url] it opens. but using code [code=php] $homepage = file_get_contents('http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions'); echo $homepage; [/code] Warning: file_get_contents([url]http://www.mvnforum.com/mvnforum/viewmember?member=pbmissions[/url]) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in C:\xampp\htdocs\test.php on line … | |
Hi, I want to select all records from a table where the DateAdded field's date and time (Default value Timestamp field) is more than say 3 hrs ago. eg: something like SELECT tbldata.* FROM tbldata WHERE (tbldata.DateAdded <= now()-3); I can get it working with days difference but do not … | |
I have a business directory website that users can create listings in. I already have the listing functionality mostly working. An example of the code i use is this: <div id="companyName"> <?php echo $row_getListing['company_name']; ?></div> What I want is a code like this to get an image from the logo … | |
I really don't know where to ask something like this, so sorry for this. I have an issue and I really don't know how to solve it. I have php "file upload script", which users uploading files all the times, now the server is nearly full an I want to … | |
I keep getting Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1. I honestly don't see where i might have gone wrong case "Update": if(isset($firstname, $lastname, $phone, $address, $city, … | |
I am wondering if anyone could recommend the best CMS for an Airbnb-style marketplace that allows people to sublet their apartments, and other people to search, filter, and pay for the apartments listed. These are the main requirements: - Ability to sign up both buyers and sellers. - Accounts for … ![]() | |
I am not sure where to even look for any tutorials or information on creating the ads that move with the web page, the ones that slide down the page as you scroll, and then slide back up with you? Not even sure what they are called, I tried a … | |
Ok so this is gotten me. Im trying to get a sql insert to work only if 2 varibles do not equal each other. So easy right just compare the 2 varibles and if they arent equal do the code. Well even if the 2 are equal the code runs. … | |
I have a script that uploads documents, it uploads them in the destination folder, but not the info about the document. Pleasa help i need this as soon as possible. No errors show. <?php $UploadDirectory = 'C:/wamp/www/agenda1/uploaddok/uploads/'; //Upload Directory, ends with slash & make sure folder exist $SuccessRedirect = 'http://localhost:8080/agenda1/index2.php'; … | |
l have been trying to install pear for a long time now but cant get it to work. l am using VertrigoServ as my webs server and have it installed in my D drive. Can someone point me in the right direction a tutorial or something. | |
Hi All, I have been configuring a monthly subscription Paypal IPN to collect monthly recurring payments from a membership website. I have my annual IPN working great. Just strugling with the monthly recurring payments. I have the following configured in my subscription button <input type="hidden" name="a1" value="' . $price . … ![]() | |
The following snippet will show, how you can pass a data array to a function, and generate a table with N columns. `$data` contains some dummy data, which can come from any data source. Then you call `createHtmlTable` passing the data, the number of columns you want, and a function, … ![]() | |
// This block grabs the whole list for viewing $my_id = isset($_POST['id']) ? $_POST['id'] : ''; $ped_list = ""; $sql = "SELECT * FROM `pedagogu`"; $result2 = @mysql_query($sql) or die($sql."<br/><br/>".mysql_error()); $pedCount = mysql_num_rows($result2); // count the output amount if ($pedCount > 0) { while($row = mysql_fetch_array($result2)){ $my_id = $row["ID_Pedagog"]; $ped_emri … | |
<html> <head> <title>PHPMailer - SMTP (Gmail) authenrication</title> </head> <body> <?php require_once('class.phpmailer.php'); $mail = new PHPMailer(false); // the true param means it will throw exceptions on errors, which we need to catch // - - - - - - - - - Email Configuration - - - - - - - … ![]() | |
Hi!everybody,sorry for bother you again I created database as http://www.c-sharpcorner.com/uploadfile/satyapriyanayak/dfgd/ please check my code.here the code so far index.php <html> <head> <title></title> <script language="javascript" type="text/javascript"> function getXMLHTTP() { var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ xmlhttp= new ActiveXObject("Microsoft.XMLHTTP"); } catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e1){ xmlhttp=false; … ![]() | |
The End.