39,323 Topics
| |
i want to create dynamic swf files using swf file template. i have an embed code like this <EMBED src="http://mysite.com/120_600.swf?inner=http://mysite.com/brand/files/wirelessidea/79/BANNER-DIVERZONA_120X600.swf&url=http://mysite.com/trackingcode.php?aid=1&linkid=F1" quality=4 width='120' height='600' > </EMBED> in this [url]http://mysite.com/120_600.swf[/url] file is empty. now i am passing inner&url parameters to this swf file. automatically create swf file in 120_600.swf. when ever we … | |
hi, here i was trying to create table with primary key and foreign key. i had used follwing codings...but getting error like[B]" Can't create table 'test.book' (errno: 150)"[/B]..thanku 4 any help [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title>Create Table</title></head> <body> <? /* Change next two lines */ $db="test"; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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... … | |
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 … | |
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? | |
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 … | |
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 … | |
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"); … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 | |
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 … | |
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. | |
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 … | |
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~ :) | |
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, … |
The End.