52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for suhaildawood

I am having some trouble with this code. I want have an onclick function on a div and I want to call this function. Only the 'if' section of the code works. If the #about opacity is anything other than 0.47, it still executes the 'if' code, but not the …

Member Avatar for suhaildawood
0
1K
Member Avatar for jacksantho

Hi, I dont know, what mistake i made in my code. [CODE][B]test1.php[/B] <?php namespace MyNameSpace; class A { public function B() { echo "san"; } } ?>[/CODE] [CODE][B]test2.php[/B] <?php include('test1.php'); $test=new MyNameSpace::A(); $test->B(); ?>[/CODE] [B][url]http://localhost/test2.php[/url] Error: Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in C:\xampp\htdocs\MyNameSpace\test2.php on line …

Web Development php
Member Avatar for gilgil2
0
5K
Member Avatar for gilgil2

Hi I have a database of information and the code to get that data out of the database based on the url, it will be some like [url]www.website.com/thekooks[/url] and then will display the information in the database for them. The bit I am struggling with is where do I put …

Web Development mysql php
Member Avatar for phorce
0
130
Member Avatar for PomonaGrange

Hello all, I am looking for a bit of code to make an input field into a calculator. The main difference from most scripts is I want it with no buttons. I am hoping to use the number pad on the keyboard. So, for example, I would like an input …

Web Development javascript
Member Avatar for niranga
0
339
Member Avatar for Mogradjinn

I'm trying to set up a timeout test on a selection of files. The files run the test via an include, which contains the following: [CODE]$inactive = 20; /* check to see if $_SESSION['timeout'] is set */ if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); …

Web Development php session
Member Avatar for Mogradjinn
0
337
Member Avatar for furlanut

I want to insert values into 3 different tables with auto_increment of primary key. My code below creates 2 records for the first table and 1 each for the second and third AND a Failure 'duplicate entry xxxx for key PRIMARY' for the second and third. The ADD RECORD does …

Web Development php
Member Avatar for diafol
0
301
Member Avatar for gilgil2

Hi, I am trying to make a link based on info stored in MySQL, the code I have got so far is [CODE] if (isset($_POST['search_now'])) { $result = mysql_query("SELECT * FROM bands WHERE BandName LIKE '%$BandName%'"); $page = "<a href=\"http://www.website.com/$row['PageName']\">$row['BandName']</a>"; while($row = mysql_fetch_array($result)) { echo 'Band Name: '; echo $row['BandName'] …

Web Development mysql php
Member Avatar for gilgil2
0
150
Member Avatar for NullReturned

So I'm having this weird issue, where I can do SELECT statements and INSERT statements just fine, but when I do this UPDATE statement, it sorta works. It runs without errors, and even outputs that 1 row is affected. But when I check the MySQL, nothing is updated. I've echo-ed …

Web Development mysql php
Member Avatar for mikulucky
0
288
Member Avatar for polinolin

Hello dude. Happy New Year. I want to asking about generating primes algorithm. Can you advice tell me what the fast generating primes algorithm except Sieve of Eratosthenes algorithm? thank you. i want to apply the algorithm to my cryptographic system..

Web Development algorithm php
Member Avatar for polinolin
0
109
Member Avatar for gilgil2

Hi, I am having trouble echoing something into a url. The code I've got is: [CODE] <?php $code = "kooks"; echo '<a href="http://website.com/'$code'">The Kooks</a>'; ?> [/CODE] But I get the message: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /hermes/web11b/b146/moo.3finking/unsignedgigs/test.php on line 3 Thanks for your help

Web Development php
Member Avatar for gilgil2
0
104
Member Avatar for liphoso

I have the code below but it does not do what i want it to do. [CODE] "UPDATE products SET quantity = quantity - 1 WHERE product = $'product'"; [/CODE] I have a data base called products with field quantity, now i do not know how to code such that …

Web Development html-css php
Member Avatar for hari.sarvothama
0
143
Member Avatar for ALFA-FOXTROT

I'm having the biggest headache with this code.... Im trying to show the data correctly but it's not showing as i want... Hope you can help me out.... I have the HTML: [code] <table border="0" cellpadding="4" cellspacing="0" class="display" id="results"> <thead> <tr> <th width="10%">Id</th> <th width="10%">Time</th> <th width="10%">User</th> <th width="10%">Name</th> <th …

Web Development json php
Member Avatar for ALFA-FOXTROT
0
464
Member Avatar for xecure

I have a database full of user. This is roughly how the database looks: [CODE]| username | sex | birthdate | zip_code | |----------+-----+------------+----------| | coolUser | M | 02-14-1987 | 90210 | | blueUser | F | 06-16-1982 | 10011 | | . | . | . | . …

Web Development mysql php seo sql
Member Avatar for Sogo7
0
396
Member Avatar for mcwebalizer

I make an image administrator with PHP / MYSQL / AJAX. I try upload image - success! After uploading image I refresh page. uploaded image has added to list. I press delete button - image removes from list. But why it doesn`t remove from mysql list??? File can be downloaded …

Web Development file-system image php
Member Avatar for swapy
0
129
Member Avatar for davy_yg

Hi, I am having problem in receiving e-mail through contact form. contact_us.php [CODE] <h2>Contact Us</h2> <br /><br /> <form action="send_email1.php" method="POST"> <table border="0" cellpadding="2"> <tr> <td>Nama Lengkap: </td> <td><input name="nama" type="text" value="" size="30" /></td> </tr> <tr> <td>E-mail: </td> <td><input name="email" type="text" value="" size="20" /></td> </tr> <tr> <td>Nomor Telepon: </td> <td><input …

Web Development php
Member Avatar for simplypixie
0
117
Member Avatar for jeraldmuthu

Hi, i need to retrieve the combo box value to the string parameter in the same page parameter for checking condition is it possible in JSP ? [CODE] <%@ page import="java.io.*"%> <%@ page import="java.sql.*"%> <%@ page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page language="java" session="true"%> …

Web Development java-jsp oracle session
Member Avatar for peter_budo
0
239
Member Avatar for khadotra

How we can develop page like "abc.php=id=" how we can get access data? Please tell some tutorial so i can learn

Web Development php
Member Avatar for sakarora
0
100
Member Avatar for fahimcse2k9
Member Avatar for Shillz

I have been trying to send mail through my c# website, but kinda stuck up somewhere and not able to figure out the problem. :-/ M getting SmtpException saying "Failure sending mail". Please help.:icon_confused: [CODE] MailAddress fromAddress = new MailAddress("abc@gmail.com", "n1"); MailAddress toAddress = new MailAddress("xyz@yahoo.co.in", "n2"); const string fromPassword …

Web Development asp.net c# email
Member Avatar for Shillz
0
208
Member Avatar for kamilacbe

Hi .. i have a login page which performs some operation and finally when i log-out that page it has close all the session and navigate to the home page , but then when i click back button in IE it should not post back the page again.. thanks in …

Web Development asp.net session
Member Avatar for websoftcreation
0
173
Member Avatar for LegoBeast

Dear All I have made a successful html form with mail.php "thing" my only problem is I want to be able to redirect to 2 different thank you pages based on a value entered in the html form. Value field is "Type1" and people can enter either burger, farm or …

Web Development email html-css http-protocol php
Member Avatar for urtrivedi
0
250
Member Avatar for divsok

why this code shows <b> tags? ---------------------------- <html > <head> <title>My Editor</title> <script type="text/javascript"> var displayText=""; function boldText(){ oForm = document.forms[0]; oTextarea = oForm.elements["txtArea"]; textarea_val = oTextarea.value; oTextarea.value = textarea_val.bold(); } </script> </head>

Web Development javascript
Member Avatar for divsok
0
318
Member Avatar for prashanth18

Hello All, I have this situation. 1. I have one Text box (say first) and add button. 2. If i click add, one text box should be added + one delete button. 3. if i click add again, second text box should be added + one delete button. and so …

Web Development javascript
Member Avatar for kunalkrishneel
0
6K
Member Avatar for marcus03

Hello, I'm having bit trouble about this thing I made I'm trying to redirect the page on 'changing the password' with the use of ACCT_CODE column from member table of alumni database but I can't seem to redirect it. can someone please help me and teach me where did I …

Web Development php
Member Avatar for mikulucky
0
80
Member Avatar for shielaolid

Hello there, can anyone help me? i want to put a restrictions in my application form. for example, "Please complete all the fields" and here's my code: [CODE]<?php $posapp = $_POST['txtapplied']; $fname = $_POST['txtfname']; $mname = $_POST['txtmname']; $lname = $_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; …

Web Development php
Member Avatar for mikulucky
0
118
Member Avatar for shielaolid

Hello there, Can anyone help me in my problem? My problem is, i need to display a record in the textbox, but it's not working. the record(database) and the textboxes. Thanks :D

Web Development php
Member Avatar for phorce
0
147
Member Avatar for jabeen123

if column name is course and check this column to db mysql that if course is match with text field name course so not enter this record in mysql db for exmple i m entering already csc1 course and im type csc 1 again then show message "you are already …

Web Development mysql php
Member Avatar for diafol
0
78
Member Avatar for stoopkid

My program is a simple client database that holds information on tenants. Each tenant has a LONGBLOB column called 'notes' to hold updated information on them. For tenants that have a long list of notes, when the form is submitted the site actually goes to a 404, so their profile …

Web Development first-post php
Member Avatar for stoopkid
0
270
Member Avatar for phorce

Hello, having a slight problem here.. I have a string, that I need to do character analysis on - Basically finding out how many times "B" is in the text and then ordering this from (lowest to highest). Now I can get the results, but, I don't know how to …

Web Development php
Member Avatar for phorce
0
129
Member Avatar for shamsidah

hello everyone, i have a problem where i cannot run a php application in the IE. when i run, all the interface not displayed and function. is it true, i need to change the setting at internet option or else...

Web Development php
Member Avatar for diafol
0
118
Member Avatar for arifwahab

Hi all.. I hope someone here can help me to solve my problem...I try to serach and get the solution from google..but it not help much... when I click button on page..the data will inserted twice in my database... i using select and insert statement in same connection... also have …

Web Development asp.net sql
Member Avatar for sufyan2011
0
189
Member Avatar for RazorRamon

Quick question on PHP and HTML rules. Is the code below valid? I want to use php in the head section and body or a website i'm building but i dont want to add extra work for myself. [CODE] <html> <title>HTML with PHP</title> <body> <h1>My Example</h1> <?php include config.php $here=$_GET['city']; …

Web Development html-css php
Member Avatar for diafol
0
160
Member Avatar for jpknoob

Hi all, i seem to be having an issue with a calculate function i have made,. the script works fine in all browsers except Firefox! I was hoping someone could lend a hand and explain what I'm doing wrong. The JS: <code> <script type="text/javascript"> //Calculator formulae function multiply(){ Form.result.value = …

Web Development javascript
Member Avatar for jpknoob
0
293
Member Avatar for davy_yg

Demo Send Email -------------------------------------------------------------------------------- Kepada : Kamu Subject : Additive Pesan : Pesan Dari : david Warning: require(PHPMailer5\class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/send_email.php on line 40 Fatal error: require() [function.require]: Failed opening required 'PHPMailer5\class.phpmailer.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/send_email.php on line 40 send_email.php [CODE] <!DOCTYPE …

Web Development file-stream php
Member Avatar for davy_yg
0
184
Member Avatar for HemZone

I'm having problems regarding conversion of video to flv format. Below is my command for conversion, but it seems to convert the video to flv but the file size remains 0 KB, what could be the problem, please suggest. My command: $command =$ffmpegPath . " -i " . $srcFile . …

Web Development php
Member Avatar for HemZone
0
150
Member Avatar for geneh23

Hey everyone, I just have a question about limiting characters on a web page..I have a blog that I've made on my local server..for test purposes and I was wondering if there is a way to have the same thing display on another part of a page like a blog …

Web Development php
Member Avatar for shahbaz13
0
162
Member Avatar for peterpa

hello , can any one tell me how can i update a password using procedure in mysql , if the oldpassword is same other wise get any mgs by the procedure . plssssssssss help me out

Web Development mysql php
Member Avatar for peterpa
0
113
Member Avatar for jonnyboy12

Hello all . I am working on a small search for my website. It requires that i query the database and then display search results. In my database i have multiples. For example john on one row and john on the other. I want to display both of them. For …

Web Development display mysql php
Member Avatar for urtrivedi
0
138
Member Avatar for Buppy

Hi, I have 2 models in my cakePHP app - let's say ParentModel and ChildModel. They have hasMany association. The parent db table contains about 4000 records, but the child table about 90000 records. I want to delete related datas from tables by using this: [CODE]$this->ParentModel->deleteAll(array('ParentMode.somefield' => 'x'));[/CODE] Works well …

Web Development php
Member Avatar for pritaeas
0
800
Member Avatar for Dumb Fish

Hi, i got wrote the DataFormatString="{0:dd/MM/yyyy}" but the date format still in "dd-MM-yyyy" .What should i add in to turn to dd/MM/yyyy?? Thanks.

Web Development asp
Member Avatar for PotaZinga
0
125
Member Avatar for zeeshan_kust

I have a page that lists records from a database call. I want to have an 'edit' link on each row that will popup a Jquery dialog so that the row can be edited. My question is how do I pass the data from the selected row to the jquery …

Web Development javascript-jquery php
Member Avatar for anggun
0
402
Member Avatar for reibi

Dear all, I am a newbie in codeigniter. As I had downloaded n installed the codeigniter and it has displayed the default message. Now I had created the new file called hello inside the controllers folder as told in the codeigniter manual. And I browze my folder as [url]http://localhost/code/index.php/Hello[/url] but …

Web Development php
Member Avatar for reibi
0
130
Member Avatar for chicnstu012

Hello all, being relatively new to PHP, I'm in search of some help regarding displaying data that is contained in my database. It's a very simple script that allows users to type in their alias and their comment on a website. Here's the code I'm using to display the data: …

Web Development php
Member Avatar for diafol
0
100
Member Avatar for aaro

hey i have a javascript datepicker working on my site but when i try to store the data on mysql im having trouble setting the primary key from the parent table into a new id_item. i pass the id in the url eg somepage.php?id=1 it still doesnt store the date …

Web Development php
Member Avatar for hari.sarvothama
0
375
Member Avatar for vijaykavin10

Hi all, I am using IMAP PHP,I get(downloaded) the messages from the mail as well...But if the mail contains any [COLOR="Green"]attachments like PDF or HTML files[/COLOR] it throws a encoded form of the attachment...I need to the the decoded form of the output...If any one is having a piece of …

Web Development pdf php
Member Avatar for vijaykavin10
0
379
Member Avatar for gilgil2

Could anyone tell me why the following is not working? [CODE] <html> <body> <? $link = mysql_connect('localhost', 'username', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_select_db('database'); if(isset($_POST['username']) && !empty($_POST['username']) AND isset($_POST['password']) && !empty($_POST['password'])){ $username = ($_POST['username']); $password = ($_POST['password']); $search = mysql_query("SELECT username, …

Web Development php session
Member Avatar for Stefano Mtangoo
0
222
Member Avatar for Xtremefaith

Trying to accomplish a simple test for a project I'm working on. [B]The Form[/B] [CODE=html] <form id="agreement_text_form" action="" method="POST" onsubmit="updateAgreementText(); return false"> <textarea name="agreement_text" id="agreement_text"></textarea> <input type="submit" value="Update Agreement Text" /> </form> [/CODE] The textarea has a WYSIWYG added to it (not needed but just in case here is that …

Web Development html-css javascript
Member Avatar for Troy III
0
2K
Member Avatar for akhtar.ali803

my code is following [CODE]<?php $conn = mysql_connect("localhost","rentwall_rentwal",")X7zlBx)XgZ5") or die ("Could not connect MySQL"); mysql_select_db('rentwall_rentwall',$conn) or die ("Could not open database"); function post($postname) { $posted = mysql_real_escape_string($postname); return $posted; } ?> [/CODE] it gives notification that Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rentwall_rentwall'@'localhost' (using password: YES) in C:\wamp\www\site2\db.php on …

Web Development php
Member Avatar for phorce
0
167
Member Avatar for blee93

I just started learning PHP and I tried looking for answers, but couldn't find any. When i type in [CODE]<?php echo '<p>Order processed.[/CODE] embedded into HTML, it works fine, but when I put [CODE]<?php echo '<p>Order processed.</p>' ?>[/CODE] it always has the closing tag '?> shown in the browser. Is …

Web Development open-source php
Member Avatar for mikulucky
0
398
Member Avatar for shnips6

I have created an online form and am trying to post the info into a mysql database and I keep getting back a query error. Below is my PHP code. If anybody can help me, that would be great. Thanks a lot. [CODE] <?php $property_type = $_POST['property_type']; $number_of_bedrooms = $_POST['#_of_bedrooms']; …

Web Development mysql php sql
Member Avatar for diafol
0
290

The End.