39,323 Topics
| |
Good Afternoon All, Been a bit since I had a question... Guess my education from Daniweb is paying off...;-)) I have a form where a member is posting a banner URL and alt text to display a banner on our site. I would like to validate the URL they enter … | |
Hello. I'm creating a CMS. I've got this log_error. Can you explain the problem for me if the error message is clear enough for you to understand it? I'm new to PHP. the log_error says: `PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent` | |
This code is not display data and not show any error.so reply me what is error. <html> <head> <title>insert new post</title> </head> <body> <form method="post" action="insert_post.php" enctype="multipart/form-data"> <table align="center" border="10" width="600"> <tr> <td align="center" colspan="5" bgcolor="yellow"> <h1>insert new post here</h1></td> </tr> <tr> <td align="right">post title</td> <td><input type="text" name="title" size="40"></td> </tr> … | |
Let me explain what I mean by that.... I want to make a members portal on which every one will post so what I want is that every user/member must have their own Control Panel where they can do the following: add new post, delete their own posts, change their … | |
Hi, how do i pass the variables color, city and food to the mypage.php? I am able to get 'name' and 'age'. I want tto be able to pass all the variables mentioned in the script. <script type = "text/javascript" src="mypage.php?name=test&age=23"> var color = "red"; var city = "london"; var … | |
Hi I need to look in a field to find the text same as another field I have this at the moment but it does not work, hoep you can help update TAB1, TAB2 set `field3` =`field4` where FIND_IN_SET('`FIELD1`', '`FIELD2`') I feel FIND_IN_SET is not the right thing as the … | |
How do i get the title of the post and the image from a URL? Say i enter a random URL, I want to get the main title of the post in that page and number of images and the images itself. file_get_contents() doesnt help. | |
to ask user before deleting a record If user clicks ok then only delete record from database If user clicks cancel then it should not delete record | |
| Anybody using L5 yet? Just got to grips with 4.2 and thought I had it cracked. L5 was a shock. The "simplicity" of 4.2 has disappeared IMO. The documentation sucks too. But I don't want to be a hater. Am I missing out on rolling back to 4.2? I've read … |
I'm not sure what the issue is. I've checked all my encodings and they are all set to UTF-8 and no matter what the emails come in weird text. Not everything just throws in a weird letter at the end of words for some reason. Example of email The Server … | |
Hi All, I'm trying to unlink a file. I start with a form and submit it using javascript's submit() (out of necessity). Eventually the php code arrives at a function and unlinks the file (or rather doesn't). Now, the files unlinks when I use die() to exit out of script … | |
Hi, I have created dynamic dropdown list called technologies from table "technology". I have used it on another form called 'add_project'. In this form, there are 2 fields project name and technology which is dynamic dropdown list. I am getting all the values in dropdown.Now I want to save those … | |
problem with this code is, it is printing only first element,how can i print all elements which are added using addrow() <script language="javascript"> function addRow(tableID) {var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var cell1=row.insertCell(0); var element1=document.createElement("input"); element1.type="checkbox";element1.name="chkbox[]"; cell1.appendChild(element1); var cell2=row.insertCell(1); cell2.innerHTML=rowCount+1; var cell3=row.insertCell(2); var element2=document.createElement("input"); element2.type="text"; element2.name="txtbox[]"; cell3.appendChild(element2); } function deleteRow(tableID){ … | |
Hi, I need a php code for converting from any format to pdf by clicking a button called convert to pdf. How to do? | |
Hi guys, I want to insert data(integer OR decimal) into database record. should the data structure be integer? if so how do I print the value I enter (12.75 or 3)? thanks in advance. | |
I have a search box and a dropdown box. I am using these to filter data being displayed on my table from the MySQL table. I can type a county name in to the searchbox and all the records with that county name will be dsiplayed. THAT works fine, however … | |
I'm trying to get this cronjob to work but it won't exec the the ffmpeg exec that I have in my controller file. When I try to run it via web browser it outputs the variables correctly but won't exec <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); … | |
Hello guys have a nice day.. I have a problem need to be solved, I have upload script which save files in "/uploads" folder everything was going good until my boss decided to move upload file to storage server and need to store all files in "/etc/mnt/storage/uploads" so what should … | |
HI I want to a make an entertainment web site . What kind of it is more popular now ? how about a game web site ? In my country there isn’t any online game web site and I want to make a online game web site . Can anyone … | |
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. … | |
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 | |
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; … | |
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? | |
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 | |
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 … | |
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 … | |
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 … | |
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= … | |
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'); } }); } | |
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 … |
The End.