39,316 Topics

Member Avatar for
Member Avatar for veledrom

Hi, Code below generates this error [inlinecode]Warning: Missing argument 1, 2, 3for MyWebpage::pageElements(): Class_for_HTML.class on line 18 )[/inlinecode] but i cannot solve the problem. Thanks [code] <?php class MyWebpage { var $header = "<html>\n<head>\n"; var $title; var $keywords; var $content; var $footer = "</body></html>"; function generatePage() { echo $this->header; $this->pageElements(); …

Member Avatar for veledrom
0
49
Member Avatar for Newbie 123
Member Avatar for Designer_101
0
92
Member Avatar for jyotiu

Hi All I am new to PHP and just got a project ;) that needs me to extract links from the page, i have got the part of page that have links in a string and was wondering if i can extract all the links in that string. String is …

Member Avatar for martin5211
0
281
Member Avatar for HITMANOF44th

making php code to pull data for database now it pulls most data fine with the like statment now is there anyway to make it pull both things that are lower and uper case ? [code=syntax]$query = "SELECT * FROM `users` WHERE `$lookby` LIKE '%$lookfor%'";[/code]

Member Avatar for Designer_101
0
98
Member Avatar for emarshah

Hey All, I have a Register.php page, whose code is as follows. On Register Me button, i want to restore values back in text boxes, when some invalid input is in textboxes. How can i do this? [code] <?php session_start(void); ?> <html> <head> <title>Login System Using PHP</title> <meta http-equiv="Content-Type" content="text/html; …

Member Avatar for Designer_101
0
142
Member Avatar for szita1

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 …

Member Avatar for ShawnCplus
0
82
Member Avatar for ChaosTheory

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 = …

Member Avatar for ChaosTheory
0
137
Member Avatar for imanoob

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.

Member Avatar for Designer_101
0
38
Member Avatar for ramanand

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 …

Member Avatar for ramanand
0
158
Member Avatar for Merlin33069

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 …

Member Avatar for Designer_101
0
241
Member Avatar for KJATL

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 …

Member Avatar for Designer_101
0
114
Member Avatar for Newbie 123

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

Member Avatar for Newbie 123
0
80
Member Avatar for KJATL

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, …

Member Avatar for KJATL
0
285
Member Avatar for danielagaba

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?

Member Avatar for HITMANOF44th
0
55
Member Avatar for danielagaba

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 …

Member Avatar for rm_daniweb
0
50
Member Avatar for will910

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 …

Member Avatar for rm_daniweb
0
272
Member Avatar for navi17

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 …

Member Avatar for rm_daniweb
0
153
Member Avatar for kssi89

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 …

Member Avatar for rm_daniweb
0
87
Member Avatar for harry arora

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?

0
55
Member Avatar for whitestream6

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: …

Member Avatar for BzzBee
0
137
Member Avatar for vidhyaponnusamy

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.

Member Avatar for vidhyaponnusamy
0
89
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
84
Member Avatar for alicem

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 …

Member Avatar for alicem
0
660
Member Avatar for rajeesh_rsn

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 …

Member Avatar for almostbob
0
142
Member Avatar for Designer_101

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 :)

Member Avatar for Designer_101
0
224
Member Avatar for jbh6gc

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 …

Member Avatar for Designer_101
0
653
Member Avatar for marjan_m

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 …

Member Avatar for cwarn23
0
108
Member Avatar for brechtjah

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 …

Member Avatar for somedude3488
0
135
Member Avatar for akash_msrit

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 …

Member Avatar for mvmalderen
0
192
Member Avatar for brechtjah

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 …

Member Avatar for somedude3488
0
219

The End.