39,402 Topics

Member Avatar for
Member Avatar for Buppy

Hi, I have a form (using cake form helper) and it's validation rules. The problems is that the errors does not show. I can see it validates correctly - the data is not being saved, the fields has their .required class added, and also when i check the $this->Model->invalidFields(); it …

0
59
Member Avatar for mwenyenia07

Hi all, I want to create a horizontal and vertcal menus(sub-menus too) like those displayed on the home page of Daniweb site using PHP .can somebody help me sample code please.

Member Avatar for divyakrishnan
0
132
Member Avatar for ahasan_al_rabbi

<html> <head> <title>test page</title> </head> <body> <?php echo "<h1>hello there</h1>"; ?> </body> </html> or, <?php echo <<<EOT <html> <head> <title>test page</title> </head> <body> EOT; echo "<h1>hello there</h1>"; echo "</body></html>"; ?>

Member Avatar for almostbob
0
122
Member Avatar for vaultdweller123

hey guys anyone know here how to browse image from server? currently the code <input type="file" name="file" id="file" /> is browsing from my computer. I want it to browse from the server, is it possible? thanks in advance

Member Avatar for urtrivedi
0
421
Member Avatar for Ichcha

hi am beginner in php.. please help me.. rough explanation: user will select orgname and the following code will get the orgname and import data from mssql. i wanted to filter those data according to groupname and count number of users access to the system in month basis according to …

Member Avatar for Ichcha
0
467
Member Avatar for shamim0754

Hellow,I need to help for desinging a online based education website.what thing I considered of this site.I plan my site will be remain advanced login system,exam system,tutorial but I need more concept that i can do and how can i do this.thanks

Member Avatar for Nahiyan
0
89
Member Avatar for johndohmen1963

Hi i got the folowing code to delete files and directories [CODE] if(isset($_POST['wissen'])) { $albid5= $_POST['album_id1']; $albnam = $_POST['albumbeschrijv']; $error = "Es ist ein Problem mit der Datenverbindung aufgetreten,<br />probieren Sie es bitte später noch einmal<br />oder nehmen Sie Kontakt mit dem Webmaster auf."; $connect = mysql_connect("localhost","bla","bla1") or die ($error); …

Member Avatar for johndohmen1963
0
215
Member Avatar for luceduce

Hi all, I've written some code which seems to be working when isolated on testing pages, however, as soon as I integrate the codes within my site files, the code no longer works. [B]What the code does:[/B] currently, when the first page loads, you have an option of which template …

Member Avatar for ddymacek
0
199
Member Avatar for klemme

I have this script which works fine, and changes the password. Admin is logged in and has a session id. After admin has changed the password, i want to email the new changed password, but it doesnt send the email - can someone see why? The form inputs are: current …

Member Avatar for klemme
0
121
Member Avatar for airmvp23

I've been trying to use the php includes code instead using iframe, but I'm having some issues. I have 2 php platforms (Joomla & Shopping Cart) that I need to connect together somehow. Basically I need to "include" the shopping cart template within a Joomla Template (so basically like iframe). …

Member Avatar for airmvp23
0
501
Member Avatar for RazorRamon

I built a quick date time test page. The coding is below followed by its results. I'm entering the raw timestamp into table time because i want to be able to manipulate it once i show it (say if i want to show time and date using the same timestamp). …

Member Avatar for RazorRamon
0
314
Member Avatar for keskor

Hey guys i jst wanna ask about how to put categories in php in such a that i write a function that will take a specific surname as a parameter and check in which category of letters it falls to and return the name of the person e.g muller category: …

Member Avatar for ddymacek
0
107
Member Avatar for arsala211

how we select data from database in drapdowlist and then delete the date(thrugh php cod)

Member Avatar for klemme
-2
109
Member Avatar for mbarandao

Hello; I using the following sql to get information from two tables --through join; /[CODE]/ this join works in sql, but can $res = "select ad.firstname, ad.lastname, ad.address, ad.city, ad.state, ad.zipcode, ad.dhtmlgoodies_category, ad.dhtmlgoodies_subcategory, ad.caryear, ad.customerid, ad.servicedesc, aj.email, aj.areacode, aj.phoneprefix, ad.clientID, aj.phonesufix, aj.cellareacode, aj.cellprefix, aj.cellsufix, aj.commentonclient from additional_cars as ad, ajax_client …

Member Avatar for ddymacek
0
438
Member Avatar for devindamenuka

hi all, first i want to say I am new to php. I'm developing a blog where administrator can get all comments replied by the users. I can view it in a html table. But now what I need is dynamically delete , edit them. i tried this [CODE] include …

Member Avatar for leakbali
0
360
Member Avatar for Rahul1996

Hey everyone, I'm having an undefined variable error where I have marked in red. The variables i and f2 are defined in another method somewhere else in the code. Please tell me how to fix these errors. Thanks in advance!! function showDateBox() { $startDate = array(); $endDate = array(); $dayarray …

Member Avatar for Rahul1996
0
130
Member Avatar for sfrederick1

Hey guys, I was trying to implement a twitter feed script into my website to display my most recent tweet, and it works fine, but the links are broken. Go to [URL="http://sfrederick.com"]http://sfrederick.com[/URL] to see what I mean. Here is the script: [CODE] <? $username = "sfrederick1"; $prefix = "Latest Tweet: …

Member Avatar for atrueresistance
1
235
Member Avatar for gordo58

Hi, I am trying to redirect links through a php redirect. I am just about there but am having problems with the coding to pass the variable through from my page to the php script. For example link on my page is: [url]http://www.website.co.uk/redirect.php?m=196591.html[/url] This should display the page for HotelID …

Member Avatar for gordo58
0
246
Member Avatar for rpv_sen

Hi Friends i am facing problem in searching a words from database. Below is my Database details [CODE]CREATE TABLE IF NOT EXISTS `latest` ( `latest_id` int(25) NOT NULL AUTO_INCREMENT, `latest_title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `latest_short` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `latest_image` varchar(250) NOT …

Member Avatar for shaams
0
195
Member Avatar for dw_user

I need to have a script that will help me save the same groups of fresh email and reply mails (suppose from gmail)to it into the database. My choice is IMAP. Right choice i think. 1) i know how to get the total number of unread emails . But how …

0
100
Member Avatar for Paaat

Hello people.. I have written a code that replaces IMG tags in a text with the HTML <img tag.. However, I faced a problem; Big images spoiled the layout of the page being viewed. Is there anyway to limit the size of the image only when it's more than 300 …

Member Avatar for Pro2000
0
129
Member Avatar for knitex

Hey guys, I'm kind of new to php. So my problem is that my code just doesn't work and I can't figure out why. I had it working when had the original code when all it did was search and display the results but now I'm trying to add page …

0
56
Member Avatar for upmuthukumar

Hello all, While upload my resume i'm getting below error, Warning: Cannot modify header information - headers already sent by (output started at /home/abc/public_html/site/resume2.php:1) in /home/abc/public_html/site/resume2.php on line 57 I have attached the code as well.... <? $subject = $_POST[subject]; $Comments = $_POST[Comments]; $name = $_POST[name]; $phone = $_POST[phone]; $mobile …

Member Avatar for elibyy
0
175
Member Avatar for vikaspa

Dear All To conduct online exams we need to set timer for say 60 minutes or 90 minutes after this time the user should be logged of fiocrcefully Please help me for the code in php Can I use session for this ...

Member Avatar for urtrivedi
0
719
Member Avatar for manzoor.ilahi77

Please help on the multiple textbox as date in mysql [CODE] <input type="text" name="date" class="f_input input1" style="width:32px;" value="D" maxlength="1" onBlur="if(this.value=='') this.value='D'" onFocus="if(this.value =='D' ) this.value=''" > <input type="text" name="date" class="f_input input1" style="width:32px;" maxlength="1" value="D" onBlur="if(this.value=='') this.value='D'" onFocus="if(this.value =='D' ) this.value=''" > <input type="text" name="date" class="f_input input1" style="width:32px;" maxlength="1" value="M" onBlur="if(this.value=='') …

Member Avatar for urtrivedi
0
459
Member Avatar for elibyy

hey there i've opened the source code of PHPbb and i saw something real wired [CODE=php]<!-- INCLUDE overall_header.html --> <p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p> <!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF --> <!-- IF S_DISPLAY_SEARCH or …

Member Avatar for elibyy
0
253
Member Avatar for elibyy

hey there i'm looking for a way to slice a website thru PHP. what that i'm looking for is to slice itunes store website to get app picture , app version , app size etc. example link:itunes.apple.com/il/app/free-music-download-free/id450378277?mt=8&ign-mpt=uo%3D2 thanks in advance elibyy

0
103
Member Avatar for klemme

Hi all, I have this mail which works fine: But how can I pass the html tags, as html tags so it shows bold in my inbox? As it is now, i recieve the tags as normal letters.. This is what I have: [CODE] if(empty($error_msg)) { // If validated -> …

Member Avatar for leakbali
0
147
Member Avatar for Madhuphp

hi all, know PHP basics want to learn php frameworks...can u please guide me...

Member Avatar for vaultdweller123
0
136
Member Avatar for chaychie

Hi guys, I have the following code which works well. The code is to display all the data from the database in input text field format. User is able to edit and update the details by clicking the update button at the end of each row to update the specific …

Member Avatar for vaultdweller123
0
122
Member Avatar for SprDave

[B]Hello, I recently installed a php job board script. The install and everything else went just fine.......Until......I click "Update" to update or edit an element of the site. Mostly, the problem happens when I'm in the Admin section of the site. However, it has happened on a few other pages …

Member Avatar for almostbob
0
76
Member Avatar for megachip04

I have a form in account.php that is prefilled with the user's current info but can be changed and then when you submit, it updates the database. However, when returned to the page after the update, the prefilled text is not updated. It only updates if you re-log in. At …

Member Avatar for ddymacek
0
8K
Member Avatar for riseguim

Ok so I want people to fill in a form and when they press submit it gets sent to my email address... Everything is working fine I just need to know how to make the checkbox appear in my email, the free script I used didn't have any checkbox and …

Member Avatar for riseguim
0
206
Member Avatar for riseguim

Ok so here's the deal... I have mostly French-speaking customers and they'll type-in their name with accents (such as é, à, è, etc.) in the following script [CODE]$string_exp = "/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$prenom)) { $error_message .= 'Invalid name<br />';[/CODE] It will say "invalid name". I know that to fix this I …

Member Avatar for riseguim
0
152
Member Avatar for metalix

View the full tutorial at [URL="http://www.effectivewebdesign.co.nz/tutorial.php"]http://www.effectivewebdesign.co.nz/tutorial.php[/URL] I have tested this many times and it works fine. Please don't complain unless you really can't get it working, Just PM me and I'll fill in the blanks Happy Coding :)

Member Avatar for Rogueit
0
885
Member Avatar for Rogueit

I found this code [url]http://www.daniweb.com/web-development/php/code/301902[/url] but when I run it I get several \n followed by Count item Name max(ts) then several a href="/testing.php?sort=max(ts)>"2011-07-08 00:00:00 can you tell me what I am doing wrong? [CODE]<?PHP //connect info $hostname = "localhost"; $database = "db"; $username = "user"; $password = "password"; $conn …

Member Avatar for Rogueit
0
168
Member Avatar for webguru07

is there a way that i can check to see if a mysql table exists and if not add the table to the database with a session_id as a table name

Member Avatar for Vonzarovitzch
0
3K
Member Avatar for iamus

Hi, I was wondering if anyone could help me in this aspect. Hope this is the right forum. I'm trying to implement a leave system in php. THe thing is, building one from scratch seems an uneccessary overload. WHat i'm trying to do, is find some sort of structured system …

Member Avatar for felixaduol
0
139
Member Avatar for devindamenuka

hi, I have settup relative paths now work it on localhost properly.THank you for ur upport but I got another problem when I host it 000wbhost server. I configure the passwords and username and other stuff and run the site. then I got this error PHP Error Message Warning: include() …

Member Avatar for broj1
0
169
Member Avatar for megachip04

Warning: copy() [function.copy]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/oeaivcom:/usr/lib/php:/usr/local/lib/php:/tmp) I am trying to create a form that someone can submit a file to an ftp location. I found a script online and it is giving me this error. Could anyone point me in the …

Member Avatar for Insensus
0
580
Member Avatar for Isti666

[code=php]<?php //first you need to define db info define('mySQL_hostname', 'localhost'); //database IP define('mySQL_database', 's'); //database name define('mySQL_username', 's'); //database user define('mySQL_password', 's'); //database password //connects to mysql $db_link = mysql_pconnect( mySQL_hostname, mySQL_username, mySQL_password ) or die( 'Error connecting to mysql<br><br>'.mysql_error() ); //connects to Database $db_select = mysql_select_db( mySQL_database, $db_link ) …

Member Avatar for leakbali
0
106
Member Avatar for phaedrusGhost

Hi all, This has always confused me to no end and now that I really need a JOIN I need to get this. I am working with a small blogging section of my site here. In one table I have "blogs" and another table I have "comments". My comments table …

Member Avatar for leakbali
0
146
Member Avatar for facarroll

Hi members. I am working on a couple of pages that present me with the same problem. I have set up a log in that puts member data into a session variable. Then the logged in member proceeds to alter some of their own data using a form, and the …

Member Avatar for vaibhav1983
0
14K
Member Avatar for arsala211
Member Avatar for sirlink99

I would like to learn PHP and I am wondering how to install it. I am planning on using the Eclipse PHP IDE for coding. I have tried a couple of installs for PHP and I could not get any of them to work. I have a vista ^$ bit …

Member Avatar for Ezzaral
0
117
Member Avatar for Ralphael

I am relatively new to php and i am having this error "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1" and i cant figure out what is wrong with …

Member Avatar for Ralphael
0
108
Member Avatar for Boboc

Hi, wonder if anyone could help me, I have taken an image slideshow from dynamicdrive.com and would like to use my own photos, the location of these images are stored in a php array, and I am struggling to get the images out. Its a matter of sticking the $code_array …

0
61
Member Avatar for sam230

I am making a project where when you select a city, you will get all the hotels on google map as markers.. now i got two options whether make an external xml file for all the hotels and read that file.. or get result for database.. so friends what you …

Member Avatar for jkon
0
147
Member Avatar for AngieS

I am trying to create a plant reference guide where the customer can grab plant description from one table (findplantsdb) and the availability from another table (plantsdb). I am new to PHP and I think I am close, but what is happening is that the plant description is coming up, …

Member Avatar for jkon
0
155
Member Avatar for AMADH

Hello everyone, I was won dering if anyone knows of a good tutorial for auto-complete that will allow me to search 5 or 6 different columns in a database table. right now I have one that lets me search only one, but it will not let me search more than …

0
101

The End.