39,402 Topics

Member Avatar for
Member Avatar for mrcniceguy

i`m having this problem after whenever include or require is Used. help please i dont know how to solve this. Fatal error: Cannot redeclare validateemail() (previously declared in C:\wamp\www\kislat\functions\functions.php:3) in C:\wamp\www\kislat\functions\functions.php on line 26 [code=php] <?php session_start(); require "config.php"; $user=$_SESSION['user']; $id=$_SESSION['id']; if(!session_is_registered('user')){ header("Location: checklogin.php"); exit; } define('INCLUDE_CHECK',1); require"functions/functions.php"; require"includes/functions.php"; //$user=$_POST['user']; …

Member Avatar for mrcniceguy
0
832
Member Avatar for dan_ord

Hi everyone, having a real headache over arrays at the moment. Had a search through the forums but can't find what im after so i'll begin here. I'm in the process of setting up a shopping cart. I'm pretty much there with it all, however there is one thing which …

Member Avatar for NettSite
0
72
Member Avatar for toleen

hello i am a very biggner in php but i have to do a homework about student regstration module there is 4 groups and 32 student ,each groupe should have 8 students when a student would be register in a groupe should i check if he is alredy exist in …

0
60
Member Avatar for Exploded Fiber

Im not sure the correct syntax to solve this problem. I have 3 arrays: A=(3, 4, 5) B=(1, 3, 5) C=(5, 3, 2) I'd like to loop through first element of each array and find the largest int, move to the 2nd element of each array and again find the …

Member Avatar for Exploded Fiber
0
65
Member Avatar for dragos13

I have an array named &data. I want to create a new array from $data,from x to y position.I tried to make it with for but I don't know how.Pls help.Tnx while($info1=mysql_fetch_assoc($x)) { $data[]= $info1['umiditate']; } for($i=3 ;$i<=5 ;$i++) { $data2=$data[$i]; }

Member Avatar for johny_d
0
61
Member Avatar for muralibobby2015

hello... i have 6 tables in database. now i am deleting product in product table. then how to delete all rows which is in another tables on this product id in single step.

Member Avatar for johny_d
0
95
Member Avatar for JERRYBOY78

Hello everyone, i working on a website and i wanna grab data from a table in my database . specifically the last 4 rows that are entered as the database is updated automatically by users. i wanna be able to display each row separately in different div tags. i'm getting …

Member Avatar for liamfriel
0
95
Member Avatar for sam023

Hello Friends.. i m inserting near about 20000 in db at a time.. i jst want to know how can i get the number of inserted rows and time taken to done that..!!! Thanks in advance..

Member Avatar for sam023
0
132
Member Avatar for niths

Hi all, how can i send the value selected by radio button to the next page. thank u.

Member Avatar for sleign
0
84
Member Avatar for sleign

hey guys - I'm sort of new to php5 and mysql5 but I'm pretty decent in php4 and mysql4 and thus far I've not seen that many differences. I am, however, new to SSL technology. I am building a site for a friend and am working on the login processing …

0
65
Member Avatar for preetg

hi everyone........... i want to send sms from my wesite to moblie phone.....i dont knw how i do it?nd i dont have any guidance of experts.............. plz guide how can i do this....... i read tutorial for this .....now i knw i need http protocol but how ?????????:-/:icon_question:

Member Avatar for uniqueseo
0
111
Member Avatar for niths

[QUOTE]hi all, i had a table 'files'. in which fileid,filename,uploadeddate,uploadedby,size are columns. now i need to display the occupied space under the table. means i hav to sum all the values in size. i had done it on line 38. but wat i need is tat sum value i should …

Member Avatar for Encrypted
0
63
Member Avatar for Virii

So I want to create a website that allows me (or others) to type in a words and select a relevent search, and have it search multiple XML pages on another server (IE: they search my site and are given 3 other sites to go to with that relevent information). …

Member Avatar for nikesh.yadav
0
381
Member Avatar for Phil++

Right this is stressing me out! I'm trying to connect to my gmail account through my website and I'm using this: [code] <?php $server = "imap.gmail.com"; $user = "user@gmail.com"; $pass = "pass"; $conn = @imap_open("\{$server:993/imap/ssl}INBOX", $user, $pass) or die("Connection to server failed: ". imap_last_error()); ?> [/code] (obviously with my own …

Member Avatar for cwarn23
0
109
Member Avatar for kurakar

While i am installing joomla on my domain, showing the error Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\sites\frontpage1\parsuae\webroot\cominfo\installation\installer\models\model.php on line 453 What is this[code]Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\sites\frontpage1\parsuae\webroot\cominfo\installation\installer\models\model.php on line 453 Code Below, Please help me <?php /** * @version $Id: model.php …

Member Avatar for Encrypted
0
239
Member Avatar for boomop

ok, So Im very new to this whole AJAX kind of thinking, and I might be trying to do something that's either harder than it needs to be, or theres an easier way that I havent fount yet... I'm trying to make a generic javascript function to call php functions.... …

Member Avatar for boomop
0
132
Member Avatar for seularts

Ok, in this code here I want to include a getimagesize in respect to the resolution. So for example if I have a 728x90 image I want it to go to abc folder that corresponds to this dimensions. Can anyone give me an idea on how to make this work!? …

Member Avatar for seularts
0
193
Member Avatar for cloud09

I wasn't sure where to post this...sorry if its in the wrong topic I was wondering if anyone could determine for me what language is integrated with this html and possibly some resources - like tutorials or basic examples so I know what I'm looking at. [CODE]<ss:set name="border" value="border:1px solid …

Member Avatar for cloud09
0
117
Member Avatar for Encrypted

This should be a rather simple question to answer. I want to include a field of data using $_POST that is not inputted by the user in an <input name=" "> text box. Is there anyway to manually add a field to $_POST without using input? Example: [CODE]<form action="<? echo …

Member Avatar for Encrypted
0
256
Member Avatar for fenixZ

Hi, I have a class and i have unset() within a function in it which throws Parse error unexpected T_UNSET. Some code : [code] class foo { function abc() { unset($this->err['main']['sub']['TOBEDELETED']); } } [/code] Where I want to unset only key TOBEDELETED . What may cause this?

Member Avatar for fenixZ
0
128
Member Avatar for viscorus2004

Hi I have a problem, how to create a word document with mail merge using PHP ?

Member Avatar for sourcebits
0
54
Member Avatar for niths

hi all, i had a table of files. with filename and size columns. so now i should display the total size used means i need to sum the size column. so can any one please.. Thank u.

Member Avatar for JRM
0
40
Member Avatar for cmhampton

Hi all, I'm helping a friend redo his database queries and have run into something that I need some advice on. Let me first say that I am not a PHP developer, so please bear with me. I have two queries that I can merge together, but I will need …

Member Avatar for cmhampton
0
118
Member Avatar for whiteyoh

Hi All, Im using PHP to extract data from an XML response. for example: [code] <UserManageResult> <ErrorNumber>0</ErrorNumber> <ErrorMessage/> <guid>a806368a64ab4cd3a4fef3572e0f2276</guid> </UserManageResult> [/code] i would use this code to get the guid value [code] $xml = new SimpleXMLElement($result); $guid = $xml->guid; [/code] Which works fine. my question is, how do i extract …

Member Avatar for whiteyoh
0
67
Member Avatar for s_kanika

I want to make my own blog in which , I want to provide facility of posting a single post to multiple sites . I can build my own database and interface for my blog but how can I add facility of multiple posting in my blog I know it …

Member Avatar for chrishea
0
82
Member Avatar for Pooja J.

Hello experts! I have login page, which take email ID n password. The user(which are already member)enter ID n password, after hitting submit button, welcome page showing there emailID should open. e.g Welcome [email]pooja.j@xyz.com[/email]. My prob. is that welcome page opens, but it shows only Welcome instead of welcome [email]pooja.j@xyz.com[/email]... …

Member Avatar for urtrivedi
0
84
Member Avatar for shaireen

Hey, I want to get a PHP based stucture for a .csv file and then provide the information to a table in editable form...and then populate the database table with the values from editable table.. how can i do it?

Member Avatar for shaireen
0
112
Member Avatar for Designer_101

Hey I have an array which pulls in the name, artist and URL of songs from a playlist.xml file. The array prints like the following: [CODE]Array ( [0] => Array ( [tag] => PLAYLIST [value] => Array ( [0] => Array ( [tag] => SONG [value] => [attributes] => Array …

Member Avatar for Designer_101
0
87
Member Avatar for niths

Hello, Good Day to all.I just want to know is there any options to find the usage of my shared memory?that is it should display the used and leftout shared memory. Please help me. Thanks in advance.

Member Avatar for n_e
0
60
Member Avatar for MDanz

i need some help fixing this .. i've made the td id the counter, which works. In mysql i have a column named position. For this particular row in mysql the position is 1. how do i input this result into the td id='1'? i tried below but it for …

0
60
Member Avatar for sting23

I need to put time and date in the script, anyone please help[code]1. questions <?php $qid = "Quiz ID-00"; ?> <html> <head> <title><? echo "Gamers Pub $qid"; ?></title> </head> <body> <p><h3><? echo "SiteName $qid"; ?></h3></p> <form action="/forums/results.php" method="post"> <p>Username: <input type="text" name="name"></p> <p>1.) Question number one is?<br> <input type="radio" name="q1" …

Member Avatar for boomop
0
250
Member Avatar for rahul8590

Well i got some weird problem here . We have a web team and we disributed our work equally , where i mainly created the web application in php and i am glad its working file . But for simplicity purpose i used basic html tags and created the web …

Member Avatar for rahul8590
0
97
Member Avatar for hno

hi every one , I want a xml site map generator script . I have searched alot and I've tried 4 of them , the main problem of these scripts is this , they can not save the content , they just can save e the site's urls , for …

0
65
Member Avatar for kmackmac

Hi, I have a form that allows the uploading of an mp3 file to a directory on the server. Which works fine. Then all the form contents are emailed, including the attached mp3. Issue is the mp3 is opening in the body of the email (not attached) and is in …

Member Avatar for almostbob
0
91
Member Avatar for D4n1sD

The error I get Notice: Undefined index: recaptcha_challenge_field in C:\wamp\www\verify.php on line x Notice: Undefined index: recaptcha_response_field in C:\wamp\www\verify.php on line x The reCAPTCHA wasn't entered correctly. Go back and try it again.(reCAPTCHA said: incorrect-captcha-sol) how does my source code looks like. a.php [CODE] <form method="post" action="verify.php"> <?php require_once('recaptchalib.php'); $publickey …

0
61
Member Avatar for bjice

Hey i'm writing my own first full website with PHP and MySQL and i've come to a problem. I know i need to optimalize it with some fewer echo's and more elses, but this is what i have now and apart from the problem, it works. On the site at …

Member Avatar for bjice
0
385
Member Avatar for prad27

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at W:\www\prads_website\index.php:15) in W:\www\prads_website\inc\adminloginpage.php on line 2 Hi everyone, I am new to all this so I do apologise if ive made silly mistakes. I keep getting this message and ive banged my head searching through …

Member Avatar for prad27
0
150
Member Avatar for ayesha789

Hi I have a table which have 4 fields. How i can give rights via DB for update, Select, Delete and insert. For example User A only Update Field 1 User B only Update field 2 and select all fields. User C can delete field 3 records User D can …

Member Avatar for ayesha789
0
168
Member Avatar for daveroesch

I am new to PHP and I want to make it so every field is required to send the form. I've tried a few different ways but nothing seems to work. Below is the script with no required fields. Can anyone show me how this would be done? Thanks, Dave …

Member Avatar for metalix
0
1K
Member Avatar for Asimina

i have this php code below: i want to display users that are online . if they are not active the next 20 min then there name will not be displayed and there status will be turned OFF in th database table tng_users field status but i also want all …

Member Avatar for metalix
0
167
Member Avatar for nelliott10

I currently have the following code on my view information page which allows the user to go to a different page to update and delete the information, which can be seen below: - Update: - [CODE]<a href=\"update_line.php?barcode=".$user["barcode"]."\">Edit Line</a>[/CODE] Delete: - [CODE]<a href=\"delete_line.php?barcode=".$user["barcode"]."\">Delete Line</a>[/CODE] I also attached the other related pages …

Member Avatar for cwarn23
0
91
Member Avatar for seularts

Can anyone please help me exclude the .php files from this code? [CODE] <?php $dir = 'x'; $filecount = 0; $d = dir($dir); while ($f = $d->read()) { if(($f!= ".") && ($f!= "..")) { if(!is_dir($f)) $filecount++; } } echo 'there are ',$filecount,' files in this folder'; ?> [/CODE] I have …

Member Avatar for n_e
0
305
Member Avatar for Venom Rush

Hi all I'm creating XML with php's native DOMDocument functionality. When I try save the XML it doesn't appear on the server and I can't figure out why. [CODE=php]<?php // Initiate the XML $doc = new DOMDocument('1.0', 'UTF-8'); $doc->formatOutput = true; // Code that creates XML elements and child elements …

Member Avatar for Venom Rush
0
1K
Member Avatar for Arianna

I'm writing a simple forum system to go along with one of my projects - nothing fancy, just categories, forums, threads, and posts. Some threads, however, are marked as 'stick', which means that they're stickies. No matter how many threads there are or where they're posted on, they always must …

Member Avatar for Arianna
0
113
Member Avatar for D4n1sD

So i want to put letter limitations into text boxs, not like it will pop up an error but not be able to write letters and only numbers, as the column type in db is demical.

Member Avatar for metalix
0
163
Member Avatar for manish.mca

hello everyone, i want to generate report by php for login at specific time. and i m usin database with my sql. so plz give me favour for code to make it successful. manish

Member Avatar for n_e
0
48
Member Avatar for Carrots

Hi, I was wondering if anyone can see why the substr_replace() function isn't replacing the 'XXXXX' with the random integer I am creating in the script below: [code=php] <?php $password = rand(12345,98765); $stringtoparse = 'Your new password is XXXXX'; substr_replace($stringtoparse,$password,18); echo $stringtoparse; ?> [/code] When I run this, I still …

Member Avatar for cwarn23
0
106
Member Avatar for Th3nutz

hello guys, i'm stuck with some code and i'm getting frustrated that i cannot get it work. Please help :)) I have a database with some details about registered users with a column named Activated (which is 0 or 1). I want to make a page were restricted users can …

Member Avatar for metalix
0
121
Member Avatar for metalix

I spent a long time figuring this out on the internet so I will post this now to hopefully help others with the same problem. this is to display the currently logged in user using mysql. this is so they log in with a username, and it displays actual name. …

Member Avatar for cwarn23
0
114
Member Avatar for ayesha789

HI Dears all I have 2 tables in DB. [LIST=1] [*]Lease_north [*]Lims_payment [/LIST] My first query is [ICODE]Select * from lease_north WHERE LaStartDate like '%-04-%'[/ICODE] its shows 100 result means 100 payments are due and must be paid in April. My second query is[ICODE]Select * from lims_payment WHERE pdate like …

Member Avatar for ayesha789
0
453

The End.