39,402 Topics
![]() | |
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']; … | |
![]() | 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 … |
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 … | |
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 … | |
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]; } | |
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. | |
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 … | |
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.. | |
Hi all, how can i send the value selected by radio button to the next page. thank u. | |
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 … | |
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: | |
[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 … | |
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). … | |
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 … | |
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 … | |
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.... … | |
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!? … | |
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 … | |
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 … | |
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? | |
Hi I have a problem, how to create a word document with mail merge using PHP ? | |
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. | |
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 … | |
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 … | |
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 … | |
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]... … | |
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? | |
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 … | |
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. | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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 … | |
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. … | |
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 … |
The End.