39,316 Topics

Member Avatar for
Member Avatar for MoreBloodWine

Everything I have tried doesn't seem to work so I thought I would stop in here to see the experts. Is it possible to write the following into a $whatever = ''; ? I had some people try and while they sort of got it to work they broke the …

Member Avatar for MoreBloodWine
0
119
Member Avatar for jon44

Hey everybody, I'm new to PHP, and am having a seemingly simple problem, (Probably a stupid error on my part, atleast I really hope so) I hope you can help me deal with this, and to say thanks for any efforts, I will build 1,000's of backlinks for you, for …

Member Avatar for pritaeas
0
494
Member Avatar for Setvir

Hi guys and gals! I want to know if I am on the right track. I am working on a simple in-house cms. Here is a templating function I wrote to test an idea. It does work. [LIST=1] [*] The function loads the template file, [*] finds all the template …

Member Avatar for Setvir
0
150
Member Avatar for JoeyWong

Hi all, I want to ask how i insert the selected data (Institution Name) and the input text data (School name) into MYSQL?? Thanks~ my database as below: [CODE=SQL]-- -- Database: `inno_education` -- -- -------------------------------------------------------- -- -- Table structure for table `institution` -- CREATE TABLE IF NOT EXISTS `institution` ( …

Member Avatar for saiprem
0
262
Member Avatar for JayGeePee

I found a crawl detection script on the internet that works great. But at the moment I only have Googlebot. I'm trying to add YahoosLurp, and Ask Jeeves, and any other popular web crawler. PHP is definetly my weakness Heres the script [CODE] <?php $useragent = $_SERVER["HTTP_USER_AGENT"]; if (stripos($useragent,"Googlebot")) { …

Member Avatar for mbhanley
0
179
Member Avatar for noellieb

I need help with writng a php code that reads cookies containing a user's name and the number of times he or she has visited a Web site. Whenever a user visits the site and clicks the submit button, print the value of the cookie count to the page, increment …

Member Avatar for cwarn23
0
1K
Member Avatar for tunde011

I have been reading php manual and i need to encrypt passwords for users on my site. The thing is i do [CODE] $password =md5($password)[/CODE] and store it in the database what about when they want to signin. they enter their password but it won't be the same as the …

Member Avatar for cwarn23
0
305
Member Avatar for radialgraphics

Hi All I am looking for a way to collect basic enquiry form data from a Japanese website. The form data needs to be delivered with Japanese characters intact. I have set the form handler up using the php mail() function to email the data to my address in Australia …

0
34
Member Avatar for ibrahimjaved

a. Customer Registration i. Customers who do not have an online account should be able to register. Only customers with an existing bank account should be allowed to register online for online banking. You will have to allow the creation of bank accounts in the admin section. b. Login i. …

Member Avatar for kakaliki
0
94
Member Avatar for pjrey

hi, i have a form that i am using inside of my site.. and i just recently updated it... to use captcha... all is well, its just that when i submit it.. it hides the rest of the page, and only shows the form, and says, form sent successfully.. i …

Member Avatar for chrishea
0
174
Member Avatar for terrymold

Hi everyone Does anyone know of a PHP solution, or even a HTML solution, whereby a visitor could select a group of about 10 files (out of a couple of thousand!) and then click a "Download" button to download the selected files onto his/her PC? There is one solution I've …

Member Avatar for Setvir
0
251
Member Avatar for SunnySideUp

Hi, I have a SQL Query that is meant to get a value from one table then UPDATE the date based in another. For instance: I have a table called 'Products', it has a colunm called 'JobLength'. JobLength has three values '1 MONTH, 14 DAYS and 7 DAYS'. I have …

Member Avatar for diafol
0
82
Member Avatar for Cool&Awesome

Hello, I have this weird problem - I made a php class for uploading images, and it works. Now, once on (shared)server parts of some images start to dissapear - parts of images turn into gray area, and it always seems to happen from bottom up. Or it may seem …

Member Avatar for diafol
0
68
Member Avatar for Puster

Hello! Yes, I am making a login system that recognize if the moderator is the main moderator or sub moderator. So i made a type row. If type = 2 the moderator is main and if it is 1 the user is a admin. So I made this on the …

Member Avatar for diafol
0
53
Member Avatar for dragon@dragon64

Hi i have created a form, with the submit button, which is working ok, but everytime the form is submitted, the page remains the same. I would like that as soon as the form is submitted, the system take the user to a thankyou page. Can anyone help please this …

Member Avatar for dragon@dragon64
0
116
Member Avatar for Puster

Hello! I have made at site for my company that are going to upload images, and when the image is uploaded a watermark with copyright are being set in the bottom. But I got errors. [QUOTE] Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: Filename cannot be empty in C:\xampp\htdocs\sjohaugbygg\admin\upload.php on line 66 Warning: getimagesize() …

Member Avatar for diafol
0
223
Member Avatar for nats01282

Hello, i was searchin for some fancy flash effects for my website and come accross this website [URL="http://agencynet.com/#/home/"]http://agencynet.com/#/home/[/URL] i am unsure what this website is coded in and would like to know. and also what skills are needed to create a website like this? im not after creating a massive …

Member Avatar for nats01282
0
65
Member Avatar for SunnySideUp

Hi, I have an include file called 'includes/header.php' and would like to know the impact of this file on SEO and Search Engine Rankings, Keywords and Descriptions. 1) Would I be better saving the file as header.html (although it does have php code in it) ? 2) I have a …

Member Avatar for mankis
0
99
Member Avatar for maxicube

oh hey guys, i got this little issue where i can read from the database. but i cannot write to it.. here be my full code. live site at [url]http://downloadavirus.net[/url] [CODE]<?php $params = $_SERVER['QUERY_STRING']; $url = $_POST["url"]; $username = "--------"; $password = "--------"; $database = "--------"; mysql_connect(localhost, $username, $password); @mysql_select_db($database) …

Member Avatar for Kieran Y5
0
158
Member Avatar for Brianbc

I am using the code below to insert time into a table, and this is the output it's giving me: 0000-00-00 [CODE]//table start DATETIME, //code to insert date into db $_POST['start']=date("Y-m-d H:i:s"); $insert = "INSERT INTO eguardIPs (Field1,Field2,Field3,start) VALUES ('".$_POST['Field1']."', '".$_POST['Field2']."', '".$_POST['Field3']."', '".$_POST['start']."')"; $add_start = mysql_query($insert);[/CODE]

Member Avatar for Brianbc
0
100
Member Avatar for nats01282

if i use this code page1.php [CODE] <form action="" method="post" > First <input type="text" name="first" /> last <input type="text" name="last" /> <input type="submit" /> </form> <a href="page2.php?first=<?php echo $_POST['first'] ?>&last=<?php echo $_POST['last'] ?>">click here</a>[/CODE] page2.php [CODE] <?php session_start(); define ('first', $_GET['first']); define ('last', $_GET['last']); ?> <p>information submitted thank you, <a …

Member Avatar for Setvir
0
140
Member Avatar for simirnov

Hi all, I am a newbie in PHP and is validating a form in PHP. I have an issue in this validation. The issue is that form validation is working properly to the field of email address. After this email comes the password and confirm password. The password fields are …

Member Avatar for hielo
0
10K
Member Avatar for Cool&Awesome

Hi guys, Ok, call me lazy, or call me busy, but what's your opinion on this: Does it make sense using resized original images instead of thumbnails? Today's internet is pretty fast,and i've just done an image intensive website, so i'm thinking on applying this solution to an image intensive …

Member Avatar for Cool&Awesome
0
70
Member Avatar for JustmeVSI

Hi guys. The thing is that I have some experience with other programing languishes like Java and C#. I recently got into php and java script. The questions is when wold you prefer to use java script functions over php. For example say the random function. I'm aware of the …

Member Avatar for JustmeVSI
0
443
Member Avatar for Raf8

Hi ! I’m new to php and try to devellop a simple application that would allow the user to classify various dishes by using radio buttons. I'm a bit lost :( My code is as follows (I’ve already got help to achieve it, but can’t go further). The first part …

Member Avatar for Raf8
0
116
Member Avatar for lbargers

Hi, My sql database contains a video table which has a video 'adddate' field. I need to change the code [COLOR="Red"].$video['adddate'].[/COLOR] from the following format: 2010-11-02 to 11-2010 I've changed it in .tpl files doing the following: {assign var='vidMthYr' value=$videos[i].adddate} {$vidMthYr|date_format:"%m-%Y"} However that does not work in my .php code …

Member Avatar for diafol
0
136
Member Avatar for RoseMary3

i am looking for some help creating a php script that allows users to vote up (only up) a certain item.

Member Avatar for jon44
0
78
Member Avatar for plasteezy

how do i use the phpmailer() class to send html emails with images embedded in it my code is shown below [CODE]<?php require("class.phpmailer.php"); $msg = $_POST['msg']; $subject = $_POST['subject']; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->Host = "smtp.branddesignexpress.com"; $mail->SMTPAuth = false; $mail->Username = 'admin@example.com'; $mail->Password = '*****'; $mail->From="mailer@example.com"; $mail->FromName="My site's mailer"; …

Member Avatar for pritaeas
0
180
Member Avatar for Kniggles

anyone know how to make the colour text box w2 change to a random colour when button clicked please ? [CODE] </html> <FORM NAME = frmOne> StartA X: <INPUT TYPE = Text NAME = x SIZE = 5 value ="0"> Two B Y: <INPUT TYPE = Text NAME = y …

Member Avatar for ko ko
0
195
Member Avatar for andrewliu

Hello, I have a login form and a user can register their email address. But I was wondering how do I only allow certain email domains able to register? Like if I only want @gmail.com or @yahoo.com only This is my code right now [CODE] /* Email error checking */ …

Member Avatar for andrewliu
0
146

The End.