39,392 Topics

Member Avatar for
Member Avatar for Szabi Zsoldos

Hi guys, I've created a simple plugin for Wordpress that interacts with an API in the backend. The problem is that everything is inserted twice in the database, and I cannot figure out why. The form is submiting only once, not twice. What could it be ? Redirects from my …

Member Avatar for Szabi Zsoldos
0
858
Member Avatar for vision2030

<!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"> <!-- DW6 --> <head> <!-- Copyright 2005 Macromedia, Inc. All rights reserved. --> <link rel="shortcut icon" href="/favicon.ico" > <title>LADOKE AKINTOLA UNIVERSITY OF TECHNOLOGY|INFORMATION TECHNOLOGY AND COMMUNICATION(LICT) - Registration</title> <meta name="Author" content="Address for the School of Nursing Ogbomoso Oyo State" /> …

Member Avatar for Szabi Zsoldos
0
251
Member Avatar for Manchala

Hi Guys i am developing a system in php using codeigniter framework, in this i retrived result from database it stored in an variable and its var_dump result is like var_dump($cat_data) object(stdClass)#21 (4) { ["id"]=> string(1) "1" ["name"]=> string(8) "Computer" ["image"]=> string(1) "0" ["p_cat"]=> string(1) "0" } when i try …

Member Avatar for Szabi Zsoldos
0
251
Member Avatar for ehpratah

Good Day Everone Just wanna ask for a suggestion if it is possible to Save data in DB and at the same time Print the form when the submit button is clicked? and if possible how can i obtain it? Here's what ive tried form.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML …

Member Avatar for happygeek
0
4K
Member Avatar for <M/>

I learned a new technique (from Chris Coyier), and I thought it may be helpful for you guys. Some of you guys may find this helpful if your creating a preview/demo page and you want to go back to original page. This could help you guys. <?php $return = htmlspecialchars($_SERVER['HTTP_REFERER']); …

Member Avatar for broj1
0
164
Member Avatar for davy_yg
Member Avatar for Dani
0
48
Member Avatar for arjani10

Hello! I need help about fwrite option ,i have this script and need write everytime that $id , but my problem is when the script have another id delete the first one and rewrite the new one.i need to have old and write the new without rewrite the old $id.Thank …

Member Avatar for arjani10
0
129
Member Avatar for Mike_H

I am reading a CSV file and need to add the information into an existing database. I am able to read and display the information correctly. When I try the code below, I get the error *"Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on line …

Member Avatar for diafol
0
143
Member Avatar for mpc123

I have the following code but when $newstring echos out as '.-ucwords(strtolower(-['First.Name']))-.-'-'.-ucwords(strtolower(-['Last.Name']))-.-.php It should echo out the fields from the database noy just that code. If someone could help please $txtname = "'. ucwords(strtolower($row ['First.Name'])) . '-'. ucwords(strtolower($row ['Last.Name'])) . "; $newstring = str_replace(" ", "-", $txtname); while($row = mysql_fetch_array($result)) …

Member Avatar for mpc123
0
143
Member Avatar for nick3592

hi i would like to know how i can stop multiple form insertion. What i mean is after you submit a form if you refresh the browser sends the script again. I done this with the header() function to resend the user but i also need to show a message …

Member Avatar for diafol
0
587
Member Avatar for BadManSam

Hi, I'm modifying a login script; I added an avatar system and now I get an error: Parse error: syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) in /home/promanx2/public_html/include/session.php on line 455 The whole code of that page is here. <?php /** * Session.php * * The Session class is …

Member Avatar for BadManSam
0
213
Member Avatar for bradly.spicer

Hey everyone, Having a few problems: 1. It's not populating the dropdown with all the entries (But in the delete function it is, which is a somewhat copy) 2. It doesn't post the Employer name, the result I'm getting is "Editing user: *BLANK*" Here is the code: function JobBoard_admin_edit() { …

Member Avatar for pritaeas
0
157
Member Avatar for lloydsbackyard

<?php $query = "SELECT studinfos.lname, studinfos.fname, studinfos.mname, studinfos.suffix, studenroinfos.yearLevel, studenroinfos.sy FROM studinfos INNER JOIN studenroinfos ON studinfos.idNumber=studenroinfos.idNumber WHERE (studinfos.idNumber='$searchString') OR (studinfos.lname='$searchString') OR (studinfos.fname='$searchString')"; $result = mysql_query($query); echo "<table border=0 style='border-collapse: collapse' width=95%>"; while ($record = mysql_fetch_array($result)){ $name= $record['lname'].', '.$record['fname'].' '.$record['mname'].' '.$record['suffix']; /* when sql is modified already i can insert …

Member Avatar for lloydsbackyard
0
139
Member Avatar for Facte

Hi there, I have a really irritating site problem that I just can't get my head around. I only have fairly basic coding skills and hope that someone here can help crack my issue. I own a small php/mySQL based job board which I have moved from hosting to hosting …

Member Avatar for pritaeas
0
187
Member Avatar for jovstudios

Hello Guys. I need your help, I dont know why the input of my code like this, I have a database which is upload, then categorize by Personal, Animals, And Natures. When I choose Personal i want to show all image in Personal, but my code doing like this, when …

Member Avatar for Squidge
0
505
Member Avatar for wastedkill

This is the code I am using but it keeps giving me this error: Failed to run query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near …

Member Avatar for EvolutionFallen
0
190
Member Avatar for thijscream

what am i doing wrong here? <?php include 'connect.php'; $query = 'SELECT productionorder.Finished FROM productionorder WHERE productionorder.ProductionOrderId = '.$id; $result = mysql_query($query) or die ('Error : ' . mysql_error()); while($data = mysql_fetch_array($result)){ $status = $data['Finished']; } if($status == 1){ header('location: index.php?user='.$user.''); } else{} ?> the query returns 1 and is …

Member Avatar for chemwile
0
200
Member Avatar for splacksplack

Hi I'm trying to complete this assignment and I don't understand how this PHP thing works. I can't get the value of the check box to populate and I can't get the sales tax to calculate either. He is what I have so far: <!DOCTYPE html> <!-- testproblem.html --> <html …

Member Avatar for veedeoo
0
1K
Member Avatar for sushants
Member Avatar for Squidge
0
143
Member Avatar for lloydsbackyard
Member Avatar for JorgeM
0
212
Member Avatar for davy_yg

Hello all, I am trying to learn how to use the OOP in php. Hence I have this structural simple CRUD admin table. I am trying to reorganize them with OOP. structural_admin.php <?php include('../includes/koneksi.php'); //Hapus berita // undefined index: mode if (!empty($_REQUEST['id']) && !empty($_REQUEST['mode']) && $_REQUEST['mode'] == "delete") { $id …

Member Avatar for veedeoo
0
203
Member Avatar for ceeandcee

I have tried a number of things and all of them have crashed. My code is below. I am writing code for a form to upload three photos and this code works fine to upload three photos. What I am stuck with is: 1) I would like the form to …

Member Avatar for ceeandcee
0
185
Member Avatar for maggoteer

I'm currently trying to modify 2 scripts to work together. I've gotten everything working except the script isn't passing any, or the incorrect information when it's trying to create a checkbox. Here's the code I have so far: if (strlen($q)>0) { $hint=""; for($i=0; $i<($x->length); $i++) { $f=$x->item($i)->getElementsByTagName('id'); $g=$x->item($i)->getElementsByTagName('item'); $h=$x->item($i)->getElementsByTagName('price'); $y=$x->item($i)->getElementsByTagName('keyword'); …

Member Avatar for stultuske
-1
251
Member Avatar for atzaman

Hi Please could someone kindly help me with an issue I'm having converting date formats. I'd like to convert dates which are in the format mm/dd/yy hh:mm:ss into yyyy/mm/dd hh:mm:ss but am kind of stuck on how to do it. Anyone able to help? Many thanks in advance.

Member Avatar for diafol
0
5K
Member Avatar for GlenRogers

I've been trying to use mysqli instead of mysql. I have a file from another site which will fit nicely to this site im doing now, but i havent a clue what i need to do to convert it to mysqli. This is the file <?php include 'connect.php'; //populate form …

Member Avatar for GlenRogers
0
159
Member Avatar for son jo

Show me example design PHP/MySQL application involves insert, view, search, delete, update/modify a record from a database

Member Avatar for Lucaci Andrew
-4
115
Member Avatar for son jo
Member Avatar for Dani
-3
80
Member Avatar for spetruska

I'm trying to send **MULTIPLE ATTACHMENTS** in a single e-mail from a FreeBSD, **PHP**, MySql, **SwiftMailer** configuration. I display a form, listing all PDF Files with checkboxes, file names, and file location (hidden) for a client, Then, when <SUBMIT> is pressed, I am trying to format and send an e-mail …

Member Avatar for spetruska
0
3K
Member Avatar for divyakrishnan

Hi.. I am trying to download a file using FTP Server . fI used the ollowing script for file downloading. FTP connection is success. But while calling ftp_get() Getting an error like Warning: ftp_get() [function.ftp-get]: File not found in C:\xampp\htdocs\test\ftp_check2.php on line 4 <?php $conn = ftp_connect("192.168.1.20") or die("Could not …

Member Avatar for pritaeas
0
221
Member Avatar for Borzoi

Hi there, I've not been on here in a while. I'm having trouble with a PHP function and I'm pretty sure I'm missing something very obvious or I'm doing something wrong so hopefully someone can help me reach that inevetable facepalm or headdesk when I realise what I'm doing wrong …

Member Avatar for Borzoi
0
225

The End.