39,323 Topics

Member Avatar for
Member Avatar for justinmyoung

I'm working on implementing a php registration/login script. When a user registers and then login - they are directed to a page that I would like to display a form, such as you would see in a contest. The person would fill out the form, entering the information into the …

Member Avatar for rm_daniweb
0
3K
Member Avatar for Tekkno

I am new to PHP. I have a MySQL database with a column of URL's. I have a PHP script that randomizes the URL's and echoes the result to the browser. I just need a need a way to turn the randomized URL into a clickable link. I would imagine …

Member Avatar for Tekkno
0
2K
Member Avatar for nschessnerd

Hey, I want to integrate a phpbb login with my site so i added the following code: [code]<?php define('IN_PHPBB', true); $phpbb_root_path = "../forum/"; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); include($phpbb_root_path . 'includes/bbcode.' . $phpEx); // Start session management $user->session_begin(); $auth->acl($user->data); ?>[/code] …

0
57
Member Avatar for mrcniceguy

i have a script which i`m using in ma site,for friends system. that if somebody accept me as friend,i appear in his friend list also he appears in my friends list. That works fine. Also when displaying the friend list is ok!!!(In which to all scripts i used serialize and …

0
62
Member Avatar for Vanq69

Hi guys, I cant seem to work out a way to keep my paragraphs when using a text area as part of a form. I send the form using ajax and then display the text again in a textarea to allow editing before finally displaying it on a standard page. …

Member Avatar for Ezzaral
0
91
Member Avatar for rajeesh_rsn

I had a web site ( Real Estate) and visitor can add data. But I only need to add in site only after my approval. So I make a column in database that "approved". When an user submit data then Enter the value "no" in "approved" column. When I approve …

Member Avatar for Designer_101
0
126
Member Avatar for kings

hi for posting a new thread we are using editor in daniweb.i want something simple like this.can anyone tell me how to achieve this. thanks in advance

Member Avatar for JRSofty
0
90
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
260
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
315
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
85
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
661

The End.