39,323 Topics
| |
Hello. I have a two problems with my Regsystem. 1st. **Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mycms\reg.php:229) in C:\xampp\htdocs\mycms\reg.php on line 266** 2nd: When i Register a user - system message "Username already exist" not "Registration succesfull".. this is the code of register.php … | |
Here is my PHP code: $fields=array('eventID','eventTitle','te_events.venueID','te_events.catID ', 'eventStartDate','eventEndDate','eventPrice'); // initialize empty array for WHERE clauses $wheres=array(); // loop through field names, get POSTed values, // and build array of WHERE clauses, excluding false values foreach ($fields as $field) { // get existing field value from POST, mark missing or empty … | |
Hi, I have a question regarding php defined function. I want to see the logic implemented for all the php defined functions. How can I see that. For example I want to see what is the logic behing strstr or how strtolower works.Where can I see in wamp these definitions. … | |
Evening All, I'm new here and new to PHP, so please take it easy on me! =] I'm working on a php login script that would allow a user to enter their last name or their username in the username field and their password. Upon submit, check for a record … | |
hi everyone, i want to store an image in database not by inserting but by updating (by using UPDATE query) and hers my code... everything else is updated successfully but its not storing image..please help me to solve the problem.. im using medium blob data type to store image this … | |
| Just wondering about breadcrumbs and how they work. Specifically in CI. Is it worth implementing? Ta. |
Hi there, I need a help on how to pass php variable to another page when the checkbox is clicked. so far i hav this <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $('.cuttingCheckbox').change(function() { if (this.checked) { $.post('fabProcess.php', { headmark : $($row[HEADMARK]).val(), headmark_id : $($row[ID]).val() }, function(response){ this.setAttribute("disabled", true), alert(headmark,headmark_id); … | |
Pls Clarify the issue My Function : function makeCombination ($my_arr, $k){ reset($my_arr); $enne=count($my_arr); //echo "$enne"; $num_comb=$this->numComb($enne,$k); //echo "$num_comb"; $combinations=array(); $pos=array(); for( $i = $k; $i > 0; $i--) { $pos[$i] = $i; } $counter=0; while(true) { $temp=array(); $i=$k; $counter +=1; if ($counter>1){ while($i-- > 0) { $temp[$i] = $my_arr[$pos[$i]]; } … | |
Hello Guys, I have a form that i used array name. ei. name[] this is my code for input form {{ Form::open(array('url' => 'create')) }} <TR> <TD><INPUT type="checkbox" name="chk[]"/></TD> <TD class="rating"> {{ Form::text('core_values[]', Input::old('core_values[]'), array('placeholder' => 'Criteria Here')) }}</TD> <TD> {{ Form::textarea('behavioral[]', Input::old('behavioral[]'), array('placeholder' => 'Description Here', 'cols' => '75', … | |
Hiy guys alot of you have been brilliant over the past few days. I'm creating my own website and I want to let users register and log in, into the site I'm now getting this error message Warning: mysqli_query(): Couldn't fetch mysqli in C:\xampp\htdocs\submit-form.php on line 19 The following SQL … | |
excuse me, do you know how to put a calendar in the form? I try to put this code in my form but it has an error on line 2. Anybody know? Please help me. Thank you This is the calendar code :- <?php $myCalendar = new tc_calendar("date5", true, false); … | |
Dear all, I have exists excel file on server. Now, I want output the file by php. I have this code: $file = "test.xls"; $file=basename($file); if (file_exists($file)) { header('Content-Type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$file); ob_clean(); flush(); readfile($file); exit; } When I click download button, I can open file, but appear "missing … | |
Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks … | |
I am trying to call a function which is store in some other location. But my index page is not able to make call to this function it seems. This behaviour is only after I uploaded my site on server. On localhost this function module is getting call with same … | |
As part of my web app, users need to be able to move multiple images from one album to another. I'm writing an UPDATE function, as the current album is stored with the image (helpfully, the albumid is the only value that needs changing). Here is the function: function imageUpdate($image_key_array, … | |
Hi All First post. PHP/PostgreSQL newbie... I'm trying to create a simple web page with a dropdown menu. The values for the dropdown menu are retrieved from a database table. The code I've got is... <html> <body> <select> <?php $db = pg_connect("host=hostname port=5432 dbname=dbname user=user password=password") or die ("Could not … | |
Hi All, I'm trying to call data from a php script using getJSON. my php script, php/Validate.php: echo "Hello, World!"; die(); My getJSON bit: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script> $(document).ready(function(){ $("#ValidateButton").click(function(){ $.getJSON("php/Validate.php",function(result){ alert(result); }); }); }) </script> <input type="button" value="Validate" id="ValidateButton"/> I'm not having any luck getting anything output though. Could someone … | |
Sorry to ask this one , but i am helpless to get it out. I am doing a site for my client and created a responsive menu. The font style for the menu is not working even though I marked it as important. My site url is. http://sparrowhair.softcorp.ca/ The style … | |
hi, i am trying to connect oracle with php, i had install wamp, download all dll files needed for oracle. but still getting error. Any body helps to connecting oracle with php | |
This is the project I need to finish. I am fairly new to php and this project has got me confused. Any help would be greatly appreciated I am trying to do a Web form that is taking an online order form! This is What I have so far: This … | |
hello, I have some problem with this code. Jacasript used in AJAX: var xmlHttp; function showUser(str) { xmlHttp=GetXmlHttpObject(); if (xmlHttp==null) { alert ("Browser does not support HTTP Request"); return; } var url="getuser.php"; url=url+"?q="+str; url=url+"&sid="+Math.random(); xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET",url,true); xmlHttp.send(null); } function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById("txtHint").innerHTML=xmlHttp.responseText; } } function … | |
Its image gallery website . I have 5 main categories and each main category has 3 sub category. how can i implement this in a form by selecting the the main category 1st and then sub-category from mysql database and also input today date ? and then update/create the record. … | |
i want to generate the online quiz sytem in which student get the 1st record form a question bank or table and select one choice from given choices and save then get the next record so kindly guide me how one record will be feched in loop so that after … | |
I am trying to do a Page to PHPExcel to user fill an Html Page and send to PHP and it will: Open my default Excel Page and after fills the Excel Page with information send by Html What i dont know is how to do it read if is … | |
Hi Guys as I have mentioned before I'm having problems with connecting my website to a sql database, config.php <?php ini_set('display_errors', true); // change to false when you go live error_reporting(E_ALL); //Mysql Connect | mysql_connect("host= 3306","username",""); //Below example to connect in localhost //$a=mysql_connect("localhost","root",""); if($a == false) { die("Connect failed: ".mysql_error()); … | |
sir i am doing my project and i am using session array to save some variables that can be accessed at any page but i am unable to access the values saved in session array <html> <head><title>student home page</title></head> <body bgcolor="lightblue"><h1>well come to student login page</h1> <form name="f1" action="" method="post"> … | |
i am trying to Upload and Store an Image inside a MySQL, for some reason i got a broken image when photo is submitted . i know its a bad idea ti store images in using database i am doing this for testing purposes. please help <!DOCTYPE html> <html> <head> … | |
Wordpress plugin permalinks not working If we add ? at the beginning of wordpress permalinks then its working. Give the solution. | |
Hi All, I have managed to get a few bits and pieces of code together, that I would like to try and combine to get the desired result for my form. The top section of the code is code that I had originally created myself and had some assistance in … | |
Hi All, Similar problem to my previous post. I've made some progress and managed to get it working on my localhost but on the host server it still flops. I have been told to save the wsdl to file and access it from the file. However, I am not familiar … |
The End.