39,402 Topics

Member Avatar for
Member Avatar for kishou

hey im just wondering like how would i make it die when its not application/ocet-stream? [CODE]$ip = $_SERVER['REMOTE_ADDR']; $files = $_FILES["file"]["tmp_name"]; $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } …

Member Avatar for nav33n
0
75
Member Avatar for sagedavis

I am having a sort of an issue with something. I am writing a script where, the user inputs some information in a form, and based on that form, a new file is created. The file which is created will actually become a webpage of .php type. The problem I …

Member Avatar for sagedavis
0
119
Member Avatar for creativehacker

Hi everyone, I want to delete uploaded files from the server. here I am not using database please check my code and suggest me any changes Del.php [CODE]<?php $jpgdir = "uploads/"; $file=$_REQUEST['file1']; echo $file; //echo $jpgdir; // Open a known directory, and proceed to read its contents if (is_dir($jpgdir)) { …

Member Avatar for nav33n
0
83
Member Avatar for AP1

[B]RE:Google Analitcs[/B] Hi gang, I'm new to PHP... as you will probably be able to easily recognize by my following dialog. ;-) Anyway... I am taking over a website written in PHP with dreamweaver CS3. It has a seperate footer.php file in a sub directory and I believe this makes …

Member Avatar for nav33n
0
142
Member Avatar for Morty222

Any one know how I can write a php statement to call the last 4 entires from tbl_accounts by userID? Example: I have 4 users, userID's 1,2,3and 4. All of these users are showing on the home page. When user #5 signs up, I want user 1 to fall off …

Member Avatar for Walkere
0
91
Member Avatar for Vai

Thanks for all the help and advice, I got everything working fine with sessions and what not. Now I am back asking for help writing some scripts if anyone is willing... I am unsure how to write the code, with the exception of the random md5 password which I found …

Member Avatar for Walkere
0
147
Member Avatar for Marlow

i use php for web dev and i need to create cron jobs in cpanel but it seems i need to have a knowledge of linux/unix. is there a way out? or a friendly solution? help, anyone. Thenks.

Member Avatar for HazardTW
0
113
Member Avatar for nathanpacker

Anybody know if there's a way to pull gas prices from any of those gas price websites, so I can display them on my own page? I didn't know if there's a way to tap in to their source or if they provide some sort of way to do that. …

Member Avatar for ha1e
0
158
Member Avatar for dorcas

I am getting this error message [code]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dorcas'@'localhost' (using password: YES) in C:\myweb\dbmysql.php on line 2 Error connecting to database [/code] when i run this code[code] $con = mysql_connect("localhost", "dorcas", "dorc123") or die("Error connecting to database"); $query = "CREATE DATABASE chene"; $result = mysql_query($query); …

Member Avatar for nav33n
0
109
Member Avatar for nishanthaMe

So guys I have program written in php and requires a database with two tables.I want the programe to check that a database exists and if not automatically create database and it's tables. can anyone suggest me a suitable way.

Member Avatar for nav33n
0
71
Member Avatar for hmullie

Hi all i have started a website however i have a problem with the chat script does anyone have knowledge about dolphin scripts. my users seems to be offline even though they are there. just been suddenly disconnected in the chatroom and then the site shows they are offline. the …

Member Avatar for hmullie
0
125
Member Avatar for AbdullahKhatri

Hi, I was searching for the code to set a cookie at the start of the website like you can see at [url]http://www.apniisp.com[/url] , they have given the cookie at the start of the website which automatically popups. plz send me as soon as possible

Member Avatar for tirivamwe
0
397
Member Avatar for mrityunjay22

i am getting the aboe error in the code given below <html><head> <title>MySQL Server Information</title> </head><body> <h1>MySQL Database Server Information</h1> <?php $DBConnect = mysqli_connect('localhost', 'root', 'mrityunjay'); echo "<p>MySQL client version: " . mysqli_get_client_info() . "</p>"; echo "<p>MySQL connection: " . mysqli_get_host_info($DBConnect) . "</p>"; echo "<p>MySQL protocol version: " . mysqli_get_proto_info($DBConnect) …

Member Avatar for Nick Evan
0
147
Member Avatar for innovativeatul

Which one pours more more a .net developer or a php developer and which is more long lasting. Iam asking this question 2nd time just to be more confident and then go ahead with the suggested one. So pls. pls. give your suggestion. thnx,

Member Avatar for serkan sendur
0
107
Member Avatar for jenpai

Hello everyone! Im just a newbie here, and i really need help from you guys. We have a project in our school right now... i want learn how to implement a simple "Post Messages and Announcements" using PHP and MySql in my site. Kind of like a miniforum where the …

Member Avatar for jenpai
0
205
Member Avatar for Scrawn_Dog

Hi guys, relatively new to PHP - hoping someone can give me some advice. I am trying to navigate to a certain page using a switch statement, ie the case that is chosen determines which page you are directed to. The PHP code I have used reads as follows: [CODE]$TourName …

Member Avatar for nav33n
0
87
Member Avatar for ndnalibi

Does anyone have an opinion on Zend. My company does a lot of php web development and would like an independent review of its worth. We work with Joomla as a CMS, so this would be our primary use (writing extensions), although we also do some home grown lampp applications. …

0
66
Member Avatar for rickarro

Hey all, Quick question i'm having trouble answering. I've concantinated my variables together and all looks good except for one thing. I want 2 spaces after a colon and am only producing 1. [code] "Thank You!!<br /><br />PERSON:"." ". $row['fname']." ". $row['lname']." [/code] This produces: Thank You!!! PERSON: John Smith …

Member Avatar for m.pontus
0
97
Member Avatar for Fenerbahce

Hi, I want to create a table in Mysql but i receive an error. [COLOR="Red"]Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\wamp\www\CreateTable\create.php on line 11 Table veriler_2 couldn't been created! : [/COLOR] i give you the whole lines to check it for me. I can not …

Member Avatar for m.pontus
0
172
Member Avatar for rajeevkshr

Hi all, I need to pick date for a Textbox in PHP.How Can i Pick this.Anybody can help me for doing this With simple examples............... With regards, Rajeev

Member Avatar for rajeevkshr
0
182
Member Avatar for naju

I have used trim function as: $myar['mykey'] = trim($value); but the return value to that array is not trimed .. still there are white space before and after the real word.... what might had happen

Member Avatar for naju
0
67
Member Avatar for naju

I am working with a site with a lots of modules. some of the modules are inter-linked to each-other; such as article and resource, Member and Level. And now i need to make the modules inter-linked if they exist, and independent if they dont. its like if we have [B]member …

Member Avatar for naju
0
108
Member Avatar for rajeevkshr

Hi all, How Can i call a paricular function in PHP From HTML through href.Anybody can help me for solving this....... Rajeev

Member Avatar for rajeevkshr
0
207
Member Avatar for mahe4us

Hi all, I have obtain an error while making thumbnail images from the uploaded images. The error displays like as below [B]Fatal error: Allowed memory size of 16777216 bytes exhausted [/B] Actually the size of uploaded image is 208kb.. but it displayed the above error with memory size of neary …

Member Avatar for sokchea
0
96
Member Avatar for assgar

Hi I need help. I know what I want to accomplish, but I do not know how to do it. The events are recurring every month, but not recurring at the same time or on the same day of the week. WHAT I NEED HELP ACCOMPLISHING: How to do I …

Member Avatar for assgar
0
97
Member Avatar for rickarro

Good Morning, I have a script that is working just fine as it stands, thanks to ya'll :) I wanted to make a change to it but am having trouble making this change work. The scripts says to "select * from my databases", using "Where" three data inputs. This tells …

Member Avatar for rickarro
0
214
Member Avatar for smilyswapna10

hi, i am facing the problem with reuglar expressions. my requirement is if type the word like `$var` in a input field and select the EXACT WORD radio button and i click the search button then i want to display all files with the word `$var` all in my directory. …

Member Avatar for iamthwee
0
90
Member Avatar for rickarro

Hey All, I have a form that i want to be able to change the look of, it displays within an HTML page and is basically a rectangle with my input fields in it. I'm using a [code]<form action="fromform.php" method="post">[/code] type form. What i want is to be able to …

Member Avatar for rickarro
0
142
Member Avatar for kudzugazette

I have been using PHP sparsely on my website for some time now, but I would like to become more efficient and therefore have a couple questions. They will stream in slowly, bu for right now... Currently I use the <?php tag many times on a page. Is there a …

Member Avatar for kudzugazette
0
150
Member Avatar for naju

I have create lots of module for a cms-site .. with functions only. to avoid the collision of the function names ... i have kept module name before the function names. now i need to convert the modules to classes. one module contains lots of files included .. can we …

Member Avatar for naju
0
88
Member Avatar for iamthwee

How do I send an email... I have WAMP (windows xp apache, mysql and php). But what do I do now. Explain...

Member Avatar for iamthwee
0
159
Member Avatar for sanch3za

get the value from derived table in the walikelas table i have field :id_teacher,name,password in the kelas table i have field :id_class, class_name, and id_teacher. $query=("SELECT w.name, k.id_teacher, k.class_name FROM walikelas w, kelas k WHERE w.id_teacher = k.id_teacher"); my question is how we get the value from w.name,k.id_teacher,k.class_name and then …

Member Avatar for Walkere
0
88
Member Avatar for tzan2833

Dear all I have a few questions. I would be grateful if you could take the time to answer. I have installed on windows xp home apache2, php 5 and mysqlserver 5. The [URL="http://localhost"]http://localhost[/URL] page of apache works fine. The <?php echo phpinfo(); ?> page works fine. However when i …

Member Avatar for grandgoodel
0
151
Member Avatar for paranjyoti

Dear All, I am installing Zoomla for the first time in my local machine. When it came to the 4rth Step (Database), i gave the DB details of my database created online, but it couldn't connect to the DB online. Therefore i created a new DB in the localhost and …

Member Avatar for Dukane
0
63
Member Avatar for hooray

I have a search box on my website, that allows users to look for items that have been posted by other users, I am using this code a the moment, but there is a problem with it [code=php] $category=$_GET['cat']; $text=$_GET['text']; $query=mysql_query(" SELECT * FROM event_information WHERE category='" . $category . …

Member Avatar for iamthwee
0
112
Member Avatar for jhize

At risk of sounding like the newbie I am.... I don't know enough about php to do much of anything, yet. BUT! I know exactly what I need (I think). MAybe someone out there has seen something along these lines: It would be a php module that provide a custom …

Member Avatar for jhize
0
102
Member Avatar for nazall

this is the php code for me that gives me error Parse error: syntax error, unexpected T_STRING in C:\xampplite\htdocs\eurofrit\insert_ac.php on line 35 i will be thankfull if someone helps me because for days i can't fix it <?php $host="localhost"; $username=""; $password=""; $db_name="member"; $tbl_name="produktet"; // konoktimi ne server dhe zgjedhja e …

Member Avatar for phper
0
226
Member Avatar for nuBudDy

hi, im trying to view my php page on the browser on iis and i got this error : [COLOR="Red"]call to undefined function mysql_connect().[/COLOR] im not sure why this happened, tried googling but found only solution on apache. any help would be appreciated.thanx

Member Avatar for phper
0
112
Member Avatar for smilyswapna10

Hi, i am using the regular expressions in php. but i am facing some problem in that. i have input type='text' and i have 2 radio buttons one is Any word and second one is Exact word and i have one search button. if i type in text field as(i.e., …

Member Avatar for phper
0
77
Member Avatar for lydia21

hi i am doing something like planner.... based on todays date..i want to display the current week he must be able to enter only on todays date..the previous days in the week should be readonly

Member Avatar for buddylee17
0
100
Member Avatar for Venom Rush

Hi guys I've got a database with a table that stores paragraphs of text. What happens at the moment is that when I pull the text from the database and display it on the page all the line breaks are missing. I'd like to keep the line breaks. I've checked …

Member Avatar for Venom Rush
0
94
Member Avatar for Vai

What I am trying to accomplish is: When a user logs in the username / password is checked against the database. Once that is done, I need it to load a page. I am getting an error using the following code. [code] <?php require_once('core/db.php'); // Check if login form was …

Member Avatar for nav33n
0
143
Member Avatar for Morty222

Can someone tell me why this would cause the following error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource <?php $un = $_POST['email']; $pw = $_POST['password']; include("../admin/mysql.php"); $query = "select * from tbl_accounts WHERE $un = email AND $pw = password"; $result = mysql_query($query); $row = mysql_fetch_array($result); …

Member Avatar for Morty222
0
91
Member Avatar for hooray

Ok im not sure wether this counts as a php question or a database question, but ill put it here anyway. I have two fields in a database, one of which holds a foreign key that is a primary key from the other: USER(user_ID, username, password) USER_INFORMATION(user_info_ID, [COLOR="Red"]user_ID[/COLOR], name, DOB, …

Member Avatar for hooray
0
119
Member Avatar for davethedope

Having a bit of trouble figuring out my image upload script. I have modified this a bit, but I am stuck as to how I can get all the links to be output into one space. [code=language]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title><?=$site_name?></title> <style type="text/css"> <!-- …

Member Avatar for davethedope
0
150
Member Avatar for duttydea

Hi everyone!! I have a mysql table of products and i want to group them by the category then each sub category in a table: SQL strng: [CODE] SELECT `Product_Name` , `Product_Description` , `Product_Features` , `Product_picurl` , `Product_price` , `Product_Category` , `Product_subcat` FROM `prod_listing`[/CODE] Like this: Acoustic Treatment Acoustic panels …

Member Avatar for nav33n
0
70
Member Avatar for dani190

hey guys i have this line [CODE]$result=mysql_query($query) or die(mysql_error()); $option=""; while($row=mysql_fetch_array($result)) { $option.="<option value=".$row['firstname; lastname'].">".$row['firstname; lastname']."</option>"; } [/CODE] Now i need to fetch the last name and first names and put them into those option values... hows that done? If i go [CODE]lastname, firstname[/CODE] I get nothing, if i just …

Member Avatar for nav33n
0
135
Member Avatar for duttydea

I am a Newbie To PHP!! I used maestro php myqsl to crate the code below.. I am trying to change the query to include a where statment: "where Product_Category = Acoustic treatment" everytime i edit it i get a syntax Error!! please can you help? Thanks in advance [CODE]<?php …

Member Avatar for nav33n
0
348
Member Avatar for mark2326l

I have stories (some with images) displayed through a repeating region. Data of stories and image paths from MySql. Stories with no image have a blank image frame next to it, but only on MS Explorer. I thought I had this resolved using a variable style. All Mac browsers look …

Member Avatar for mark2326l
0
97
Member Avatar for nathanpacker

Hey everyone, I'm using php to delete a row from a table in a database in mysql, but it's not working. I'm not even trying to do anything fancy, just delete one row. Here's the code: [PHP]<? include 'config.php'; $recordid = $_POST['recordid']; echo $recordid; mysql_query("DELETE FROM employees WHERE recordid='$recordid'") or …

Member Avatar for nav33n
0
4K

The End.