39,323 Topics

Member Avatar for
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
185
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
500
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
187
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
198
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
141
Member Avatar for lloydsbackyard
Member Avatar for JorgeM
0
210
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
201
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
183
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
249
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
157
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
113
Member Avatar for son jo
Member Avatar for Dani
-3
79
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
220
Member Avatar for cgull

Hello, I am developing a site with ci 2.1.4 I used this tutorial to create an event in google calendar: [Click Here](http://www.cecilieo.com/techblog/how-to-implement-zend-framework-with-codeigniter-on-windows/) When I change a date on the view, it calls the controller function with ajax, used to work fine, now the page just hangs and I can’t figure …

Member Avatar for cgull
0
2K
Member Avatar for BadManSam

Hi, I want to echo something if certain text is typed into a form textbox. <form action="mail.php" method="POST"> <table border="0"> <tr><td><b>To:</b></td><td><input type="text" name="mailTo" size="20" value="<? ; ?>"></td></tr> <tr><td><b>Subject:</b></td><td><input type="text" name="mailSubject" size="20" value="<?=$mailSubject;?>"></td></tr> </table> <b>Message:</b><br> <textarea rows='16' cols='45' name='mailMessage'></textarea><br> <input type="submit" name="mailAction" value="Send" /> </form> I want to add it to …

Member Avatar for BadManSam
0
228
Member Avatar for lloydsbackyard

for printing php in pdf with which is advisable to use dompdf or fpdf? do i need to install a pdf reader first so for hte php code to work? i tried with fpdf but it will not work if no internet since it will download some files to open …

Member Avatar for |-|x
0
127
Member Avatar for garyjohnson

I have a mysql query that seperates an array of variables and uses each variables to compare inside the database. The query uses a OR clause and I want to make it so it can also use an AND clause. The trick is I want the left side of the …

Member Avatar for garyjohnson
0
250
Member Avatar for Gewalop

Hi, - Why use paging? It's not really cool to print out all 2000 rows you have in a table to the page, so it'd be nice to page them. Special cases? Yeah, if you have 1000 rows.. and you've set the maximum row per page to 20, well.. you're …

Member Avatar for diafol
6
2K
Member Avatar for sanbhu2105

hello, i have below code and i need to change the status to inactive when i press the delete button. it happens that when i use the code below, the status does not change at all. can anyone tell me where am having an error in the code? <?php session_start(); …

Member Avatar for diafol
0
237
Member Avatar for cssweb

hello guys, i have spent one week on this problem but untill now my proplem does not soloved. my code is about rating system and i can not insert vote for question that i voted for, throught this code vote will insert for the all displays question. note that i …

Member Avatar for cssweb
0
138
Member Avatar for davy_yg

Hello all, I am looking for a free upload class script and I find this: [upload class](http://www.verot.net/php_class_upload.htm) Yet, I still do not know how to use it. When I try to upload pictures file in the browser they show me bunch of codes instead showing me the file pictures and …

Member Avatar for Squidge
0
330
Member Avatar for asaidi

Hi i cannot make a link on the field in result <h2>View All Posts</h2> <table> <tr> <th>Title</th> <th>Body</th> </tr> <?php foreach($Posts as $post):?> <tr> <td><?php echo $Html->link($post['Post']['title'],array('action'=>'view',$post['Post']['id']));?></td> <td><?php echo $post['Post']['body'];?></td> </tr> <?php endforeach;?> </table> it is like link it is not acceptable the error i get: Error: Call to a …

Member Avatar for cereal
0
65
Member Avatar for sidim

Hi, I can't seem to find the answer I'm looking for online (maybe keywords are too common?). Is my code only verifying whether my directory is created? Or is it actually validating? I need it to validate, but I'm unsure whether or not it's doing that. $dirPath = $_POST['company']; $result …

Member Avatar for sidim
0
326
Member Avatar for davy_yg

<a class="topLink" href="input_image.php"><input type="submit" name="productbaru" value="Product Baru"/></a> If I press Product Baru why they do not take me to input_image.php ?

Member Avatar for crescendo
0
103
Member Avatar for lloydsbackyard

im using wampserver and i want to put password in the database. i check some video tutorias but when i try it it is not working in my case. can anybody please help me give some ideas. thanks

Member Avatar for lloydsbackyard
0
174
Member Avatar for pedal123

Hello, I have a members area on my website. I'm trying to check if a user with a specific username and id has logged in, and then echo a string of text on page B (members area page) if its them. The user logs in on page A (login page). …

Member Avatar for pedal123
0
210

The End.