39,402 Topics
![]() | |
hi all, im new to php and im stuck with a "constant" problem. i was studying a code snippet and trying to creat a constant with define() like this: define("ABC",1,TRUE). i dont understand why it results nothing if the second parameter is 0. The consant type is boolean and it … | |
Fatal error: Cannot use object of type DBConnect as array in C:\xampp\htdocs\class.DBConnect.php on line 28 [code] class DBConnect { // access is private for all class variables private $c_host_name; private $c_user_name; private $c_user_password; private $c_user_database; private $c_db_link; private $c_arr_errors; private $c_obj_prepared_query_statement; // class constructor public function __construct($p_arr_connection_string) { $this->c_host_name = … | |
Hey guys, I need some help! I have a sensitive script on my site that's kept secret and password protected but I'd like it so that when someone accesses it it emails me. | |
Guys, i have installed PHP 5 on my windows system, i am able to browse to info.php which shows a listing, but if i create another simple page with a echo statement then i and not able to browse that page. i get the HTTP 500 internal server error. i … | |
WARNING huge php script, watch your head /WARNING :D Ok, i want to start by saying that this is part of a free script im making and therefor may be used by anyone, the script if available at: [URL="http://pctipforum.com/index.php?topic=345.0"] http://pctipforum.com/index.php?topic=345.0[/URL] next i want to say that this is a login … | |
Hello, I've got a series of buttons that take the user to the same page. Different information is passed to the PHP page effecting the behavior or the page. The functions work but the problem is that for each button not pressed, a Notice is displayed. Is there a switch … | |
Hi I have the following [CODE]$_SESSION('userid') = true;[/CODE] How is it i would get the user to logout? I guess by deleting the session? Thanks | |
hi there im a novice to PHP and have been trying to put together a form with two buttons that post a variable value. The value is tested and then php perfroms whatever action that value points to (Update or Delete). My problem is that when I click the button, … | |
Hi I designed an online quiz site and i wanted users after mtaking the quiz, to be able to click button and their results are printed from a printer. Having trouble coming up with the source code. Could someone point me in the right direction? | |
hi i'm using pdflib class to generate a pdf which i want to display an array of results from my db, my problem is only the 1st row of the query results is dispayed. Tried using a for statement in relation to the number of rows found but that didnt … | |
hi im a newbie at this but im getting a error message that says: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pickurau/public_html/classes/Lib/Query.php on line 27 and line 27 starts with the if(!mysql_affected_rows() || mysql_num_rows($this->rs) < 1) return false; does anyone know how can i fix … | |
Hi guys, i m working on matrimonial website. now a days preparing admin panel for that... in the admin panel when admin click on edit(here i m able to recieve id using $_GET), another page opens lets call it showsuboptions, with three sub options edit profile, edit desired profile, edit … | |
Hello, Maybe I do not understand the concept behind a constant definition but I have been trying to define a default location for file uploads: [CODE] <?php // Define the upload path define('UPLOADPATH', 'C:\wamp\www\web\images_files'); [/CODE] Every time I try to run the script: [CODE] Notice: Use of undefined constant UPLOADPATH … | |
hi, i am new to php and zend framework....is dr ne relevant site which helps me to learn the framework with the help of full flashed project? | |
I tried looking on Google for info on this, but not much came to light. I'm trying to do a query string that takes info from text files and renders them as PAGENAME.php?id=1 - without using a database, if possible. My file is called test.php and this is its content: … | |
Hi, I want to create tree like menus in php,but the values will be retrieved from mysql,i want menus with submenus which means tree structure,i don't know how to display the mysql value in a menu tree structure,please help me out for this problem. | |
Hello all, I have been teaching myself PHP through others writting; so bear with me if you find something foolish. Having said so, I want to make a simple Music library with MySQL/PHP. I have made this very simple Login form as shown below. I want after someone successful login … | |
I'm using XAMPP to test a mini-website - I have some zip files I'd like to be able to place on the server, then for them to be unzipped using PHP via a browser. How can I do this? I've tried the following... [code] <?php $zip = new ZipArchive; $res … | |
Hi i had a php page which show thumbnail images from a database. I need to show enlarged image when mouse roll over to that thumbnail one. Pre-loading of all of that images is not possible ( it will take time to page loading ) . It must be load … | |
Hi Is it posible to display a list of members that are currently logged in on my website in PHP. Or should I use AJAX ? Any ideas, and if possible how would I go about doing this. Happy easter everyone :) | |
Hello all, A friend and I are working on a website and we are having some issues with the timeout functionality. We set $_SESSION['activeTime'] to the current time at login and then We are using the code below at the top of every page to set the session time every … | |
Hi, I am trying to display 5 pics named "pic1", "pic2"....."pic5" in one div. I have settled that the div will be visible after 5000 ms, and then i have settled cleartimeout function to make the div again hidden. I need to revise it 5 times so that 5 pictures … | |
Hi everyone, because I've recently decided to try making a webgame, I've begun scripting an editor for it. However, I'm quite stuck on the little project and would like some help. The script works as follows, a directory of tiles is being read via PHP (however not alphabetically). These tiles … | |
hi friends, i am new to php. i have source code to logout from a page when that page is inactive for certain seconds. and it is logging out . but the thing is it is logging out even when my mouse and keyboard is active. i.e. even when i … | |
Hi, I wanted to post my login system I will use for an upcoming site for rating. I want to ensure a safe login, so please, if you know anything about this and see a security leak somewhere... Please post, any remarks are welcome. How it works: the script generates … | |
Hi everyone, I am working on one application in which i am using many checkboxes for many records like we use in our mail . Like in our inbox mail folder if we want to delete more than one mail , after checking that mail in checkbox , we click … | |
Please help me in newsletter sending , this my code the problem is the mail is send to single person is going correctly ,if the same mail send to more number of persons getting wrong mail is going but the data display only in first mail ,the other mails getting … | |
Does anyone know how I can display a list of (let's say) 5 members that have visited my profile page recently? Shouldn't be too hard, should it? Let's try to find a solution, since I believe more users might be interested in such a feature. Thanks guys, navi | |
Hello, I am trying to store a single MYSQL result into a 2 dimensional array, for example I would like to end up with something like this: array[0][0] = result[0] , array[0][1] = result[1] , array[0][2] = result[2] ..... Here is my code: [code] $tempCat = array(); for ($i=0;$i<$numcat;$i++) { … | |
Hi all , just learned the basics of perl thru a website. and i was just wondering what the perl equivalent of php code .... for($i = 0; $i < 10; $i++) { $myarray[] = $i; } would be. Any help appreciated thank you .. | |
Greetings people. I've just recently discovered PHP, and have just created my first dynamic PHP-document, which fills a table with data from my SQL db. It works quite well, but what I'd like is to have hyperlinks in one of the three columns (header), pointing towards whatever adress posted from … | |
I have a PHP page with query strings in, and that works, but getting it to display the correct page depending on the day via a switch statement is a problem. This is the code: [ICODE]<html> <body> <? if($_GET['day']==1){ ?> <?php include("day1.php") ?> <? }else if($_GET['day']==2){ ?> <?php include("day2.php") ?> … | |
Hi, I would like to set variables from session variables. Like this: [CODE=php] $fname=$_SESSION['fname']; $lname=$_SESSION['lname']; $email=$_SESSION['email']; $month=$_SESSION['month']; $day=$_SESSION['day']; $year=$_SESSION['year']; $city=$_SESSION['city']; $state=$_SESSION['state']; $uname=$_SESSION['uname']; $pass=$_SESSION['pass']; $encpass=$_SESSION['encpass'];[/CODE] I think this is triggering the following error: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised … | |
Hi I have a site in Joomla CMS. I want to redirect my old url : [QUOTE][url]http://www.brcreation.com/index.php?/Softwares/Tool-to-Convert-Files?itemid=167&mid=167[/url][/QUOTE] to : [QUOTE][url]http://www.brcreation.com/Softwares/Tool-to-Convert-Files?itemid=167&mid=167[/url][/QUOTE] As you see above, I want to remove "index.php?/" from my site url. I have created a script for this but there are some problems. It doesn't redirect to correct … | |
Hi i know php and mysql little bit. I likes to create a online chat application. Please any one give me a right tutorial or chatting idea . Please Help me Thanks Rajeesh | |
Hello, I'm pulling classes from a database and displaying them in dropdown boxes for the users to choose from. I need to be able to take the courseIDs(in my database) from the courses they pick and store them into a table called account_courses. I also wanted the drop-down boxes to … | |
I want to redirect a user after a few seconds without using javascript. Is this possible? Thanks. | |
Hello, I'm building my own website without any knowledge of PHP, & i'm almost done with that..as my website works fine on my local server i:e WAMPSERVER 2.0, but the same code is not working on server...n i'm rilli piss'd of coz of that... The error is :"PHP Parse error: … | |
Hello all, i am having great difficulty in trying to get the job_id variable from the table that is displayed that will be passed into the next page and profile page information will be selected where he job_id (from previous page) is equal to the job_id of the profile. In … | |
can somebody help me how to search data from database?coz i use dropdown to select jabatan,month and year..here the coding: [code=php]<?php session_start(); include 'db_connect.php'; $ID = $_SESSION['ID']; $PASS = $_SESSION['PASS']; if(($ID=="") && ($PASS=="")) { echo "<script language='JavaScript'> window.location ='login_user.php';</script>"; } ?> <?php $namajab = $_GET["nama"]; $bulan = $_GET["bulan"]; $tahun = … | |
Hi I am a php programmer. I found in some sites hide their page type . For eg: [url]www.some.com/[/url][B]lal?s[/B]ome=some&somemore=somemore. insted of [url]www.some.co[/url][B]m/lal.php?s[/B]ome=some&somemore=somemore. Please help me How can i do that Thanks Rajeesh | |
Hello Every1, i'm using "webhostingpad" for hosting my website.....n i dont have access to httpd.conf & they even dont allow wildcard redirect... but they are providing me unlimited subdomains... is there neway 2 make dynamic subdomain for every new user register 2 my website.....accept making it own 4m cpanel...... every … | |
i'm developing a website for my final year project entitled [B]foreign workers booking system[/B]. Now i got several problems the problems are:- 1.How to come up with a dwi language website 2.How to make a private mail so that i can send a mail to an employer. 3.How to have … | |
Hello everybody, Not sure if the above title is correct for the issue I have but moderators please feel free to correct it.:) Anyways my issue is whenever a user logs onto my forum, my index page seems to display the ID of the user also......... Exactly like this: [quote] … | |
Hello, I'm building my own website without any knowledge of PHP, & i'm almost done with that..as my website works fine on my local server i:e WAMPSERVER 2.0, but the same code is not working on server...n i'm rilli ****'d of coz of that... The error is :"PHP Parse error: … | |
I want to check if a key exists in a MySQL DB. I can do this ok but I would need to create a new key if it does exist. So this is the function that makes the key: [code=php] function keygen($a){ $b = str_shuffle('abcdefghijklmnopqrstuvwxyz1234567890'); return substr($b,0,$a); } [/code] So … | |
I have a form with a hidden object: [CODE="HTML"]<input id="tracker" type="hidden" name="tracker" value="0" />[/CODE] The value is read with JavaScript and increased each time an element is added: [CODE="JavaScript"]var tracker = document.getElementById("tracker"); var tracked = parseFloat(tracker.value) + 1; tracker.value = tracked;[/CODE] This works fine while in HTML and JavaScript, but … | |
Hello people, i have the following code though it is not giving me the exact results i want. i would like the code to order by the name but the order by doesnt seem to be executed. here is the code; [code] $query2 = "select * from jos_categories where id … | |
Hi, I want to send a XML file to my website where the XML is read and information passed to MySQL database. I know this is done but i don't know how to do it. Something related to header etc? Any idea? Thanks | |
Hi. I'm a newbie to PHP. I am looking for a PHP login script which uses MSSQL. I've come across a ton of tuts and guides for MySQL, but unfortunately, I do not have an option. [B]I have to use MSSQL.[/B] All the login script has to do is allow … |
The End.