39,320 Topics

Member Avatar for
Member Avatar for SimonIoa

Hello i a have a problem with my site. The thing is that the images take too much space and the site runs slow. A programmer seiad that i need to resize them. How do i do that? i have set the upload file to be under 2mb. this is …

Member Avatar for cereal
0
654
Member Avatar for PulsarScript
Member Avatar for diafol
0
143
Member Avatar for santunu23

HI i am trying to work with a html5 canvas for signature capture i got script and try to get the signature with ajax and php function saveit() { var myDrawing=document.getElementById("newSignature"); var drawingString=myDrawing.ToDataUrl("image/png"); var postData="canvas="+drawingString; var ajax=new XMLHttpRequest(); ajax.open("POST",'saveimage.php',true); ajax.setRequestHeader('Content-Type','canvas/upload'); ajax.onreadystatechange=function() { if(ajax.readyState==4) {alert("image saved"); } ajax.send(postData); } and here …

0
91
Member Avatar for grakovski

hello, I have trouble with mustache php template engine. I have this: $get2 = mysqli_query($link,"SELECT * FROM users_table"); while($row = mysqli_fetch_assoc($get2)) { $values3 = array('repo' => array( 'name3'=>$row['user_name'], ),); } And in template file i try to catch all with: <select> {{#repo}} <option value="{{ name3 }}">{{ name3 }}</option> {{/repo}} </select> …

Member Avatar for grakovski
0
760
Member Avatar for AntonyRayan

while saving in database, if I save A it shouldnot save as A, it should save as 1, for b as 2, it should continue till 26. How it is possible?

Member Avatar for diafol
0
161
Member Avatar for radu.campian

I have to make a select to get the info from db from a particular article id it it about an php to mysql database field edit. Thanks in advance! <? include "db.php";//database connection $order = "SELECT * FROM comanda where ['id']=''"; $result = mysql_query($order); $row = mysql_fetch_array($result); ?> <form …

Member Avatar for broj1
0
208
Member Avatar for anmol.raghuvanshi1

hello every one i am creating form of 15 question length for 5 questions it worked but when i increase the length of question to 15 or 18 dont work plz help me it's urgent <?php //Start session session_start(); //Include database connection details require_once('connection/config.php'); //Array to store validation errors //$errmsg_arr …

Member Avatar for diafol
0
269
Member Avatar for AntonyRayan

How to do Autocomplete in php? Can any one tell me with example in ajax with javascript.

Member Avatar for Sugmuffen
0
256
Member Avatar for anmol.raghuvanshi1

I am Creating a form with some question about 3 or 4 question.answers are submitted via radio button which has to be inserted in database.I have 2 problems problem 1: in given code i have implemented for one question as we know for inserting the ans in database we have …

Member Avatar for anmol.raghuvanshi1
0
203
Member Avatar for mkra

I am trying to get a dropdown box to choose what is printed out. The dropdown is populated by course names and when a selection is made I want certain course modules releated to that course printed. Code to post course name- ?php if ( isset( $_POST['send'])) { print_r( $_POST …

Member Avatar for mkra
0
482
Member Avatar for andreasbb

I am totally new in Wamp server and i don t know how to handle a problem. I installed wamp 64-bit server and i am trying to open the localhost/phpmyadmin page but i get the following message. Can someone with simple steps tell me how to make the server work …

Member Avatar for mlesniak
0
306
Member Avatar for old_apache

<div class="form-group"> <label for='image' class="col-sm-2 control-label">Leader Board</label> <div class="col-sm-10"> <input id= "txt_lead" type = "text" name="image_lead" class="form-control input-sm" onclick ="javascript:document.getElementById('file_lead').click();"> <input id = "file_lead" type= "file" accept="image/*" name="file_ads_lead" style='visibility: hidden;' onchange="ChangeText(this, 'txt_lead');"/> <?php echo form_error('image_lead', '<small class="pull-right req">', '</small>');?> </div> </div> <script> function ChangeText(oFileInput, sTargetID) { document.getElementById(sTargetID).value = oFileInput.value.replace("C:\\fakepath\\", "");; …

Member Avatar for old_apache
0
781
Member Avatar for Viswajith_1

Hi All, Just wanted to know how to post the contents of a file to a 3rd party server using post. I wish to upload the fields and entries on my excel sheet to a different server in one go, that server only support POST and GET.

Member Avatar for pixelsoul
0
31
Member Avatar for Ravi_15

im working on a project .. SCENARIO:::in which we want to collect comment given by 3rd party users or end users and by seeing the comments we should give ratings! My IDEA:: i am grad student- intersted in algorithms and problem solving.. and my intention is to create a two …

Member Avatar for vibtune.scoobie
0
283
Member Avatar for mehul5336
Member Avatar for kwaabs

I seem to have something mixed up with my code. Its just not working. I need help please <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 101 Template</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 …

Member Avatar for diafol
0
183
Member Avatar for iamthwee

What do people think about PHP template engines, or CMS's that get the end user to develop using these template syntax. Is it an extra learning curve, is it not very flexible? Is it a great asset discuss...

Member Avatar for diafol
0
148
Member Avatar for jaspertan
Member Avatar for Mike_21
0
15K
Member Avatar for Stefce

Hello guys i have a big problem over here and and wierd i think, when im trying to add some info into database it works well i have 32 input fields (16 for matches and 16 for match tips) and when i will enter in each some info for ex. …

Member Avatar for Stefce
0
309
Member Avatar for game4tress

When I save an image into the database, the image field has the following information in the field: <Binary Data> But when I read the image from the database I get a "X" or a number like "4172726179" and the image is not displayed. I'm using this code for displaying …

Member Avatar for pixelsoul
0
164
Member Avatar for krishkommireddy

Hi here i am updated one field in moodle(user registration form)but in database this value is not storing ,i want to store this field in database can any body please tell me, if require to modify any file in moodle.

Member Avatar for diafol
0
46
Member Avatar for ramsiva

I need full scure my website. i want know about .httaccess file any body help me

Member Avatar for ramsiva
0
157
Member Avatar for ankit.baphna

Hi, I want to create list of items on my header to which if selected sends that value to my Div class where my search code is there as input to it. I have seen href works for pointing to.php with id value as parameter. but what is syntax for …

Member Avatar for pixelsoul
0
255
Member Avatar for ramsiva

I want the excel import and store into mysql . I want to save full details in my database Won't take duplicate values.

Member Avatar for ramsiva
0
73
Member Avatar for saadi06

Hi, I am using codeigniter for multiple file uploading and it is giving me serious problems. The data from the files are coming to my controller. But when I try to run the upload script it gives me error that the A PHP Error was encountered Severity: Warning Message: Illegal …

Member Avatar for chetra
0
780
Member Avatar for Kewne

Hi guys, I am learning how to code using epesi framework. Can anyone help me with this** Utils_RecordBrowserCommon::get_records** . I can't make it work it always gives me this error **Message: RecordBrowser critical failure, terminating** . I have followed on how the rb is used, this is my code $data …

0
150
Member Avatar for janicemurby

hya all im following a tutorial and i got the following code of which im getting the following error Parse error: syntax error, unexpected T_WHILE in /home/letsswin/public_html/TESTFILES/blog/index.php on line 36 can anyone tell me what is causing this <?php //connect to the database include('includes/db_connect.php'); $query = $db->prepare("SELECT post_id, title, LEFT(body, …

Member Avatar for janicemurby
0
862
Member Avatar for wallet123

Hello There! Im trying to study php on my own. But i have a problem installing "xampp". So please help me. this keeps on showing: 10:27:35 AM [mysql] Expected Path: d:\xampp3\mysql\bin\mysqld.exe --defaults-file=d:\xampp3\mysql\bin\my.ini mysql 10:27:35 AM [mysql] Problem detected! 10:27:35 AM [mysql] Port 3306 in use by ""C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" …

Member Avatar for Atli
0
6K
Member Avatar for Priti_P

Hello, As using Yii's mpdf() extenstion for generating pdf file. code is as below: $mPDF1 = Yii::app()->ePdf->mpdf(); $stylesheet = file_get_contents(Yii::getPathOfAlias('webroot.css') . '/screen.css'); $mPDF1->WriteHTML($stylesheet, 1); $Arraylist= array('employee_gslab_id'=>$employee_gslab_id,'other_details'=>$employee_details); $mPDF1->WriteHTML($this->renderPartial('address_proof',$Arraylist,true)); $mPDF1->Output($name, EYiiPdf::OUTPUT_TO_DOWNLOAD); everything is working as expected except when this file is downloaded/saved then it is not showing extesion to file. how can …

Member Avatar for Priti_P
0
305
Member Avatar for AntonyRayan

How to read an excel file in php? This is my index page::: <html> <head> </head> <body> <form method="post" action="save_category.php" enctype="multipart/form-data"> <label >Import File<span class="mandatory">*</span></label> <input type="radio" name="file" value="1" checked>Excel File&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="file" value="0">CSV File <input type="file" name="import" value="Import" required/> <label >Book Category Name<span class="mandatory">*</span></label> <input type="text" id="categoryname" name="categoryname" …

Member Avatar for pixelsoul
0
251

The End.