39,395 Topics

Member Avatar for
Member Avatar for gptArun

hello there, need urgent help in ffmpeg, shows no error. but not working for me :( i tried out so many examples, after that i found below code - ffmpeg and other paths are also fine. our hosting is from - [url]www.hostupon.com[/url] [code=php]<?php define('PHPVIDEOTOOLKIT_EXAMPLE_ABSOLUTE_BATH', dirname(__FILE__).DIRECTORY_SEPARATOR); // Set our source file …

Member Avatar for gptArun
0
176
Member Avatar for o12357

Hi everyone, i would like to know whether the result of a mysql query executed from one php page will be available to another php page on the same site. thanks!

Member Avatar for o12357
0
69
Member Avatar for bhanu1225

Hello All ... Bit information from your side. Which PHP version will support on Mac OSX ?. I am using Mac OS 10.5.7. If so, what are requirements for designing an application ? Like (web server , database server , etc ...). With Best Regards, Bhanu.

Member Avatar for chrishea
0
88
Member Avatar for sarithak

Hi frnds... here i am phasing a small problem...after successful completion of all my queries ,it is not redirecting to back page..plz check this one.... [B][U] Need Logic[/U][/B] At the bottom of this code i execute 9 sql queries..all are in same manner..If there is any logic in this plz …

Member Avatar for somedude3488
0
404
Member Avatar for sereYboth

Hello evryone! i am very new to PHP! I study it with ebook: PHP & MySQL For Dummies , 3rd Edition! Once i try and have copy the whole code from the book like this(write in notepad) _______________________ [code=php]<html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <p> …

Member Avatar for ayesha789
0
122
Member Avatar for ayesha789

How we can use current time instead of '15:33:56' [ICODE]now()[/ICODE] Function or [ICODE]time()[/ICODE] but it gives wrong time in AM and PM. [CODE=php]<?php function twentyfourToTwelve($time) { return date('g:i:sa', strtotime($time)); } /*** Example usage ***/ echo twentyfourToTwelve('15:33:56').'<br />'; echo twentyfourToTwelve('15:33').'<br />'; echo twentyfourToTwelve('15.12').'<br />'; echo twentyfourToTwelve('2:33:56').'<br />'; echo twentyfourToTwelve('15:33').'<br />'; ?>[/CODE]

Member Avatar for ayesha789
0
2K
Member Avatar for tulipputih

Hi..is this a correct SQL statement to display details of a record from table and column that is variable [code=PHP]$query= (SELECT * FROM $_GET['$tablename'] . "' WHERE id = '" . $_GET[' $row2[$cols'] . "' ;[/code] the id and table were passes correctly on the URL but the error is …

Member Avatar for cwarn23
0
98
Member Avatar for cee_karthi

I need to get the source code of webpage which is embeded with AJAX i.e. The web page is designed using PHP but the contents frame is designed using AJAX and the PHP pages is made to embed with this content page so we cant able to get the HTML …

Member Avatar for Fest3er
0
81
Member Avatar for sarithak

Hi frnds... Here i am going to display albums in a table...But, all albums is display in only one row.Its looking not good in my page...So,i want to display in 2 or 3 rows..plz change this code as my requirement.. .[CODE] <table width="142" height="188" border="0" align="center"> <tr align="center"> <?php $gquery="SELECT …

Member Avatar for sarithak
0
114
Member Avatar for ayesha789

Passsword Strength Checker [CODE=php]<?php function testPassword($password) { if ( strlen( $password ) == 0 ) { return 1; } $strength = 0; /*** get the length of the password ***/ $length = strlen($password); /*** check if password is not all lower case ***/ if(strtolower($password) != $password) { $strength += 1; …

Member Avatar for ayesha789
0
253
Member Avatar for OmniX

I would like to make a button that will save the current webpage you are viewing like clicking FILE>SAVE AS in IE, FF, etc. Once clicked you can "precode" the default name of the file based on the variables used in the webpage. Also I if possible I would like …

Member Avatar for digital-ether
0
510
Member Avatar for mustafaneguib

hey all i need some help in redirecting my page. following is my code. here is the scenario: when the user enters the admin panel from another website set up on a different host/server (a cms actually) the user is redirected to this page and the data from the main …

Member Avatar for digital-ether
0
170
Member Avatar for uesuva

I'm having issues as well; I have a database jokes with a couple rows already and am trying to insert another row (the ID is auto incrementing). This is what I have, as you can see I'm trying to insert a value from a form. Here's the form [code] <FORM …

Member Avatar for uesuva
0
92
Member Avatar for shadiadiph

I am having problems with a data entry issue i have a field in my database which is called headline it is set to varchar 255 when i insert for example something with for eample. [code] The 'dogs' are very big. [/code] the code is sent by normal $headline=$_POST["headline"]; then …

Member Avatar for uesuva
0
300
Member Avatar for erms

Hi, I am having trouble replacing this pattern. Could someone help please? FROM: (URL="http://google.com") google website (/URL) The sign () is actually [] but vbulletin is changing it to a link, so made a () sign instead. TO: <a target="_blank" href="http://google.com"> google website </a> Thanks :)

Member Avatar for erms
0
71
Member Avatar for manizzi

Hey guys, am learning php/mysql and am trying to learn how to do the following. I have a database, and a form with 3 fields. I want fields 2 and 3 to be filled with data from mysql table immeadiately after field 1 receives a value. I think I am …

Member Avatar for manizzi
0
86
Member Avatar for nigelburrell

Whenever I echo or print a string containing an email address to my webpage the HTML code automatically parses the text and shows it as a "mailto" link. If I use... echo "Hello"; it prints Hello as expected on the webpage. If I use... echo "hello@whatever.com"; it now appears as …

Member Avatar for almostbob
0
194
Member Avatar for Stefano Mtangoo

I want to make simple Bible web that will be querying from database. It is boggling my Mind how to populate the database. The Bible have the following division Bible have 66 books Each book have chapters and Each chapter have verses Please help me, I have stucked

Member Avatar for chrishea
0
74
Member Avatar for kingben

Hi All... Any way to auto-increment the last inserted numerical value in the field "id" and then insert the newer value (id+1) in the database upon submitting the form ??? ...... How do i resolve that last submitted "id" ?? ..... I thought of doing that using a txt file …

Member Avatar for kingben
0
99
Member Avatar for webish

Hi everybody, Webish is glad to join you here at Daniweb. I'm an IT entusiast and I believe it's gonna be a:) worthwhile experience in here.

Member Avatar for kvprajapati
0
117
Member Avatar for Daniello555

Hey guys. I'm having a hard time here figuring out how to subtract two values from the same row in one query. Here's what I'm trying to do. [ICODE] $newcredits = $points_me->points - $_POST['amount']-5; $result = mysql_query("UPDATE `users` SET `points` = '".mysql_real_escape_string($newpoints)."' WHERE `name`='".mysql_real_escape_string($_SESSION['Name'])."'"); [/ICODE] As you can see, $_POST['amount'] …

Member Avatar for kvprajapati
0
55
Member Avatar for khanayub_chand

I have installed Mysql 5.1 and it did install. But when i configured mysql, It gives me an error while staring the Service saying "Could not start the MySQL service". I have Reinstalled the Complete Mysql by deleting all the registry keys but still the same error is being displayed. …

Member Avatar for digital-ether
0
77
Member Avatar for ayesha789

Hi, I want to calculate age of the person using this code [CODE=php]<?php /*** a date before 1970 ***/ $dob = strtotime("april 20 1961"); /*** another date ***/ $tdate = strtotime("june 2 2009"); /*** show the date ***/ echo getAge( $dob, $tdate ); ?>[/CODE] but it gives error [ICODE]Fatal error: …

Member Avatar for digital-ether
0
160
Member Avatar for mbabaali

i have a problem with this code amay any one help me am doing a class project but stuck here is the code its bring an error Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in C:\wamp\www\kawempe_HC\staf.php on line 7 Warning: mysql_fetch_row(): supplied argument is not a …

Member Avatar for mbabaali
0
101
Member Avatar for plgriffith

Hey guys. I am running a php script (locally) which runs through a loop several hundred times. Each time through the loop the same computation is done with the exception of two input variables being different. The input variables are obtained with a MySQL query based on the counting variable …

Member Avatar for digital-ether
0
122
Member Avatar for ayesha789

Hi, Its Ayesha, I am new to PHP and MYSQL , I am working on a Project in which I have to give rights to one user to UPLOAD a JPEG picture Using Browse . So Any one can Help? I want to store my JPEG Files in a Folder …

Member Avatar for diafol
0
104
Member Avatar for sassenach

I am using wysiwygPro editor and i want to be able to display the menu titles coming from the database. This is an example layout: [code] $editor->links = array( array('title'=>'Home', 'URL'=>'/'), array('title'=>'About Us','URL'=>'/about/', 'children'=>array( array('title'=>'Company History','URL'=>'/about/history.php'), array('title'=>'Franchise Information','URL'=>'/about/franchise.php'), array('title'=>'Shareholders Information','URL'=>'/about/shareholders.php'), )), array('title'=>'Services', 'URL'=>'/services/'), array('title'=>'Contact Us', 'URL'=>'/contact/'), ); [/code] So this …

Member Avatar for sassenach
0
161
Member Avatar for redhotspike

22 Hours Ago | Add to redhotspike's Reputation | Flag Bad Post I have never used PHP before. I'm pretty hardcore with (x)HTML, JavaScript, CSS, and I also know C++. Here's the thing - I need to create some sort of code that receives information from the back end of …

Member Avatar for redhotspike
0
110
Member Avatar for Acute

Hello world!:)) Does anybody know how to send icq message in PHP?? Is it possible to send message to icq number like 433400749??

Member Avatar for chrishea
0
109
Member Avatar for gingank

Hi can anyone help me check the code for this why cant send multiple attachment with this code got anything wrong. Help me please [CODE]<?php $to=stripslashes($_POST['to']); if($to == '0'){ $to='mail1@mail.com'; $ok=@mail($to, $subject, $body, $headers); }else { $to='mail2@mail.com'; $ok=@mail($to, $subject, $body, $headers); } $from=$_REQUEST['from']; $subject=$_REQUEST['subject']; $ip=$_POST['ip']; $phone=$_REQUEST['phone']; $body=$_REQUEST['problem']; $fields = array(); …

Member Avatar for chrishea
0
126
Member Avatar for m-soft

Hello people, Do you know how can I make the links from a phpBB forum to appear in mode_rewrite ? Thanks!

Member Avatar for m-soft
0
73
Member Avatar for stevenpetersen

[code]<script languae="PHP"> open_database("location","username","password"); display_page("PAGE_ID"); close_database(); </script>[/code]

Member Avatar for stevenpetersen
0
104
Member Avatar for itnagusak

i want to write data accepted in a form to a text file. this is the code i am using. [code] $file=fopen("data.txt","a+"); fwrite($file," whatever i want written"); fclose($file); [/code] but nothing is being written to the file. the text files are in the same place as the php pages. does …

Member Avatar for itnagusak
0
116
Member Avatar for artech

Hi all, I'm looking for some direction in how to approach this problem. $arr = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20); I need to create a second array using the values in the first array in …

0
48
Member Avatar for sarithak

Hi frnds.. Mouse moving with background image...i dont know how do it...plz give some suggestions...the theme should be image... ex:[B]NDTV.com[/B]..just check this website.. Thanks in advance...

Member Avatar for aashishn86
0
144
Member Avatar for OmniX

What I require is to replace \/:"?<*>| with a space. I have done similar statements before but I have complete brain freeze at the moment. Hoping one of you can jog my memory. Always hated regex expressions never understood the logic behind them minus the A-Z and 0-9 and then …

Member Avatar for ShawnCplus
0
167
Member Avatar for webish

Hi guys, I'm intending to create an online forum/blog application. An application almost similar to 'daniweb' forums. My question is, what sever set-up is the most suitable for this i.e asp.net (c#, vb), php-mysql, asp-java or any other. Please advice also on how to approach the coding and would even …

Member Avatar for diafol
0
101
Member Avatar for jethvaketan
0
6
Member Avatar for jino

Hi all, I would like to know that is it possible to change the order of the payment review description fields displayed in the paypal after successful checkout. Now it is displaying as , Item total sales tax shipping and handling shipping discount. I would like to change this as …

0
56
Member Avatar for gretty

Hi :) I want to begin learning PHP programming, can you tell me what I will need to do it? I have downloaded: - NetBeans IDE 6.5.1 What else do I need? For example; on the numerous tutorials I have looked at, one tells me I need to download echo, …

Member Avatar for diafol
0
212
Member Avatar for tulipputih

Hi, I am trying to apply ranking to the output of my search result based on the relevance of the searchterm & record in database. when I run the below code..there was a query error [code=php]$searchterm=$db->escapeString($_GET['searchterm']); $result = $db->query("SELECT subject, learningArea, ability, MATCH(subject, learningArea, ability) AGAINST('$searchterm') AS relevance FROM lesson …

0
48
Member Avatar for ayesha789

Is it possible to design a search box which suggest the values from the database. Its very cool. can show the data from the page but its difficult to show from the MYSQL Database Table. If you have any example please share with me. [CODE=html]<html> <head> <script type="text/javascript" src="clienthint.js"></script> </head> …

Member Avatar for ayesha789
0
155
Member Avatar for coolest_987

hii everybody can any one tell me how to read RSS of any page. Any HELP will be appreciated.

Member Avatar for farhan.foxtrot
0
98
Member Avatar for prawin@123

Hi I am new bee to JS and PHP, i have a code to display the images from directory in the path C:\wamp\www\prawin\new\locations\test\admin But this code didnt works . can any one help me. My code is [ICODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> …

Member Avatar for mysoogal
0
119
Member Avatar for littletechie

Hello all I am creating a site for user registration to a class. As classes are added and removed, I have a dynamic table that updates to list the available dates. [code=php] $result = mysql_query("SELECT date, time, type FROM class"); while($row = mysql_fetch_array($result)){ printf("<tr>"); printf("<td><a href = 'registration.html'>%s</a></td> <td>%s</td> <td>%s</td>", …

Member Avatar for littletechie
0
118
Member Avatar for sarithak

Hi frnds... When i was inserting data into mysql table, i used [B]NOW()[/B]... It displays as today date and time..[B] DD-MM-YYYY hh-mm-ss[/B] ... Now, I want to fetch all records from table, which having date as today...i.e [B]DD-MM-YYYY[/B] in this formate... Plz solve this problem... Thanks in advance..

Member Avatar for diafol
0
89
Member Avatar for christophertheo

Hi i am new to web developnment and fortuantely i was able to create a website for my friend i have used dreamweaver to do the entire site in HTML now i am using an enquiry form where a person types his info and submits the same which needs to …

Member Avatar for christophertheo
0
355
Member Avatar for sarithak

Hi frnds.... I need code for PHP AND MYSQL POLL... It should contain admin part for inserting poll quetion, and saving all data into database.. In the user part also having graphical bar representation... ex:This is the way i want.. [B] [url]http://www.ndtv.com/news/polls/poll_details.php?pollID=505003&poll_saved=1#postcommentarea[/url][/B] Plz give some URLs regarding POLL.. or Plz …

Member Avatar for sarithak
0
153
Member Avatar for lifeworks

Hi My problem is actually in an ActionScript3 system, but I think the concept is the same. I am creating instances of an object repeatedly, and I want to give each new instance a unique name. As the loop runs, it calls a function which creates a new instance. Currently, …

Member Avatar for somedude3488
0
68
Member Avatar for gagan22

Hi all, I am in confusion i am using calender in one of my application but calender is working in all other browser but it is not working in IE . In this i am using two calender in form one calender for[B] date from[/B] and other calender for [B]date …

Member Avatar for diafol
0
91

The End.