38,023 Topics

Member Avatar for
Member Avatar for seotheo

Hi, I am trying to add a checkbox to a form on a friends site and I need to make the form validate the checkbox before processing but I cant seem to get my head round it. Heres the code so far. <h1>Contact</h1> <p>Please fill in the following fields and …

Member Avatar for diafol
0
797
Member Avatar for UK-1991

Hello, I am trying to update my record but nothing is happening please help me out update.php <?php require_once("connection.php"); if(isset($_POST["update"])) { $uid = $_POST["uid"]; $user_name = $_POST["uname"]; $f_name = $_POST["fname"]; $l_name = $_POST["lname"]; $company = $_POST["company"]; $address = $_POST["address"]; $phone = $_POST["phone"]; $fax = $_POST["fax"]; $mobile = $_POST["mobile"]; $email = …

Member Avatar for UK-1991
0
743
Member Avatar for jithinjohny

Hi, Previously I have worked on codeigniter Framework. Since codeigniter developers are not even sure about version 3.0 , I decided to work with a better/new framwork. The problem is, whichever the Framework I choose, it needed Composer to work on. First I choose laravel, then symfony , later cakephp. …

Member Avatar for jithinjohny
0
266
Member Avatar for shashigowda

Can any body teach me dispaying data in Grid View using php, and also edit/update/delete a data in gridview.?

Member Avatar for pritaeas
0
160
Member Avatar for shaqib

Dear all, I have two identical mysql server with same databases and tables structures but with different data. ServerA ServerB Database Shaqib Database Shaqib Table users Table users ID | Name | Phone ID | Name | Phone 1 |Test1 | 123456 1 |Test13 | 1256456 2 |Test2 | 785632 …

Member Avatar for shaqib
0
3K
Member Avatar for klemme

Hi all, I am trying to set up Doctrine 2 Orm for a self made MVC framework, but keep hitting the same error when trying to retrieve data: Fatal error: Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class "App\models\menu" is not a valid entity or mapped super class.' in C:\wamp\www\framework\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php on line …

Member Avatar for lorenzoDAlipio
0
282
Member Avatar for dosek125

Hello all, I am wondering if someone could comment on the quality of my code. I am working on a project and would like to know whether what I am writing is 'good enough'. The following code is an extract from the app: <?php //ajax_handler.php //Main configuration file which includes …

Member Avatar for lorenzoDAlipio
0
264
Member Avatar for donz365

Hi, I am working on a wbsite for a training centre. I am querying a web service for the list of their courses. There are three parametres in the query: centre, coursetype and courselocation. When querying it directly or using SoapUI it can be queried using 1, 2, 3 or …

Member Avatar for donz365
0
916
Member Avatar for Ventech_IT

Hi guys having some trouble here with my date's output currently it reads 2015-05-05 10:05:22 but i would like to have it render as eg. Monday 12 Mei 2013 how would i achieve this in codeigniter? Here is my code for creating the post: (Controller) public function new_post(){ if($_POST){ $data …

Member Avatar for Ventech_IT
0
340
Member Avatar for OsaMasw

Hello there have a nice day.. I have PHP script to upload files on servers, I want to copy uploaded files once they uploaded on server to another server using PHP ex. upload file F to server A after that copied to server B with same name F. how to …

Member Avatar for diafol
0
290
Member Avatar for AntonyRayan
Member Avatar for smith32
-1
105
Member Avatar for yuri1000

I have a .net/vb code which needs to be converted to PHP, can anyone help please? private string CharsAvailable() { int unicodeFlag = 0; int extraChars = 0; int msgCount = 0; string msgString = String.Empty; if (chkSignature.Checked) msgString = msgString + Environment.NewLine + txtSignature.Text; else msgString = txtMessage.Text; for …

Member Avatar for diafol
0
292
Member Avatar for abhi10kumar

I am trying to upload files into Google Drive but problem is that I have logged-in every time. I searched a lot but no luck. Is there any way I can do authentication process without manual and logged-in intervention? I knew the concept of refresh-token but I am not able …

Member Avatar for diafol
0
95
Member Avatar for anitg

I am trying to use a sms gateway app for android called SMSGateway with a http header request using curl as below; $curl_handle=curl_init(); curl_setopt($curl_handle, CURLOPT_URL,"http://192.168.1.2:9090/sendsms?phone=$phone&text=$message1&password=xxxxxxxx"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10000); curl_setopt($curl_handle, CURLOPT_TIMEOUT,50000); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0'); $query = curl_exec($curl_handle); if($query){echo "Message Sent to $phone …

Member Avatar for anitg
0
547
Member Avatar for punji

I have three tables namely student, result and subject but whenever i try to join them i get this error message in the browser Database query failed: Unknown column 'student.student_code' in 'field list' here is my query $query = "SELECT student.student_code, student.firstname, student.middlename, student.lastname, student.gender, result.student_code, result.subject_code, result.mark, subject.subject_code, subject.subject_name …

Member Avatar for punji
0
271
Member Avatar for mahbub.cse06

how to create a dropdown menu relatate with php. that means select a division and then a district and a thana

Member Avatar for JerrimePatient
0
103
Member Avatar for janicemurby

hya i have 2 user goups in my website one for couples and one for singles what im wanting to know is when a couple registers how can i direct them to a couples directory ive tried the following but its not doing it can anyone help with this if( …

Member Avatar for edbr
0
345
Member Avatar for janicemurby

Hi i have a date of birth for members in registration form but in the couples profile im adding a date of birth for both members in the couples group as in the pics included heres the coding for it from the profile page can anyone help be much appreciated …

Member Avatar for janicemurby
0
216
Member Avatar for janicemurby

hi i had this script created by a php coder and it worked on another site of mine with same software but now its not working on current site can someone check it out heres code much appreicated Registartion3.php <table width="750" cellspacing="5"> <tr> <td></td> <td></td> <td></td> <td></td> <?php $multiple = …

Member Avatar for diafol
0
134
Member Avatar for phoenix254

Someone can help me to find my error: $query=mysqli_query($con," SELECT * FROM item WHERE ITEM = $ITEM ") or die ( mysqli_error($con)); i reciveing this error,i dont know wherer is syntax error. *You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version …

Member Avatar for cereal
0
230
Member Avatar for noorii72

i dont know how to upload images in a database. i have to make a small gallery project and i am confused about the images uploading..kindly guide me thoroughly.

Member Avatar for diafol
0
52
Member Avatar for AntonyRayan

Hi I am getting error this error while upload image? Error:Fatal error: Class 'Image' not found Code: $gallerycate_img = "gallerycateimg/".$_FILES["txt_photo"]["name"]; $gallerycate_image = $_FILES['txt_photo']['name']; if (($_FILES["txt_photo"]["type"] == "image/jpeg")||($_FILES["txt_photo"]["type"] == "image/jpg")||($_FILES["txt_photo"]["type"] == "image/gif")||($_FILES["txt_photo"]["type"] == "image/png")&& ($_FILES["txt_photo"]["size"] < 200000000)) { move_uploaded_file($_FILES["txt_photo"]["tmp_name"], "../gallerycateimg/" .$_FILES["txt_photo"]["name"]); copy("../".$gallerycate_img, "../gallerycateimg/thumb/".$gallerycate_image); $file_thumb="../gallerycateimg/thumb/".$gallerycate_image; $file_thumb_1="gallerycateimg/thumb/".$gallerycate_image; $img = new Image($file_thumb); $size = …

Member Avatar for pritaeas
0
196
Member Avatar for hasnen_1

hello,how i can share video on my website to facebook and to twitter by meta tags in html and to share image too to facebook and twitter but not all page only share for video and image

Member Avatar for Aeonix
0
287
Member Avatar for Ibrahim_8

I need help with Php forms. I am trying to insert at least 2 & a Max of 3 team players data to MySQL for registration purposes. By using a loop to get the 3 form values and iterate until data is stored in the tables First Table is Players …

Member Avatar for diafol
0
283
Member Avatar for opelio4n

Am a beginnerr in PHP but am presently working on a reporting software that should enable different staff to submit there report. Areas i need help. 1) There are 7 companys that will submit there report on this software. need to know how the database will be structured. 2) How …

Member Avatar for diafol
0
168
Member Avatar for phoenix254

Hi everyone, i need help here.. i want to calculate age of user.... but i am getting this error ****Catchable fatal error: Object of class DateInterval could not be converted to string in C:\xampp**** while($row=mysqli_fetch_assoc($data)) { $date=$row['Dateofbirth']; } $dob= new DateTIME($date); $interval=$dob->diff(new DateTIME);

Member Avatar for phoenix254
0
106
Member Avatar for janicemurby

hi i have the following error in my sent message file Warning: date_diff() expects at least 2 parameters, 1 given in /home/letsswin/public_html/sent_mail.php on line 146 Show Heres code section for error <?php $lastlog = mysql_fetch_array(mysql_query(" select * from user_lastlogin where online_status = '1' and user_id = '".$user_id."' ")); $start_date = …

Member Avatar for janicemurby
0
327
Member Avatar for ribrahim

Hello, I have two mysql tables, the first one for salutation (salutationId, SalutationTitle) and the second one for clients (Id, FirstName, LastName, salutationId) . I can do the dropdown list from salutation which contais (Mr., Ms. ...etc) in a regitration form and insert the data to mysql without problem. Here …

Member Avatar for blueshiftdani
0
256
Member Avatar for younes.keraressi

Hi, i got a problem in my websever, i am using lastest version of uniform server on microsoft windows 2008 r2 , but the problem is the httpd crash i searched for the solution some1 tells that i should use sfc/scannow , i did it same problem , and details …

Member Avatar for younes.keraressi
0
323
Member Avatar for kadriirdak

Hi, I have a range of *start* and *end* dates return from database in while loop i need to find, how many of them are continuing. The example return data; Array ( [start_date] => 2014-09-22 [end_date] => 2014-09-28 ) Array ( [start_date] => 2014-09-15 [end_date] => 2014-09-21 ) Array ( …

Member Avatar for kadriirdak
0
266

The End.