39,395 Topics

Member Avatar for
Member Avatar for jonlloydd

I am trying to create a search box that searches the county field of the database. If the criteria matches then the records will be displayed in the table. I have got the different counties in the dropdown box however when I click the record the table does not change. …

Member Avatar for diafol
0
369
Member Avatar for Aayush_1

I want to develop an image scraper which picks the name of image from an excell file, searches for it on a website and then save the image with image's id as mentioned in excel file

Member Avatar for pritaeas
0
53
Member Avatar for muthu_kumar

1)i have tennacy contract pdf.. its contain 3 pages 2)i want to append the data in the tennacy contract page 3) whether is is possibe in fpdf.. # here my code# <?php require_once('fpdf.php'); require_once('fpdi.php'); // Original file with multiple pages $fullPathToFile = "2.pdf"; class PDF extends FPDI { var $_tplIdx; …

0
93
Member Avatar for Niloofar24

Hello. I want to create a database on my pc localhost and then want to use PDO to connect with that database to creating table and so on... What should i do?

Member Avatar for Niloofar24
0
293
Member Avatar for vishalkumar1234

i have installed xampp server in my pc.i couldn't run programs in browser.when i write http//localhost then it screen comes with written iis7.please help

Member Avatar for lps
0
288
Member Avatar for TheEdsgurl

I'm using sockets.io, express and php and I was wondering if it is possible to push something of a page (that only a specific user can see at the time) to another page other can see. For example, if an admin has: <?php $a = $row['test']; //data from test table …

Member Avatar for matrixdevuk
0
264
Member Avatar for malatamil

upload.php <form name="selectionForm" method="POST" action='query.php'> echo "<select name='$q2['type']'>"; //echo "<select name='selecttype'>"; echo "<option value='Regular Project'>Regular Project</option>"; echo "<option value='FSA Project'>FSA Project</option>"; echo "</select></td>"; echo "<input type='hidden' name='mid' value='$q2[0]'>"; echo "<td width='140'><textarea rows='2' name='comments[]' cols='20' ></textarea></td>\n"; echo "</tr>\n"; </form> query.php $selecttype = $_POST['selecttype']; instead of calling 'selecttype' i want to call …

Member Avatar for diafol
0
251
Member Avatar for Tinnin

Hi All, I'm trying to convert a .p12 file to a .pem using php (because, as I understand it, soap needs to take a .pem format certificate) Am I going about it the right way? $certificate = array(); $pkcs12 = file_get_contents('certificate.p12'); if (openssl_pkcs12_read($pkcs12, $certificate, 'pass')) { if (isset($certificate['pkey'])) { $pem …

Member Avatar for gulshanmaurya
0
2K
Member Avatar for kalcio

I want to get data from my database table "Client",but I get this result: `[{},{},{}]` this is my code: <?php namespace OP\OPBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use OP\OPBundle\Entity\Client; class ClientAPIController extends Controller { public function indexAction() { $em = $this->getDoctrine()->getManager(); $personne = $em->getRepository('OPOPBundle:Client')->findAll(); // $personne_tab=array(); // $personne_tab['nom']=$personne->getNom(); // $personne_tab['prenom']=$personne->getPrenom(); // $personne_tab['id']=$personne->getId(); $personntojson= …

Member Avatar for pritaeas
0
285
Member Avatar for AntonyRayan

For image upload , This is my code, What is the error, its not checking in else part if(!$('#upload').val()) { alert('Upload Your Photo'); $('#upload').focus(); return false; } else{ $('input[type=file]').change(function () { var val = $(this).val().toLowerCase(); var regex = new RegExp("(.*?)\.(jpg|jpeg|txt|png|docx|gif|doc|pdf|xml|bmp|ppt|xls)$"); if(!(regex.test(val))) { $(this).val(''); alert('Unsupported file'); } }); }

Member Avatar for AntonyRayan
0
184
Member Avatar for lily90

morning i have an issue and need help. i have a page that retrieve the information entered on a form every time you hit the button submit. the page display all the field form that was entered except from one which is a radio radio buton and give me that …

Member Avatar for almostbob
0
441
Member Avatar for fireburner29

Hi there, I am stuck in the php validation. In my form have to show list banks by in my form, if the client may be enter the correct name or enter few char and select the bank name from datalist.if Suppose the client enter any name (except exist bank …

Member Avatar for edbr
0
404
Member Avatar for stokie-rich

Hi Guys hope that you are all well. I have statred to use the bootstrap framework to create my website, I have got all of my pages working and linking correctly using bootstrap and its looking pritty awesome now! I have found a video on youtube to help me to …

Member Avatar for diafol
0
816
Member Avatar for kingwash

<?php $b=('some data from db') class one{ public $a=$b; } i want to initialize the $a with a variable outside the class, but it is not working. Please how can do this. Thanks in advace

Member Avatar for diafol
0
137
Member Avatar for Simon_4

I am maybe blind or so... just got nearly the same problem as before. I not get the values of the selectfields. I got 0 - 8 instead of some strings. Here is the url: http://web159.login-142.hoststar.ch/memberd/de/prices/ Here is my code I use to get it: # read size of one …

Member Avatar for bnmng
0
280
Member Avatar for malatamil

In this each member has 3 type of project selection. if one member has selected "regular Project" then remaining types should be displayed in dropdown for each member. But here i tried with this code.. example i have 6 members, then 6 members can have 3 type of selections.. if …

0
109
Member Avatar for Emmie_1

hi my name is faiyaz i m an bing and google adwords account manager i have issue sgoing on from last few days my Competitor are using some kind of software to make auto click on my ads costing me 80 to 100K every day please help i ahve no …

Member Avatar for almostbob
-3
114
Member Avatar for OsaMasw

hello guys, good morning one of our servers recently upgraded to Ubuntu 14.04 so for this PHP upgraded to 5.5.9 all scripts on this server stopped working because they use a functions not supported by newer version of PHP, I need to downgrade PHP to 5.3 so I can make …

Member Avatar for diafol
0
644
Member Avatar for Kyriakos_1

I have several mp4 files on my server and i want to generate a thumbnail image for each of the file. Do i have to read the complete file for a thumbnail, or is there a way to just seek at middle of the video and take that frame as …

Member Avatar for cereal
0
104
Member Avatar for toxicandy

I am working on an internal in and out board for our work place. Our current application is having issues plus it is being hosted on Windows Serer 2003 which is losing support come July (2015). We are starting on a new application since our old one is now 7 …

Member Avatar for mattster
0
571
Member Avatar for davy_yg

update_image2.php <?php session_start(); ?> <!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>Portal</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie7.css" /><![endif]--> <!-- JavaScripts--> <script type="text/javascript" …

Member Avatar for diafol
-2
298
Member Avatar for boney

Hi, I want to output a simple result. I join 2 tables and SUM one column in one, i get the SUM results correct but cannot get the num_rows proper. My Code: $clientid = 24; $query = "SELECT items.itemid, SUM(prices.priceid) as PR FROM items JOIN prices ON items.itemid = prices.itemid …

Member Avatar for cereal
0
160
Member Avatar for harishprakash
Member Avatar for diafol
0
72
Member Avatar for Helder_1

I'm coding a simple portal do maintain work history and I'm facing a problem. While php retrieve data from mysql I would like that he create a btn or a link to download a file in a directory (path on mysql). 1- script: http://pastebin.com/mBHCdChK 2- script to retrieve path and …

0
90
Member Avatar for happygeek

Although the term 'reflection DoS' is nothing new, I recall reading something about it three years ago when a high profile security researcher [used it to describe](http://www.understandingcomputers.ca/articles/grc/drdos_copy.html) how malicious SYN packets were being reflected off bystanding TCP servers and the SYN/ACK responses used to flood his bandwidth. More recently, Garrett …

Member Avatar for happygeek
1
448
Member Avatar for shahiduop

hi i have a newslist table that shows all news titles being published.news are displayed using while loop. i want to add a check box on left side of each news title, i want when users check multiple checkboxes,news id associated with theses checkboxes shold be taken and the selted …

Member Avatar for pushpatiwari
0
2K
Member Avatar for subbu_1

hi I am trying to develop a code for sending friends request and accept or reject, please anyone help me how do I do this? where can I get reference script for this?

Member Avatar for jasonkaven
0
96
Member Avatar for reminem

Hello everyone, I have the following script: <?php $con=mysqli_connect("localhost","name","name","database"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $resultaat = mysqli_query($con, "SELECT `question` FROM databasename WHERE `id`= 2"); while ($row = mysqli_fetch_assoc($resultaat)) { echo '<table>'; echo '<tr>'; echo '<td>'. '<input type="text" value= '.$row['question'] …

Member Avatar for diafol
0
553
Member Avatar for jonlloydd

Could anyone help me with code for a simple PDF file uploader in PHP I want to upload to a file on a server. Ive tried to write one several times and I simply can't get it to work!

Member Avatar for diafol
0
541
Member Avatar for Wycky

Hello, I got this code: <?php //mysql connection $dbconn = mysql_connect("localhost","root","password") or die(); mysql_select_db("imaccs_v1") or die(); $sqlquery = "SELECT * FROM clerks"; // query on table $sqlresult = mysql_query($sqlquery, $dbconn); $count = mysql_num_rows($sqlresult); // count query result ?> <table width="400" border="1" cellspacing="1" cellpadding="0"> <tr><td> <form method="post" action="delete5.php"> <table width="400" border="1" …

Member Avatar for reminem
0
155
Member Avatar for Sahuiikm
Member Avatar for brandon66

Hell everyone i have datatables set up right now and i want to convert it over to server-side processing [Link to Script](http://www.datatables.net/development/server-side/php_mysql) right now i am using this code which seems to be very inefficient now that the database is getting larger. Would anyone want to help me convert this …

Member Avatar for Sijeveux
0
2K
Member Avatar for harishprakash
Member Avatar for pixelsoul
0
127
Member Avatar for gabrielcastillo

So I am trying to remove line feed within an array but not cariage returns. Having trouble using array walk, the ltrim function is not working. I need to remove ONLY the line feed("\n") not the cariage return("\r") so using trim will not work. I tried setting the chr(10) and …

Member Avatar for gabrielcastillo
0
327
Member Avatar for AntonyRayan

Hi, In one window by clicking a button(button name select) a pop up window, in that pop up window , I have only lot of check boxes. My query is, I want to show what are the values I selected in the pop up window that should display in the …

Member Avatar for AntonyRayan
0
87
Member Avatar for jonow

I know i just posted below, but i have another question. Is it dangerous to have the <head> tag be included using PHP include? Is it dangerous to have the <body> tag or <html> tag or doctype to be included using PHP?

Member Avatar for Squiva
1
2K
Member Avatar for sickly_man

This is probably a stupid question, but I am new to this stuff and need some help. I have a form with a text box and a submit button, and I want to pass the user-entered contents of the text box to a php variable ($size) when the user clicks …

Member Avatar for Squiva
0
17K
Member Avatar for AntonyRayan

Hi Once again! I don`t Know. In a page I have a contact form in that The fields are ike name, email, subject, message. All are mandatory. I wont store in database. After clicking submit query , it should go to admin mail how to do? tell me with example?

Member Avatar for Squiva
0
142
Member Avatar for F-3000

I'm wondering is there anything specific I should take into account when writing CMS logging (debug/alerts) into a plain text file? To specify more what I have in mind, think of logging into SQL database, and how stuff need to be escaped to be sure there won't be injection-attack thru …

Member Avatar for Joel100
0
273
Member Avatar for subbu_1

I have code like below <?php if(true){ global $search; $search = "hello"; } elseif(true) { echo $search; } ?> I am unable to access $search value from if() block to elseif() block, is my approach is wrong? please anyone tell me any other way to access variables from one block …

Member Avatar for bnmng
0
264
Member Avatar for mjb925

I have 4 different dynamic variables that change per user (age, gender, country, approval rating) What I need to do if create a conditional if statement where it checks to see if all or any are correct. I can get it to work with all, and can get it to …

Member Avatar for Squiva
0
177
Member Avatar for Sam.Samual

Hello everyone... Can any body help me to solve my problem. How to play back the recorded video after online class end in BigBlueButton by php. Thanks, Sam Samual

Member Avatar for diafol
0
38
Member Avatar for jonlloydd

I am trying to create a PHP PDF uploader that prints the filename type and size. However when I click the upload button it says "Upload failed with error". If anyone could help with this I would really appreciate it! <?php $allowedExts = array("jpg", "jpeg", "gif", "png", "pdf"); $extension = …

Member Avatar for registerers
0
262
Member Avatar for mattyd

I am recieving a notice(s) multiple times when running a file: Notice: Undefined index: Telephone in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 111 Notice: Undefined index: eMail in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 112 I have researched this and the ways to solve it. Most ways involve isset it seems, but none of my code …

Member Avatar for pritaeas
0
1K
Member Avatar for cool_irfan

Hi friends, I'm developing the online exam application and strucked. below is my code to display the records randomly each time, but the problem is these questions are repeating and also the answer of the next question(that is about to display) is saved as the answer selected for present displayed …

Member Avatar for cool_irfan
0
3K
Member Avatar for Smoking Bros

Hello everyone! I got a series of C++ tutorials and a series of Blender tutorials and 1 tutorial on how to get free Windows Vista look on your Windows XP on YouTube.. So I thought I would so some PHP tutorials too... And as always I wanted to check if …

Member Avatar for J. M. P.
0
811
Member Avatar for robertlaar

What is the reason to use PHP frameworks when we have wide range of Content Management Systems available in the market.\

Member Avatar for cilla
0
280
Member Avatar for rhodoscoder

I'm trying to work with the codeigniter CMS BONFIRE.I've used codeigniter before, I actually have an installation of both pure codeigniter and bonfire on my local server.First off I've been having trouble with my .htacess files on my xammp server but that's a topic for another day.My Bonfire installation for …

Member Avatar for cereal
0
444
Member Avatar for mattyd

I am working with two seperate files which contain similar code - One throws a parse error for an identical line, the other does not. I do not understand why this would be. **The error on the file that will not run is**: Parse error: syntax error, unexpected '2' (T_LNUMBER) …

Member Avatar for mattyd
0
422
Member Avatar for programmingman

I am having difficulty using phpmailer. I get connection errors. The most recent error is: Connection: opening to smtp.gmail.com:587, t=300, opt=array () Can someone tell me what is wrong?

Member Avatar for jstfsklh211
0
123

The End.