39,326 Topics

Member Avatar for
Member Avatar for 54uydf

my program allows users to leave reminders to themselves. tblReminder looks like this- [B]title content date[/B] now the idea behind it is that once the date that the user chose comes, the user will recieve an email to his email account with the content of the reminder. I can write …

Member Avatar for Stefano Mtangoo
0
103
Member Avatar for 54uydf

the bottom line of what I want to do is- I have a file with a form (form.php) that has 2 drop lists, on sumbit I want to be redirected to another page (1.php) if dropbox 1 was set, to page 2.php if droplist 2 was set and to page …

Member Avatar for 54uydf
0
176
Member Avatar for tstory28

Is there a way to have a session use two variables instead of just one? For instance: [CODE]$_SESSION['$email.$level'][/CODE]

Member Avatar for hielo
0
97
Member Avatar for klemme

[B]I need to update one select box, depending on what has been chosen in an other select box. [/B] I know I need to use AJAX, but I havent used AJAX ever before, so I am a little lost on how to implement it. [B]This is the first select box:[/B] …

Member Avatar for klemme
0
1K
Member Avatar for 05026652

Hi guys, I have recently tried to integrate the following script into my website to use with contact form (found here - [url]http://www.codewalkers.com/c/a/Email-Code/Smtp-Auth-Email-Script/[/url]) My Script looks like this: [CODE] <?php //new function $to = "hicky2k@hotmail.com"; $nameto = "rhys"; $from = $_REQUEST['client_email']; $namefrom = $_REQUEST['client_name']; $subject = "Hello World Again!"; $message …

Member Avatar for letoii
0
399
Member Avatar for cchap

I am using flat file db, not mysql so I can't use $limit I need to limit the number of records to 1, if more than 1 then echos something else: [CODE] $result = $db->getall(month); foreach($result as $item) show_record($item); } [/CODE] I tried to use 'break' but it comes back …

Member Avatar for cchap
0
137
Member Avatar for cchap

I am using a FFDB database (Flat File Database). This script works but it only shows first record (#1), if I delete the 1st record I get a blank page. I want to call all records and find 1 (one) that matches the criteria(s) independent of its record (key) number. …

Member Avatar for cchap
0
109
Member Avatar for lunac

I'm trying to send an html/plain text email for an invoice program I am writing. I really want the html message because it offers better layout options for invoicing and some features to help my customers with their payments. However, some email clients don't work with html email -- especially …

Member Avatar for pircoThe0ne4nd0
0
2K
Member Avatar for cjohnweb

Hello all, I've a seemingly simple question, but it's kind of got me thinkin there might be a "proper" way to accomplish my goal. My goal is a simple MySQL database schema install. In PHPMyAdmin I export a database, any database. I then save the file to the root directory …

Member Avatar for cjohnweb
0
285
Member Avatar for Tenaciousmug

This code will not insert OR update. But on the other ones it will.. but for this one, I'm doing an extra step to say that they can claim the item or not. From adding that extra step, it won't insert or update. [code]$rand = rand(1,3); if ($rand == 1) …

Member Avatar for ddymacek
0
197
Member Avatar for westerncj

Hello, I'm new to php and I'm trying to code my first contact form. The only problem I have is that I receive no email when I test it on my server. I have an index.php file and a handle_form.php file. Here is my code... Am I doing something wrong? …

Member Avatar for westerncj
0
158
Member Avatar for vibhaJ

Hi All, I have checked some available functions for error handling in php. But i didn't reach to goal. I want any php error to be shown on custom page. e.g. if there is comma missing and system throw [B]Parse error: syntax error, unexpected T_VARIABLE[/B] on the browser, can i …

Member Avatar for pritaeas
0
90
Member Avatar for raf.fredi
Member Avatar for Coyx

Hi everyone, My second time back to Daniweb looking for assistance with PHP. :) Okay, here's my PHP, and I'll explain what it does. [CODE]dbConnect(); if ($userclient == '2438') { dbOpenDatabase($GLOBALS['res_2438_contacts']); } else { dbOpenDatabase($GLOBALS['db_contacts']); } /************************************************ * THE IMPORTANT BITS - CHANGE BELOW * ************************************************/ //Product ID for Safety …

Member Avatar for Coyx
0
233
Member Avatar for Peter1

I need a fresh start and some fresh ideas. I get some text from a MySQL database and present like below. Each row is divided into five columns with radio buttons. ---------------------------------- Text 1-Text 2-Text 3-Text 4-Text 5 Radio1-Radio2-Radio3-Radio4-Radio5 ---------------------------------- Text 1-Text 2-Text 3-Text 4-Text 5 Radio1-Radio2-Radio3-Radio4-Radio5 ---------------------------------- and so …

Member Avatar for Peter1
0
211
Member Avatar for siabenie

Hi all, I would like to ask if anyone could help me about AJAX validation error message with CAPTCHA (secureimage) - At the moment the error message display at processForm.php, IF user entered a wrong code. But what I would like do to is; the error message will POP UP …

0
76
Member Avatar for aphpdeveloper

Hello, I am stumped on a problem im having, and I get the feeling that the solution is quite simple yet requires knowledge of certain functions. Basically I am creating a guestbook which allows users to post comments, however I am trying to create an admin approval system so that …

Member Avatar for aphpdeveloper
1
254
Member Avatar for hermann87

Good God, I've been stuck for like 2 hours, I suppose I can't think clearly anymore, but I just don't see why the statement below won't work, please help me out : [CODE]<?php session_start(); $username = $_GET['username']; $db = new PDO('mysql:host=localhost;dbname=subscribers', 'root', ''); $sql = "INSERTO INTO users (username) VALUES …

Member Avatar for hermann87
0
140
Member Avatar for chaychie

Hi all, I am facing a problem here which would like to seek helps from the experts. I have a table which is able to display all the data in text field format from the database in a table. The users are able to edit the displayed data. I would …

Member Avatar for Hummdis
0
146
Member Avatar for ericxye

I am looking for a button that inside a php table. I tried [CODE]echo "<td bgcolor='#FFFFFF'><center>" . '<input type="button" name="Activate" value="Activate" class="form" onClick="activate_user_id('.$rows['username'].','.$rows['loginid'].','.$rows['activated'].')">' . "</center></td>"; [/CODE] I know people said i have to use AJAX to make it work. but i dont know AJAX at all, Can anyone show me …

Member Avatar for ericxye
0
207
Member Avatar for abhi10kumar

I am using session variables, it is working on local but I run on server, it is not running. I am using Jquery

Member Avatar for cjohnweb
0
142
Member Avatar for ericxye

function edit_user($username){ if ( $username == 'admin' ) { $query = "SELECT * FROM login WHERE username != 'admin'"; $queryResult = mysql_query($query) or die (mysql_error()); echo "<table border='1'> <tr> <th>Loginid</th> <th>username</th> <th>email</th> <th>activated</th> <th>Edit User</th> <th>Delete user</th> </tr>"; while($rows = mysql_fetch_array($queryResult)) { //Todo: Here is a problem //probably use mysql_num_array …

Member Avatar for ericxye
0
91
Member Avatar for rico001

I have what appears to be a javascript or other type of code in htpdocs of a newer Joomla site, there is a index.htm that I think is causing a 2-3 second delay for the homepages to load up? and I would like to remove this... goto myurl for the …

Member Avatar for balajim1980
0
128
Member Avatar for lwschjang

I have a new project. The site will require registered users to pay an amount to upload content to the site. Also, I would like a thumbnail scroll gallery on the homepage that will pull up random profiles (a featured profile feature). If anyone can point me in the right …

Member Avatar for balajim1980
0
175
Member Avatar for jollyjain

This is my blogic.php file. The problem is i have created a patient login form and a database name"gmd" so as soon as i fill in d username n password in patient login form it should retrieve the whole information from "gmd" database bt it is showing an error in …

Member Avatar for Stefano Mtangoo
0
291
Member Avatar for atfOnly

I don't know what's wrong with this code. I think this code should work. I'm about to store number of each query in array [CODE] $antecedent=array(); for($i=0;$i<=$index;$i++){ if(isset($period[$i])|| isset($gpa[$i]) || isset($antecedent[$i])){ echo $period[$i]."&nbsp;"; echo $gpa[$i]."<br/>"; $queryAntecedent=mysql_query("SELECT * FROM mytable WHERE study_period='$period[$i]' AND ipk='$gpa[$i]'") or die (mysql_error()); $antecedent[$i]=mysql_num_rows($queryAntecedent); }//endif }//endfor print_r …

Member Avatar for Insensus
0
100
Member Avatar for public-image

Hi Guys! I am trying to custom signature images, a generated one as such on a form submit. At the moment I am still doing the images although I wish to add an image into the signature and I am not too sure how I will do that. I have …

Member Avatar for pssubash
0
75
Member Avatar for oinkpink

Hi, i need help , i wanted images to be for instance 4 in row, before it goes on to the next row, and below the images i wanted a title there. This are my work so far, but i just cant get to what I wanted, i've been searching …

Member Avatar for oinkpink
0
4K
Member Avatar for jacksantho

Hi, I need to use PHP inside html print ' <html> -----part <select name="speriod"> [B] <option value='<?php $cval ?> print '>'<?php echo $cval ?> print '</option>[/B] </select> </html>' I don't know to add PHP inside html tag. Facing Parser Error

Member Avatar for karthik_ppts
0
87
Member Avatar for rolfg

Installed Wordpress Multisite on Windows server 2008R2 and seems to be working fine EXCEPT: the update feature in WP fails or anytime when it tries to install something for you. I set up a valid / working FTP account as it sometimes asks for this, but that does not work …

Member Avatar for lasitha2005d
0
279

The End.