39,402 Topics

Member Avatar for
Member Avatar for Mongooseman

I often find myself parsing a url or filepath for includes and links, and it usually leads to messy, frustrating code. Given PHP's massive library, I assumed there would be something to make life easier, but I couldn't find anything while pouring over the online reference. It's a lot of …

Member Avatar for chrishea
0
172
Member Avatar for nicholaslee21

Can someone look at this and tell my why it's not working like it should? It gets the data from the database fine, just wont post to search.php [CODE]<?php //connect to your database ** EDIT REQUIRED HERE ** mysql_connect("localhost","root",""); //(host, username, password) //specify database ** EDIT REQUIRED HERE ** mysql_select_db("test1") …

Member Avatar for nicholaslee21
0
172
Member Avatar for ManishS

I m not getting how to link pages in php..... For ex if I click on submit button of a regidtration form then i want to be navigated to a new page.. What should i do ... please suggest.....

Member Avatar for lionaneesh
0
89
Member Avatar for Farree123

I am trying to Add rows to my table through DOM. I have two drop downs and one text field in one row. One drop down is populated from database and when the second drop down is populated through Ajax. As far as one row is concerned it is doing …

0
71
Member Avatar for whiteyoh

hi all, the following code is for pagination using php and ajax. I have 4 records in my table. It queries and echo's that there are 4 records, which is correct, but the pagination is not kicking in. IVe been looking at this for a while and just cant see …

Member Avatar for sourcebits
0
85
Member Avatar for jamesyrawr

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\registration\login.php on line 19 is the error i get when i run the below code i cant figure out what is wrong with it. :( [CODE]<?php $username = $_POST ['username']; $password = $_POST ['password']; if ($username&&$password){ $connect = mysql_connect("localhost","root","") …

Member Avatar for mazeroth
0
206
Member Avatar for terrymold

Hi again I'm still having problems with PHP/MySQL Warning messages, even when using mysql_real_escape_string(). The offending string is: [CODE][25:64] And the true servants of the Gracious God are those who walk on the earth humbly and when the ignorant address them, they avoid them gracefully by saying, 'Peace!'[/CODE] If I …

Member Avatar for terrymold
0
228
Member Avatar for keval_hack

Hay, every one seen the of twitter ,facebook ,diggs and google buzz. How can i implement same plugin im my site. I success fully implemented the google buzz plugin but not any other. pls help me. -keval

Member Avatar for mazeroth
0
117
Member Avatar for Ajuddy

I would like to save to database but not file. please help me and show me how i can change from file to databasetables. [CODE]****users***** <?php function saveUsers($onlineusers_file){ $file_save=fopen("onlineusers_".$_POST… flock($file_save,LOCK_EX); for($line=0;$line<count($onlineusers_f… fputs($file_save,$onlineusers_file[$li… }; flock($file_save,LOCK_UN); fclose($file_save); } $onlineusers_file=file("onlineusers_".… if (isset($_POST['user'],$_POST['oper'])){ $user=$_POST['user']; $oper=$_POST['oper']; $userexist=in_array($user,$onlineusers… if ($userexist)$userindex=array_search($use… if($oper=="signin" && $userexist==false){ $onlineusers_file[]=$user; saveUsers($onlineusers_file); echo …

Member Avatar for Ajuddy
0
148
Member Avatar for cristi08

I have tbl 1 id_column(1 2 3 ) tbl 2 id_column(1 1 1 2 2 3 3 3) I need result tbl2 join with tbl 1 values (3 3 3) Thank you in advance i'm strugling from two days for this.

Member Avatar for cristi08
0
141
Member Avatar for sammerth

I have two drop down lists in my form- catagory and the second one sub-catagory.When user selects a particular catagory corresponding sub-catagory should be displyed in the second drop down list for further user selection.I am using PHP-Mysql in dreamweaver.When i preview the first list is working properly but the …

Member Avatar for sammerth
0
470
Member Avatar for pathikhobo

hello people, i'm new here in Daniweb and very much interested in web development(Specially php,mysql,ajax based web applications). I know HTML and CSS, but don't have any past experience in any scripting/ programming language like javascript or c(though i know basics of C), java etc. Some of my friends suggested …

Member Avatar for richman_tck
0
264
Member Avatar for muralibobby2015

hello.. i have to do substraction of two php variables which is having datatype varchar. i am trying like this.[CODE] $a=5; $b=3; $c=$a-$b; [/CODE] but for float values [CODE] $a=3000.90; $b=2000; $c=$a-$b; [/CODE] out put is $1000.9. ok even i echo $a i am getting 3000.9 how to get two …

Member Avatar for muralibobby2015
0
88
Member Avatar for ApocDen

for this to work you need to add some text boxes and name them accordingly, make sure when you add a text box add [CODE]$_POST["new_text field"] = $new_text field;[/CODE] etc etc. html coding can be used within the html tags only.

Member Avatar for metalix
0
229
Member Avatar for ijazkhattak

Hi all, i am making one site for social networking with some gr8 features. now i want to add a chat room in it. but i think using a file system or table for chat isnt a good idea as both have lot of cons. i want a chat systme …

Member Avatar for ijazkhattak
0
206
Member Avatar for rcasinillo_s

Good day everyone! Anybody could give me script for uploading or inserting image into database and how to retrieve it and print it to browser Any help would be appreciated. Thank you in advance. roland

Member Avatar for metalix
0
4K
Member Avatar for backendcode

Hello friends, Well i have two table one is used for user information while registeration and another table is only used for users profile image. In member list page i want to show users name , location and profile image. I m able to show a name and location but …

Member Avatar for pritaeas
0
93
Member Avatar for backendcode

how to insert last id value from one table to another plzzz help me... thnx

Member Avatar for pritaeas
0
89
Member Avatar for maunica

hi all, i am working on the project which needs to display the description of a product after retrieving from the database...but the entire description does not gets displayed..also the description must be in a proper paragraph form...please help

Member Avatar for maunica
0
42
Member Avatar for venushin

[B]i want my background image stretch or in tiles.. can somebody pls help me?... how can i do this?[/B]

Member Avatar for kasakit
0
115
Member Avatar for wallance

Hi, I have a file that connects to a database, database.php. I also have a file for defined constants, config.php, and it is stored in the top level directory because I'm going to use those constants on the main site and when I edit them, I don't want to edit …

Member Avatar for digital-ether
0
120
Member Avatar for backendcode

menthods to connect a database mysql [CODE]<?php $host="localhost"; $user="root"; $pass=""; $db_name="oma"; $con=mysql_connect($host,$user,$pass) or die(mysql_error()); $db=mysql_select_db($db_name,$con); ?>[/CODE] What is the way you connect your database..? thnx

Member Avatar for ekseks
0
121
Member Avatar for khanrock

i am installing php-joomla with apache on my system. m continuously getting the problem with mysql connectivity. The prob is: "Unable to connect to the database:The MySQL adapter "mysql" is not available." I have installed all the things & have also included dll extension of mysql. Please suggest a solution..

Member Avatar for ekseks
0
71
Member Avatar for 1Meme

Please help with these errors in this code.... Errors are Notice: Undefined index: user in C:\wamp\www\REGDB\login.php on line 13 Notice: Undefined index: password in C:\wamp\www\REGDB\login.php on line 14 Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\REGDB\login.php on line 22 [code] <?php session_start(); ?> <html> <head /> …

Member Avatar for cwarn23
0
63
Member Avatar for mybluehair

I'm making a form for admins on my site to submit new videos. the form page has several text boxes (for info like name of video, description, ect.) and a few file upload boxes (for flv video format, mp4 format, ect.) But when it passes to the next page, when …

Member Avatar for mybluehair
0
1K
Member Avatar for Monster Killer

Hello. I have made a PHP script that gets news data from a database and i used pagination to split it into page. I have it fully working with page numbers but i would like to know how i would make it only display 10 page numbers at the bottom …

Member Avatar for Monster Killer
0
209
Member Avatar for fuggles

Say I want an action to be performed on my database every so often such as add a random number of "points" to a random entry in a table every time it iterates. I want this to happen even if nobody visits my site. If this is possible with PHP …

Member Avatar for rch1231
0
95
Member Avatar for LucasAnderson

In my opinion, the "big CMS" solutions like WordPress, Drupal and Joomla have become too bloated and confusing for the end user. My clients love Concrete5, which uses simple in-context editing and point/click/drag all wrapped up in a shiny interface. Using Concrete5, I've cut my training time in half and …

0
55
Member Avatar for bamwamba

Hi, I need help with reading a csv file from a folder. The file is sent to the folder via ftp after every 10minutes. The script I want should then read this file almost at the same interval. The file name is dynamic so there is a possibility that these …

Member Avatar for digital-ether
0
211
Member Avatar for Awah Mohamed

hello guys . I want to creat an email system that sends and recieve emails . So how can i creat that it and where can i get a full lessons that can help me .

Member Avatar for ApocDen
0
54
Member Avatar for nicnac23

Hi please help, I have a simple web form and when the submit button is pressed I would like the form to post to two locations. One location is local and the other is external. Hope you can help. Thanks

Member Avatar for JenniC
0
1K
Member Avatar for eng7asebat

i need help plz i need project idea for information technology under graduates students in mobile application field,biometric field, ... and other fields like this anybody can help me in this ?????

Member Avatar for ZZZubec
0
105
Member Avatar for مصعب علي

hi all, this is first time connect php with mssql 2005 code : [CODE]<?php $myServer = "srv\ins"; $myUser = ""; $myPass = ""; $myDB = "db1"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); //select a database to work with $selected …

Member Avatar for pritaeas
0
1K
Member Avatar for phploveisgood

Hi! Please do anyone knows how i can implement something like this in my ecommerce shop? Here is the link:[url]http://www.restorationhardware.com/rh/design-gallery/index.jsp?link=designgallery_home&cm_re=DG-_-Category-_-Home&navAction=jump&navCount=0&categoryId=cat1699014[/url] Best Regards to everyone

Member Avatar for pritaeas
0
148
Member Avatar for whiteyoh

Hi all, Ive just uploaded the zend framework to my server and need help setting the include path. I thought i had it set correctly, but its just not finding the classes. heres what ive done [code] <?php // global variables ini_set("include_path", "/library"); ?> <?php require_once ('Zend/Mail/Mail.php'); ?> <?php $mail …

Member Avatar for sourcebits
0
104
Member Avatar for Bandwidth Media

Hi All, I am building quite a complex CMS (mysql & php) and am wondering what the best approach to inserting data into multiple tables at once is. I have about 10 tables i need up update with user data, some of them linked by keys, others not. I have …

Member Avatar for whiteyoh
0
115
Member Avatar for zia zia

I need some help with my coding:(. I have a php file with a delete link. It flags the user record with "1" when delete is clicked. What I don't know is that "how to remove the user record from my php file". The user record is fetched from mysql …

Member Avatar for manzarr
0
4K
Member Avatar for LloydFarrell

Hello all, I have spent a good few days looking over daniweb trying to get the right answer, But I am yet to find what I am looking for. I have successfully upload my image to a folder store and named my uploaded image. The path and file name is …

Member Avatar for metalix
0
474
Member Avatar for MDanz

when posting a new message on my forum and it contains a url. How do i automatically add the bbcode url tags to a url in the message?

Member Avatar for metalix
0
86
Member Avatar for umandajayo

hei flocks, I am developing a website using phpwcms. I need to develop a file upload module module for it.I need to study it.can you guid me..? thank you.

Member Avatar for umandajayo
0
60
Member Avatar for Rkeast

I am posting this code snippet as I continue to see login and user registration scripts that store passwords in databases as unsalted md5 hashes, and passwords in cookies as raw text. This snippet includes an example user registration function, as well as an example user login, login check, and …

Member Avatar for metalix
0
520
Member Avatar for metalix

To view this tutorial with notes at [URL="http://www.effectivewebdesign.co.nz/tutorial.php"]http://www.effectivewebdesign.co.nz/tutorial.php[/URL] yes I am aware this is more php than mysql. howerver I get asked how to do it so often I thought I'd post it here aswell :)

0
791
Member Avatar for niths

hi all, i am having a page with date picker. so now when i select a date, images uploaded on that date will be displayed in a table.The date picker will not change,only the below div will change. so now i had a edit button beside date picker.so when i …

Member Avatar for metalix
0
143
Member Avatar for preetg

hi.. i m getting parse error ...... can anyone help me how can i remove it........... [B]Parse error: parse error in c:\apache\htdocs\newhr\attendnce.php on line 21[/B] [CODE] <?php mysql_connect("localhost","root","root"); mysql_select_db("master"); $dates = array(); $employee = array(); $attendance_record = array(); $getdates = "select * from mar10 order by Date" or die(mysql_error()); $dates_resultset …

Member Avatar for amitrohilla
0
690
Member Avatar for swathi1234

Hi, I have created table in database mysql and I created register form and I wrote insert code ,when we run the php file there is no but given data is not inserted in database....I need help,I am new to php.... This is my code i have used,........ <?php if(isset($_POST['submit'])){ …

Member Avatar for vibhaJ
0
81
Member Avatar for rashmisharmamca

this is my table structure [CODE]CREATE TABLE IF NOT EXISTS `test` ( `id` int(11) DEFAULT NULL, `disable` timestamp NULL DEFAULT NULL, UNIQUE KEY `id` (`id`,`disable`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;[/CODE] Assume values as [CODE]INSERT INTO `test` (`id`, `disable`) VALUES (1, NULL), (2, '2010-07-27 15:52:20'), (3, '2010-08-03 00:00:00'), (5, '2010-07-28 15:53:39'), …

Member Avatar for rashmisharmamca
0
83
Member Avatar for niths

hi all, i had a page in which list of images can be seen by selecting some date. so now in that table i am having a dropdown of users. so if i select a user and click submit that username, imagename,size,type should be stored in database,but i cant store …

Member Avatar for niths
0
132
Member Avatar for andrewliu

Hello, I'm trying to build a list of categories and I don't want to overflow my tables, so I was wondering if anyone has a code that will allow users to click on a link and a pop up will show the rest of the list. I would like the …

0
57
Member Avatar for Parishah

Hi, I am trying to build a MCQ website. One question set will have around 50 questions, each shown in a different page I need to put a countodown timer which will work across all the questions any suggestions please

Member Avatar for ApocDen
0
62
Member Avatar for cpu278

Hi there, I couldn't find a solution to this small problem so posting it here. I have some hardcoded values I want to send back to the browser. When I have this code: [code=php] ... $cr1 = '{"date_added":"8/3","type":"1","contact":"John Smith"}'; $cr2 = '{"date_added":"8/7","type":"2","contact":"Jane Smith"}'; $company_reqs[0] = json_decode($cr1,1); $company_reqs[1] = json_decode($cr2,1); $company_data['reqs'] …

Member Avatar for cpu278
0
95

The End.