39,323 Topics

Member Avatar for
Member Avatar for muralibobby2015

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 …

Member Avatar for muralibobby2015
0
150
Member Avatar for sibymary

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"; …

Member Avatar for Raj sahaniya
0
137
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
139
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
129
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
135
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
119
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
211
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
139
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
67
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
121
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
132
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
575
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
149
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
112
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
131
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
251
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
206
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
215
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
72
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
66
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
181
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
42
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
118
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
101
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
133
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
72
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
42
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
234
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
248

The End.