39,402 Topics

Member Avatar for
Member Avatar for Mayank23

im trying to make a rating system where the user can either "like" or "dislike" a picture. but for testing im just using 2 names from a mysql database. once the user hits like, the query will add 1 to the column "name_votes", and would subtract 1 if the user …

Member Avatar for Stefano Mtangoo
0
141
Member Avatar for Mayank23

i made a rating system, however each time i would click on like for the first name, it counts the vote for the second name, and when click on the like for the second name, it still counts the vote for the second name. please help. [CODE]<?php include 'connection/connection.php'; $selection …

Member Avatar for Mayank23
0
130
Member Avatar for ken.atienza

I use the Select form to update the orderstatus field from the table. [CODE]<?php session_start(); if($_SESSION['usertype'] !== 'admin') { header("location:index.php?page=loginpage.php"); } include('includes/ordercontrolbuttons.php'); include('includes/connect.php'); mysql_select_db("al",$con); $result = mysql_query("SELECT * FROM orders"); echo "<form action='orderstatusadmin.php' method='post'>"; echo "<table border=1 cellspacing=0 cellpadding=5 class='orderlist'>"; echo "<tr><th>Order Number</th>"; echo "<th>Name</td>"; echo "<th>Order Detail</th>"; echo "<th>Order …

Member Avatar for mathieu89
0
138
Member Avatar for anky86

Hey guys, I have been searching for this for quite a while and tried few methods but its nor working. I am a newbie in php and will be glad for you help. The code below displays a page that lists all the programs in the database and then I …

Member Avatar for anky86
0
121
Member Avatar for ebanbury

Hi I have 2 drop down fields in an array: The array works perfectly, (and is part of a longer form) but when I submit, the data disappears. I'm not that bothered about the 2nd drop down being sticky but really need the selection of the first drop down to …

Member Avatar for ebanbury
0
214
Member Avatar for diafol

Hi all, Trying to get my head around OOP at long last. Finally got to the beggar on my to-do list. Just a quick question: I was looking for a way to persist the object across pages, but on further research, I got the idea that this is a bad …

Member Avatar for Stefano Mtangoo
0
142
Member Avatar for Amr87

Hello Everyone, I have a plain joomla template and I have articles that I want to list on the main the page , but they must take an exact style in displaying , I have an example of what I mean , I just need to know how I can …

Member Avatar for Stefano Mtangoo
0
70
Member Avatar for yaci91

Hi! I'm trying to show 5 random images from my database and i seem to be stuck. Would appreciate some help or tips. I obviously dont want any duplicate images. Have tried to figure it out by googling butt my head hurts too much xD Got thumbnails for the picture …

Member Avatar for diafol
0
1K
Member Avatar for Danny159

Hey, I have a textfield and before I insert it into the database I run the function nl2br(); It works grand add's <br>'s at brake lines... However when I output it back into a textfield to edit it and update the record it had the <br>'s? Not a brake line... …

Member Avatar for diafol
0
125
Member Avatar for Blaze41

Hi all, I have two questions about retrieving questions from another website. I read on this forum you can use cURL to obtain a websites code, is there a way to narrow down that code and only display a certain part of it. For example I want to use the …

Member Avatar for chrishea
0
135
Member Avatar for Stunt

I'm looking for a very simple forum script such as the forum scripts they use on Ning.com (ex: [url]http://handofwin.ning.com/forum[/url]). Where can I get a forum script such as that?

Member Avatar for maxlipman
0
592
Member Avatar for NoviceCoder37

Hello, I have created 3 tables: trainer, course, trainerCourses. Table trainer has the following fields: trainerID(PK) , trainerName, email and a brief summary. Table course has the following fields: courseID(PK), courseDate and trainerName(FK) Table trainerCourses has the following fields: courseID(FK), trainerID(FK) and attendanceStatus (int where 0 is absent and 4 …

Member Avatar for diafol
0
156
Member Avatar for noahshoa2

Hey, OK, so this might be something, but I seriously cannot find how I went wrong here. This is my script: [CODE] <?php $_POST['submit']; $name = $_POST[$name2]; echo "It is going to database <b>db_".$name."</b>"; ?> <br> </br> <form action='' method='POST'> <input type='hidden' name="Example"> <input type='submit' value='What db is it going …

Member Avatar for zubaircs
0
115
Member Avatar for Danny159

Hey, I need some help, I need my script to loop through a directory of images and only delete images that contain "t.jpg"... Here is my looping script... [CODE] <?php // First we need to loop through the files.... $image_dir = $_GET['dir']; if(!opendir($image_dir)){ echo error_msg("Ooops... This Album contains no images"); …

Member Avatar for Danny159
0
132
Member Avatar for twistercool

I am a CMS Developer but am not well in PHP. So I might need your help here.. error: Notice: Undefined variable: handler in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_front_desk.php on line 34 source of error: [CODE]defined( '_JEXEC' ) or die( 'Restricted access' ); // Load configuration data //include( JPATH_SITE . "/administrator/components/com_rsappt_pro14/config.rsappt_pro.php" ); include( JPATH_SITE."/administrator/components/com_rsappt_pro14/config.rsappt_pro14.php" …

Member Avatar for cwarn23
0
256
Member Avatar for TheHaxx0r1215

The code I used isn't working with sql, and not sending a mail message, but it's perfectly formed(Or not)? Please help! [CODE]<?php require_once('recaptchalib.php'); require_once('config.php'); $privatekey = CAPTCHA_PRIVATE_KEY; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't …

Member Avatar for chrishea
0
209
Member Avatar for bbizzl

Hey All, Been banging my head into the wall on this one. I have 2 tables one for users 'myMembers' and one for products 'products'. Each table has a auto increment id. The myMembers id is the user id and the products table id is for the product id. I …

Member Avatar for chrishea
0
219
Member Avatar for twistercool

error 1: Trying to get property of non-object in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_user_gad_fd.php on line 83 error 2: Trying to get property of non-object in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_user_gad_fd.php on line 86 error 3: Undefined index: ppsubmit in C:\wamp\www\TESTING\components\com_rsappt_pro14\rsappt_pro14_user_gad_fd.php on line 327 (This is a joomla module error) source: [CODE]<?php defined( '_JEXEC' ) or die( 'Restricted …

0
75
Member Avatar for Mi-Dia

On a project I am doing I am making a Feed Flow of recent updates. Problem is I cant find out to overcome the following. There are two tables, shouts and journals. what I want to do is pull records from them both and print them out with the newest …

Member Avatar for diafol
0
69
Member Avatar for Joshua Kidd

Hello, I have created a login page for my users. And it seems to not be working properly. [CODE] <?php include "inc/header.php"; ?> <div class="ContentHold"> <?php include "inc/globals.php"; if (isset($_POST['login'])) { $username = addslashes(strip_tags($_POST['username'])); $password = addslashes(strip_tags($_POST['password'])); if (!$username||!$password) { ?> <div id="NotifyUI"> Please Enter a Username and Password. </div> …

Member Avatar for Joshua Kidd
0
184
Member Avatar for chris666uk1

hi i hope some one can help me with this i am a real php noob i am trying to create a graph using mysql data with jpgraph it is going to show 7 temputures over a week so date at bottom from mysql with the diferent color lines showing …

Member Avatar for diafol
0
44
Member Avatar for lunacyfoundme

Im trying to pull two different account numbers from an ms query on an Oracle DB via ODBC with PHP. The problem is that two of the columns have the same name, e.g. ACCOUNT_NO [CODE]SELECT V_GUARANTORS2.ACCOUNT_NO, V_GUARANTORS2.GUARANTOR_NAME, V_GUARANTORS2.LOAN_NO, CURRENT_LOANS.ACCOUNT_NO, CURRENT_LOANS.LOAN_PRINC, MEMBERS.SHARES FROM LOOK.CURRENT_LOANS CURRENT_LOANS, LOOK.MEMBERS MEMBERS, CU.V_GUARANTORS2 V_GUARANTORS2 WHERE CURRENT_LOANS.ACCOUNT_NO …

Member Avatar for diafol
0
119
Member Avatar for whiteyoh

Hi all, I need to figure out how to validate the contents of a file. I know how to do it via mime and extension, but i could still upload, for example, a php file that would satisfy those checks. Any ideas? regards paul

Member Avatar for diafol
0
103
Member Avatar for morrisproject

I am using a dreamweaver form, which has some buttons on it. The button id is stored in the database as the conveyor number. When updating records i want to be able to click a button, which will use the button id to call for the correct record in the …

Member Avatar for morrisproject
0
134
Member Avatar for ken.atienza

I use the top table as a cart for 1 customer, and the bottom table for order. I wanted to get the productprice, productname, productqty and put it into orderdetail field. Help and suggestions are very much appreciated. Thanks in advance. *attached a pic of the tables.

Member Avatar for foreshadowed
0
75
Member Avatar for skanda_shekhar

Im trying to create a login page. I am using ob_start. I am still getting the following errors: Warning: Cannot modify header information - headers already sent by (output started at xxxxxxx) in xxxxxxx on line 57 Warning: Cannot modify header information - headers already sent by (output started at …

0
45
Member Avatar for SmallCucumber

hi,thank you for your attention.:P I am thinking of if there are some thing in php like event or trigger to inform another php file, :idea: that I'v just insert something into the mysql database . thank you for giving me some advices~ :)

Member Avatar for SmallCucumber
0
237
Member Avatar for FBG

I have a problem creating a commentbox in PHP. I've created this commentbox from a simple tutorial and created a database with MySQL and it works fine. The only problem is, the table won't expand when more text than the quantity that can fit on 1 row is send. Instead, …

Member Avatar for jcbphlip
0
252
Member Avatar for Nguafack

Fatal error: Call to a member function query() on a non-object in C:\wamp\www\socials\chapter11\registry\mysqldb.class.php on line 240 here is the code: [CODE] <?php /** * Database management / access class: basic abstraction * * @author Michael Peacock * @version 1.0 */ class Mysqldb { /** * Allows multiple database connections * …

0
80
Member Avatar for mshahidali

Earn Extra money from your home by doing ad posting jobs with Virtual online Jobs. 101% guarantee of income of your work. Earn per ad post you did. For More info and advertise your website visit: [url]http://adf.ly/2yWrC[/url]

0
142
Member Avatar for wolfgangcs

Since this is only one customer, how can I carry this $total from the submit button to the next page for INSERT into database punches page [CODE] <p>Is this the correct total of punches?</P> <form action="run_punches.php" method="post" > <?php $small = $_REQUEST['smallamount']; $medium = $_REQUEST['mediumamount']; $large = $_REQUEST['largeamount']; $total = …

Member Avatar for wolfgangcs
0
166
Member Avatar for dr.4030

i wanna create news page in my project & i have to many newsletters for showing but i wanna show the certain numbers of newsletters in each page for example in each page i want to show 4 number of them. nevertheless i wanna create <next> page numbers <previous> for …

Member Avatar for diafol
0
27
Member Avatar for sujitrulz

Hi fellas i am in desperate need of fototrix or photofunia type of script i have already googled many thing but couldnt real one which could solve my problem..Help Pls..

0
41
Member Avatar for aci.herobo

I am trying to set up a form for potential students to give their information for a language academay. When I tested the form with <input type="text" name"Nombre"> type of fields everything went fine. As soon as I tried to introduced drop down menus or typ radio elements the data …

Member Avatar for antonioatt
0
214
Member Avatar for thecameraman

hello, I am trying to learn to create a login and log out profile. I am fairly new to php and web coding in general. I know the basics. I found a tutorial that logs you into a profile and then logs you out. I want to be able to …

0
122
Member Avatar for bettybarnes

Hi guys i'm new to PHP, I have been doing a simple login system using php, and now I'm face with this error "Could not select database because Access denied for user ''@'localhost' to database 'loginsystem'" anyone knows how to fix this?

Member Avatar for bettybarnes
0
1K
Member Avatar for IWDesigns

hi everyone... not sure if this belongs here or in the javascript section as it uses both js and php? move it if needed. anyway....i have a script that pulls the faq results from my database and shows them in order of categorie. what im trying to do is use …

Member Avatar for Matthew N.
0
181
Member Avatar for silvercats

[url]http://uom-leos.blogspot.com/[/url] This has facebook comment boxes under every post.When Some one comment on one chat box or post,it duplicates to other chat boxes too.duplicate comments on every post.help! how should i edit the page?

Member Avatar for silvercats
0
33
Member Avatar for charlesliumy

Hi, I'm trying to built / link 3 drop down menu's: but I can't seem to get the 3rd drop down menu, and the answer below to work right. can someone please offer some guidance? [CODE]<body> <?php $p=$_GET["p"]; $q=$_GET["q"]; ?><br> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option >Select Your Topic</option> <option value="?p=1" <? if($p==1){ …

0
59
Member Avatar for garwil

Hi all... Am hoping someone can show me what I have done wrong here. I had a form with two select lists and one set of checkboxes that needed to get completed.. all well and good and it worked fine but I have eveolved the system and added a condition …

Member Avatar for garwil
0
580
Member Avatar for minitauros

In the ZEND Reference Guide I saw this: [CODE]$select = $db->select()->from('posts')->order('date_created DESC');[/CODE] Now I'm wondering: what does that second arrow do? What does using more than one arrow when working with an object do? And can I use it all the times? For example [CODE]$myclass->function()->anotherfunction()->hello;[/CODE]?

Member Avatar for minitauros
0
477
Member Avatar for shandoosheri

hi how can i include a range of numbered files like file1.php,file2.php,file4.php i have tried this code but it didn't work [CODE]<?php foreach (range(0, 7) as $fileno) { include "files/file" + $fileno + ".php";}?>[/CODE]

Member Avatar for cwarn23
0
119
Member Avatar for fernandodonster

How do we validate URL either with PHP/javascript? could u help me?for example, whether input text is in the format [URL="http://www.google.com/"]http://www.google.com[/URL] or not?

Member Avatar for prof php
0
610
Member Avatar for dr.4030

Hi, i wanna select some details from db and i wrote select query and i punted it in the while but, i wanna show the details in the columns instead of rows is there any body to help me ???? [CODE]$brush_price = 5; $counter = 10; echo "<table border=\"1\" align=\"center\">"; …

Member Avatar for broj1
0
60
Member Avatar for volum

I want to make a linkpage where visitors can enter their webpage (title-url-description) and there are a few downloadable scripts around, but all I have found are for reciprocal linking. Does anybody have a simple php script for this purpose?

Member Avatar for volum
0
298
Member Avatar for gaforhad

Hi all, I have two select field in a form.first one is "Zone" and the second one is "District".now what I want is that when I will select a zone from the first select field then only the destrict of the selected zone will be appeared in the second select …

Member Avatar for cwarn23
0
37
Member Avatar for JamesPublic

Hi all, I'm trying to insert an array (which I've decoded from a JSON object) into a mysql database (for the first time!) and keep coming back with a "Could not connect - Column count doesn't match value count at row 1" error message. My server and database connections are …

Member Avatar for JamesPublic
0
314
Member Avatar for davy_yg

[CODE] <?php echo $header; ?> <script type="text/javascript" src="view/javascript/ckeditor.js"></script> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <div id="content"> <div class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } ?> </div> <?php if ($error_warning) { ?> <div class="warning"><?php echo $error_warning; ?></div> <?php } ?> …

Member Avatar for davy_yg
0
263
Member Avatar for wonderlhily

[code=php] <?php include("C:/xampp/htdocs/mySalon/connect_database.php");?> <?php if(isset ($_POST ['username']) && $_POST ['password']){ $username = $_POST['username']; $password=$_POST['password']; $query=mysql_query("SELECT * FROM admin WHERE username='$username'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while ($row=mysql_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } //check to see if they match! if ($username==$dbusername&& md5 ($password)==$dbpassword) { header ('Location: http://localhost/mySalon/admin/admin_page.php'); $_SESSION['username'] = $username; } else echo …

Member Avatar for cwarn23
0
142
Member Avatar for ebanbury

Hi This is just a straight-forward dynamic field, but I still can't seem to get it to stay sticky....I have tried all kinds of things, including [CODE]if (!empty($add_area)) echo......[/CODE] or equivalent fieldnames... Any help would be really appreciated...many thanks [CODE] <label for="add_area"></label> <select name="add_area" id="add_area"> <?php do { ?> <option …

Member Avatar for ebanbury
0
142

The End.