39,316 Topics

Member Avatar for
Member Avatar for kokfui

hi, all,i having code as below and the output is in the picture below as well <?php require_once("includes/session.php"); ?> <?php require_once("includes/connection.php"); ?> <?php require_once("includes/functions.php"); ?> <?php confirm_logged_in(); ?> <?php find_selected_item(); ?> <?php include("includes/header.php"); ?> <table id="structure"> <tr> <div class="menu"> <ul> <?php echo navigation($sel_cat, $sel_item); ?> </ul> </div> <td id="item"> <?php …

Member Avatar for stanley87
0
203
Member Avatar for emily-bcot

Hi, I'm new to php oop. In our system when creating a new user, user's role can be assigned by selecting from the role dropdown list. Here, there are two classes, one is user class, another is role class. and user class use role class which is composition relationship. I …

Member Avatar for minitauros
0
173
Member Avatar for d4n1s

Well I am using the image functions to draw pixels on an image file using PHP. The problem is that when for instance I draw a black pixel and right next to it a white pixel and than again a black pixel the white pixel will get faded! It will …

Member Avatar for metalix
0
195
Member Avatar for jacob21

SELECT DISTINCT City FROM Persons this query is for finding distinct(different) value. how to find duplicate values which are not find by Distinct query.i.e repetitive(duplicate) values.

Member Avatar for metalix
0
100
Member Avatar for monta2020

Dear Guys, i have Created a Table using Php and when i inters much data on it (Address or History of some subjects), it will make the table toooo large in size which's unneeded .. i need to manage the width of my table eeven if i enter lots of …

Member Avatar for metalix
0
135
Member Avatar for 68thorby68

I have a simple database with 3 columns: id, event_date, event_name I have 9 rows in the database id event_date event_name 1 2010-01-17 Food 17th 2 2010-01-17 Bar 17th 3 2010-01-17 Football 17th 4 2010-01-18 Food 18th 5 2010-01-18 Bar 18th 6 2010-01-18 Football 18th 7 2010-01-19 Food 19th 8 …

Member Avatar for james_horn165
0
138
Member Avatar for ayesha789

I saved the link refrence in Databse like /PEDB/SupportDoc/5/PRFF or0444.pdf and used [ICODE]<a href=".$r1[10]." target=_blank>View</a>[/ICODE] to show the documents but when I click on view its not showing document because link break where space put in and show blank in explorer like /PEDB/SupportDoc/5/PRFF

Member Avatar for ayesha789
0
176
Member Avatar for didi00

Hi everyone! I want to send cyrillic letters with php, but it is not possible because php doesn't allow it. So, how do I covert the letters so that they could be sent. [CODE] <?php if (comments_open ()) : ?> <div class="comment block" id="respond"> <div class="holder"> <h2><?php comment_form_title('[B]Остави коментар[/B]', 'Leave …

Member Avatar for didi00
0
210
Member Avatar for carebear23

I am trying to get information from my database that contains a foreign key that relate to another table, I am trying to enter details of an order and then have the customer ID of that order enter automatically from the customer table. [CODE] [B]Customer Table [/B] CREATE TABLE IF …

Member Avatar for markdh
0
108
Member Avatar for phplover

Hi, I have a fully pledged membership system and want to integrate my own user referral system but want some tips, advice really on the logic of it. Basically already registered users on my site will have the option to refer people, only registered users. I will try to explain …

Member Avatar for jkon
-1
5K
Member Avatar for bngy

Hi, I've written a simple IRC bot. but I have some problems, can you please help? #1 How to list all users on a channel? #2 How to get if a command/message sent by an op or not? Same with halfop/voice/owner? #3 How to get who sent the command/message (by …

Member Avatar for jkon
0
125
Member Avatar for phpDave

Hi! Anyone know of a good tutorial for allowing users to "upload video files". I am familiar with uploading scripts for images but never worked with videos.

Member Avatar for diafol
0
59
Member Avatar for agrothe

A friend of my recently asked me to help him set up a web based radio. Upon doing some research I found he has only original content (not copy right stuff), all static mp3 files, not live talk, and wants to loop the audio. I've found sites like radionomy and …

Member Avatar for Kraai
1
231
Member Avatar for preston326

Hello, I'm working on a BB game and I have a question about its performance. Let's say I have 1000 users and using cronjobs every 15mins I [I]update user set ore=ore+'20';[/I] and every hour I [I]update user set turns='20';[/I] Will this have any [B]significant[/B] effect on the performance of my …

Member Avatar for chrishea
0
82
Member Avatar for itisnot_me

ok so i am trying to find any href that has a css file in it and append a template directory to the beginning while keeping intact this is what i have to begin with [CODE] preg_replace('/href=(?:")[^A-Za-z0-9].css/', 'href="'.$dir.$template.'/[^A-Za-z0-9].css', $content); [/CODE] i dont think that i am doing this right cause …

Member Avatar for hielo
0
103
Member Avatar for ebanbury

Hi Hoping someone has some experience with this. I have an insert record which works perfectly, until I try and encrypt the passwords and set the date to NOW() When I submit the form - the form does not complete successfully, however a record of some kind is inserted into …

Member Avatar for tiggsy
0
122
Member Avatar for Joshua Kidd

Hey Guys, I need some help with Deleting data from a MySQL . Currently I have, Two PHP files. the First is the main page. [CODE]<?php $host=""; $username=""; $password=""; $db_name=""; $tbl_name=""; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); ?> <p>This Page Refreshes Every …

Member Avatar for karthik_ppts
0
137
Member Avatar for ivan3510

I used [URL="http://www.ibm.com/developerworks/library/os-php-v525/index.html"]this[/URL] page for making upload progress bar. I downloaded it and uploaded it to the server (you can see it [URL="http://latinus.herobo.com/proba/progress.php"]here[/URL]), and I signed up to Google Maps API and I pasted the code, but it doesn't work. It uploads the file, but it doesn't write the upload …

Member Avatar for ivan3510
0
334
Member Avatar for branding4you

I have dropdown on Enquiry page, some text boxes etc with a capthca below and submit button I used this code for my text boxes [CODE]<input name="fld_name" type="text" id="fld_name" size="40" value="<?php if($_POST['fld_name']) { echo $_POST['fld_name']; } ?>" /> [/CODE] it keeps the data in the textboxes when the user does …

Member Avatar for branding4you
0
351
Member Avatar for doctorphp

Hi everyone. I have made a mailing list script but I want to modify it so that I can post some variables in the message box. I would like something like this. [ATTACH]20604[/ATTACH] To display something like this. [ATTACH]20605[/ATTACH] I have tried putting [CODE]' . $fetch['first'] . '[/CODE] and [CODE]$fetch['first'][/CODE] …

Member Avatar for doctorphp
0
1K
Member Avatar for hellojohnatan

Hi guys, I would like to have an online user counter on my webpage. However, I don't want my visitors to see how many users that are in my website. I am already using good analytics but it is not giving me real time data. But how can I see …

Member Avatar for minitauros
0
137
Member Avatar for thijscream

hey, i'm trying to make a pdf, but i get the following error: 1temp/KW1.pdfError!! as you can see in the code i echo the $factuurnummer, that's the 1 in the error, then i echo the patth it should go to what is temp/wk1.pdf and then i echo the error. does …

Member Avatar for squinx22
0
158
Member Avatar for Xaibo

Hi guys! I´m really new to PHP, but i'm involved in a small project. But i'm having an issue with the mail form. It was working, but as the user refreshed the page it would send the values of the variables again and again... First i managed to auto refresh …

Member Avatar for squinx22
0
333
Member Avatar for turt2live

Hello, I have a PayPal button that uses a submit button to pay, but I have a small problem with it. The client I'm making this for also wants tracking (Hits). Is it possible to have the submit button also run a javascript before going to paypal? If you need …

Member Avatar for turt2live
0
158
Member Avatar for AndreRet

I have been stuck on this for 2 days now. There were a ton of code available, but not one working solution. Below is my code to send the mail once a user requested a service at an auto repair shop. It updates mysql with all of the data and …

Member Avatar for AndreRet
0
270
Member Avatar for ROTC89

Hi, i am try to display and insert info on a person into my database but i keep getting this error whenever i enter the info You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use …

Member Avatar for vibhaJ
0
190
Member Avatar for bobgodwin

I'm using this code to check if a record exists or not: [CODE] $filename = $_FILES["file"]["name"]; /// FROM FORM $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); $bull = substr($filename, 0, strpos($filename, '.')); $myQuery = "SELECT * FROM $media WHERE label='$bull' "; $result = $dbh->prepare($myQuery); $result->execute(); $cont = $result->rowCount(); if ($cont == 1) …

Member Avatar for bobgodwin
0
150
Member Avatar for navp

Hey guy, I want to know if there is a way of using PHP in JavaScript. I have no idea how can i get the variables from PHP into JavaScript. I am making a pizza application, the php file is a confirmation page. The user can either go back to …

Member Avatar for navp
0
258
Member Avatar for jimmyo88

I'm about to start an assignment and am just trying to think of the most logical waysd of doing things at the moment. The assignment involves using mysql and php to create a website for a training company. The part i am having trouble conceptualizing is this: "Tutors are created …

Member Avatar for jimmyo88
0
108
Member Avatar for branding4you

I have textarea comming from mysql. In the backend the user tyes a letter type format in a textarea They ise Enter to make new rows etc __________________________________________________ Dear john Welocome to our website hope you find it usefull Thank you The Team ___________________________________________________ When I pull the data from …

Member Avatar for branding4you
0
86

The End.