39,395 Topics
![]() | |
[B]Hi Guys I have the following code for html and php. when i click on the button to calculate bmi it doesnt work.... can someone please help it is urgent...[/B] Heres html code: [CODE]<html> <head> <script type="text/javascript"> function Calculate(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code … | |
I know that this has been discussed several times before and that "PDO (PHP Database Object) works with multiple databases", "PDO supports dynamically generated prepared statements" (meaning that it can bind parameters from an unknown amount of parameters, which MySQLi can do with a bit of trixing). But I've never … | |
Hi I'm just learning how to use php and I'm testing out how to use a SQL trigger. What I need to do is print out the fields value before the trigger and then again after the trigger has been activated and changed the value. When I try to do … | |
With over 15,000 wood names in the wood knowledge base I am building (at [url]www.prowebcanada.com/taxa[/url]) it has become practically essential to add a versatile search engine to extract queries from the MySQL files. I started with an online template and have brought it quite a way along but some things … | |
Hi I want to make a form that has multiple search option.I want to give a drop down box as well as check boxes.If the user selects the field in dropdown box the search will be done through that field and if the user wants to select through multiple fields … ![]() | |
Hi, I have one simple problem. PHP (CodeIgniter) code: [CODE=php] $query = $this->db->where('filename',$filename)->select('valid_until')->get('jos_reklama_banners'); $row = $query->row(); $valid_until = $row->valid_until; if($valid_until > time()) { $sql = "UPDATE `jos_reklama_banners` SET valid_until = valid_until + ? WHERE `id` = ?"; $query = $this->db->query($sql, array($days*86400 ,$filename)); //viena diena 86400 sekundziu //echo 'daugiau'; } else … | |
hi i have a code like this: <form action="11.php" method="post"> <table border="1"> <tr> <th bgcolor="#666600">Action</th> <th bgcolor="#666600">Name</th> <th bgcolor="#666600">Key Skills</th> <th bgcolor="#666600">Qualification</th> <th bgcolor="#666600">email</th> </tr> <?php include("connection.php"); $q="select * from tbl_faculty"; $result=mysql_query("select * from tbl_faculty"); while($row=mysql_fetch_array($result)) { echo "<tr><td><input type='submit' id='$row[faculty_id]' name='info' value='Info'><input type='submit' id='$row[faculty_id]' name='edit' value='Edit'><input type='submit' id='$row[faculty_id]' name='Delete' … | |
Hello, i have create a form for uploading file and it's works, but i dunno how to make people can download it.i hope someone can helps me.. | |
[CODE] $date = mktime(1, 1, 1, $month, date("d"), $year); $first_day_of_month = strtotime("-" . (date("d", $date)-1) . " days", $date); $last_day_of_month = strtotime("+" . (date("t", $first_day_of_month)-1) . " days", $first_day_of_month); $first_week_no = date("W", $first_day_of_month); $last_week_no = date("W", $last_day_of_month); if($last_week_no < $first_week_no) $last_week_no=date("W", strtotime("-1 week",$last_week_no)) + 1; $weeks_of_month = $last_week_no - $first_week_no … | |
Hello, I'm getting problems with my coding. I'm trying to take out tags from my preg_match_all. I'm still new and learning. [CODE] preg_match_all("/\<b>\\$(.*?)\<\/b\>/is", $res[0], $Price ); for($i = 0; $i < count($Price); $i++) { $Price = preg_replace("/<.*?>/is","",$Price); } foreach($Price[0] as $kgbPrice) { $PriceArray[] = "<div class='prices' id='kgbdealsPrice'>".$Price."</div>"; } [/CODE] The … | |
I've created a C script that rotates logs on my web server. It needs to receive 2 arguments, one whether the rotated log will be zipped and the other is the location of the log file. This works fine in command line but I cannot get it to execute with … | |
Good Morning All... I am really baffled with what I am getting from a form input using an image... Here is the form... Basically it is a single form with 4 separate input images, each reloading the same page, but changing the value of the variable 'name'. [CODE] <form name="display" … | |
hi i have a form where we can see all values from database and in this all row having three submit button named edit,del,info and i given id of the row is primary key of database table. when i press info i want that in next page i can get … | |
Hello I am looking to dump data from a MySQL database to an excel spreadsheet. I know I can dump it to a CSV file and import that way, no problem. But I want to dump the data to a specific spreadsheet in an excel and specific cells. I have … | |
Hi, I am working on a PHP form with a set of input fields, and 3 buttons. 1. The [B]ADD[/B] button will take the input and add it to a table displayed on the same page just bellow the input fields. 2. The [B]SUBMIT[/B] button will deposit the entire table … | |
I want to create one menu with anchor tag for e.g=> <a href="http://www.example.com/example.php" rel="facebox">Example</a> I want to write javascript function for that like $menu = array(); $menu['page name without extension'] = 'Page Title To be showed on page'; function MenuGen() { } In addition I want to add FACEBOX from … | |
Hello Say I have a document which is written in phonetic. Now I want to make this indic. How can I do that Say A will be আ B will be ব AA will be আ Ba will be বা T will be ট t will be ত etc...... Please … | |
Hi all, I am trying to select multiple rows from the database and then separate the rows into array values so I can use them throughout my code. This is what I have right now... [CODE] $result = mysql_query("SELECT url, image, placement FROM advert WHERE user='1'") or die(mysql_error()); //This grabs … | |
Hello, I want to display the contents of an html page on a specific web link. Can any one help me with that. Awaiting for postive response... | |
Hello everyone i am new here and i searched in the website but could not get the answer so them to my wey problem i am making a college project where i have to make a list of items from different website and bring them to my website eg:- just … | |
Hi, I have a HTML/PHP/MYSQL setup where I want to use a value chosen from one HTML <SELECT> to restrict values shown in the next HTML <SELECT>. It's a reasonably common requirement but I just can't get it. A good example is where the user chooses a country and then … | |
Hello Friends, I am making a website which can be able to sell articles. In other words, it is a shopping cart website on which product is "Articles". So different kind of articles will be listed in different categories. Articles will not be shown fully as it is for sale. … | |
Alright, I'm back for another educated post (got the newsletter btw :(). So I am trying to [COLOR="Red"][B]use AJAX to remove a joke from a list of jokes[/B][/COLOR] inside the administration panel. I know basically nothing about AJX, but I am a quick learner. I know that if I press … | |
[CODE]<?php exec('java -jar/MicroChatServer.jar',$output); print_r($output); ?>[/CODE] Hello frds......... I have chat prg. jar file and I have to integrate this chat in a PHP website uses Wampserver.... I try above code but it display "Array()" instead of execute jar file. What should I do???? Any idea?????????????// | |
I am getting no result of it when i choose mp3 file. Other files are being uploade.. What should I do?[code]echo $ftype=$_FILES["audio"]["type"]; exit;[/code] | |
i need help on knowing how to use php to send text to mobile devices | |
I wrote a code in php to upload mp3 files but it is not working. It uploads other file exrtensions but does not upload mp3 files. If I remove "if($_FILES['audio']['type']=="audio/mp3"" then files is uploaded in database but not in the subfolder "upload". Can any one help me. I'll be thankful.[code]if($ftype=="audio/mp3") … | |
Hi Frendz, This is my code to read data from port using php. <?php $host = "192.168.1.5"; $port = 4321; set_time_limit(0); echo "Start to Create socket....<br>"; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP) or die("create():".socket_strerror(socket_last_error($socket))); if($socket) { echo "Socket Created!"; } echo "Start to Bind Socket....<br>"; $result = socket_bind($socket, $host, $port) or … | |
I have a pregexpression and its not outputting anything. Can someone explain why this might be? I'm also new to learning this [CODE]preg_match_all("/\<b>\$(.*?)\<\/b\>/is", $res[0], $match); foreach($match[0] as $value) { echo "<div class='prices' id='kgbdealsPrice'>".$value."</div>"; } [/CODE] The string that I'm trying to get looks something like this [CODE]<tr> <div> </div> <div> … | |
Hi I hope somone can help me. my update form wil not work and i don''t know what's wrong. i got everything work only this not please help Here is the code <html><head><title>Terminkalender Change form</title> <style type="text/css"> td {font-family: tahoma, arial, verdana; font-size: 10pt } </style> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" … | |
Hi there. I was wondering if anyone could help me with this issue I am having. I wanted to create a live ajax search based on the value of the select box. The example I have obtained fromo another website and tried to have a player around. The query works … | |
Hello, I am about to publish a GPL library of classes that helps building an interactive application ( PHP AJAX JavaScript) and the name I chose for it is “PHP Interactive Pages”. Recently I came across the PHP Licesence (Wikipedia) that to be sincere I have never read it carefully. … ![]() | |
I would like to know how can I access or read the array from another php. I mean that I am working on a .php page which contains the array and I want to display the content of that array but on another .php page. for example I used the … ![]() | |
Hello I'm new to the PHP.Now i want to integrate a PHP page to Microsoft SharePoint using the web Services of PHP. | |
Hello, I was wondering if there is a way to layer my preg_matches? I have a code like this [CODE] preg_match("/\<div class=\"dealsListS\"\>(.*?)\<\/div\>(.*)\<\/form\>.*?\<\/div\>/is", $res[1], $bycontainer ); preg_match_all("/\<h2>\s*(\<div.*?\<\/div>\s*)?(.*?)\<\/h2\>/is", $bycontainer[0], $level1 ); preg_match_all("/\<div class=\"thumbWrapper\"\>(.*?)\<\/div\>/is", $level1[0], $matches); foreach($matches[0] as $travelzooTitles) { echo "<div class='titles' id='travelzooTitles'>".$travelzooTitles."</div>"; }[/CODE] I'm getting error, but can I even do … | |
Hi everyone, this is my first time using daniweb, so helo! I have a major issue with building a menu from a query. I have the following, a query built from a join from 4 tables my query returns the following Id cat name sub 2sub con 3 1 axle … ![]() | |
[CODE]$total = $total + $lineprice; $total = number_format($total,2);[/CODE] this is the code i use for getting a decimal, but when the $total is over 1000 it's shown as 1,000 and the total becomes 1,00 any solution for this? here is an example might make it more clear: [URL="http://img690.imageshack.us/img690/8484/voorbeelde.jpg"]http://img690.imageshack.us/img690/8484/voorbeelde.jpg[/URL] ![]() | |
I wanna put a editor on my text areas in Dreamweaver for news part or somewhere else, but i dont have any knowledge about that, where i should find it and how to use it. i was download tinymce from this link [url]http://tinymce.moxiecode.com/download/download.php[/url] but i dont know how to use. … ![]() | |
i wanna to upload some images for my banners but i want to send special formats to my db like jpeg and png i wrote some things like this <? %name=$_FILES['imgfiled']['name']; $size=$_FILES['imgfield']['size']; $type=$_FILES['imgfield']['type']; if ($type==image/jpeg) //i wanna upload png files too. but i dont know how to add it. exactly … | |
Hi, i'm having a problem with AES encryption. I have 2 queries: [CODE] mysql_query("INSERT INTO table (secretfield) VALUES (AES_ENCRYPT('$secretvariable','12345'))") mysql_query("SELECT AES_DECRYPT(secretfield,'12345') as sf FROM table WHERE ID='$_SESSION[id]'"); [/CODE] With AES_ENCRYPT it works fine, it inserts encrypted values into the column, but when i use AES_DECRYPT, it returns a blank value. … | |
Hi guys, I need a help for caching web pages. My website is driven by database and updated everytime (sometimes minute by minute sometime hour by hour, never know). Content and some information comes from database as well. There are also some queries run behind for logging purposes based on … | |
I'm launching an multi outlet online food ordering website - most of the coding etc has been done I just have a couple of problems, one of which is this.... I want to add a min order requirement so that if the order comes in at £8 the order is … | |
Hi, every body first of all thanks from my dear friend (paulrajj) for his/her replay to my question. I wanna put a editor on my text fields in Dreamweaver CS5 but, i cant find any things about scripts is there any body help me with this problem i heard some … | |
Please HELP!!! computing the overdue in library system. using the time.This is the scenario. If library user borrow a book and take it out to the library. then He will bi given 24 hours to return the book. If the library user didnt return the in exactly time he will … | |
Hi I am using curl function for getting data from another website. But when i use curl_exec($curl) it shows 'bool(false)' . why it happend so? Please help me..Thank you | |
Ok, Hi I need help.I making a project and need to find the end of file line of a file.I researched [CODE]file_get_contents[/CODE] of a certain file and it worked but it did not register anything. And then found [CODE]feof[/CODE] and used this: [CODE]<?php while (!feof($f)){} ?>[/CODE] And it registers the … | |
Please forgive me, but what I'm going to ask is going to sound terribly stupid, but that's because I'm terribly confused :P I've been reading up on PHP websockets as of lately and I no longer want to run the server locally. So when I upload the server.php file to … | |
HI, I have created a cascading dropdown using PHP/mySQL/Ajax, that pulls data for two select boxes and populates a third based on the previous. This all works perfectly, but anyone know a way to check when this new dropdown changes without adding a onchange or simular to the select at … | |
hello guys, i'm pretty new to php and to this forum, but i need a little bit of help and i hope i can find it here :). I need a wordpress page to create dynamic links, using the url and the wordpress database (or a new database¿?) to grab … | |
This is the code at line 23: [CODE] foreach($form->getErrorArray() as $m){ $x .= "".$m." + "; header("Location: Form_Display.php?message=".$x."") [/CODE] Gives me two error messages 1. Passwords don't match 2. Email not entered I've banged my head out, smoked a carton of cigarettes and had a quiet meditation session after raging. … |
The End.