39,320 Topics
| |
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 … | |
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. … | |
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 … | |
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 | |
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(); … | |
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 … | |
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] | |
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; … | |
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 … |
The End.