39,402 Topics
![]() | |
Ok I am stumped. I am inserting the data fine into the table and database so i know its not the config.php nor opendb.php. I used a code like this before and it work, i've only altered the $sql, the td's, and the $rows[]. Table name is hotspots (all lower … | |
Hi everybody! Well my question is as follows, I need to search for a div with a specific ID using php under wordpress, till now I found images and links, but I need to find a specific div ID and copy it, for now tested with this: [CODE] $html->find('$html->find('#divid');'); $html->find('div[id=divid]');[/CODE] … | |
Hello friends i'm new in php programming, i'm using wampserver with php5.3.5 , but it shows error on this code [CODE] <?php $to = "bkstha2010@gmail.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "someonels@example.com"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> [/CODE] as well as … | |
Hi Guys, Help me solve this... First I fetch values from DB and shows it in a table with check boxes. Once clicking OK button, it shows selected check box values. User modify any values and click edit, it should update the DB. I don't know where to fix the … ![]() | |
How to limit the number of checkboxes to be selected using php??? | |
Hi I'm currently creating a property website and it allows users to submit upto 7 images/property. Currently on clicking the 'submit' button to Add A Propety my code checks for image size, file type and then moves the file from a tmp location to images/propertyimages file. All the images from … | |
I've been learning php and following the examples on w3schools until I came to this example and now I'm pretty stuck after having tried to make it work for countless hours. This is the bit I'm on: [url]http://www.w3schools.com/php/php_mail.asp[/url] I try to send the email using the following code: [CODE]<?php $to … | |
Hi i just created a website for my church and the IE 9 is displaying it wrong.. Can some1 plz take a look at it and get back with me on why its doing that? [URL="http://www.lgm70.org"]www.lgm70.org[/URL] When i looked at it in IE 8 it shows everything that I created … | |
Hi Frns, Am new to PHP, can anybody please tell me how to include a calendar in a form... Thanks in adv.. | |
Hello, I need to post data to another server using jquery. Here is the code i am using [CODE] $.ajax({ url:"https://www.thewiseagent.com:443/secure/webcontactAllFields.asp", type:'POST', data:"ID="+$ID+"&Source="+$Source+"¬ifyCc="+$notifyCc+"¬ifyBcc="+$notifyBcc+"&noMail="+$noMail+"&CFirst="+$first+"&CLast="+$last+"&Phone="+$Phone+"&Fax="+$Fax+"&CEmail="+$CEmail+"&Message="+$message, success: function() { //window.location.href = "http://www.petlooza.com"; } }); [/CODE] i got error (302 object moved) in case of firefox/chorme although data is inserting.. but in case of … | |
Hi, I'm working on one php project without using framework and I want to form nice urls without tons of get parameters and ? and & characters. I know this could be solved in zend using controllers and actions and I'm looking for somerhing simillar. On my site, I have … | |
[B]I want to learn by myself any one of web development languages. i dont have an idea about which is best to learn PHP or HTML or CSS or do i need to study each one in order to use each one for some purposes.. what is the difference between … | |
For my new code that I'm developing, I have a text box where a user will type in a date as follows: [B]MM/DD/YYYY (e.g. 05/19/2011)[/B] This date then needs to be converted and inserted into a date/time field on a mySQL database. I've been trying to play around with this … | |
Hi, I want to destroy session when user close the browser tab or window in PHP. Please give me sample code. Thanks in advance. William | |
What is the full code that redirects all urls (including subfolders) without www For example: [url]http://www.abc.co.in[/url] redirects to [url]http://abc.o.in[/url] as well as [url]http://www.abc.co.in/subfolder[/url] redirects [url]http://abc.co.in/subfolder[/url] | |
Hi Friends i have some problem in update my dynamic text box value for particular id alone, i want to update only the 2 column fields into my database, i have used the below code. i am not able update the fields into my DB. Please help me to solve … | |
how to create frames in php page .and autoresize iframes. | |
I work on ubuntu 10.10.Please suggest me a php editor or IDE that I can use so that it highlights my syntactical and other errors.I currently use gedit which does not helps much with detecting typing errors. Regards. | |
hi people.......i've already had my mysql table displayed in html......how can i update the table (a specific row or a the whole table maybe) ...by clicking the HTML table? .... btw i already a update feature im my document (1 text field and 1 button) but i want to update … | |
Good day to everyone! I just want anybody to correct my code. The code tells that when i click on the button it will dispay a msg that will confirm if the client really wants to add the information, If yes then he will be redirected to another page, if … | |
I am new to PHP and looking to create a reporting site. I have created simple page that will return me a data set from a Stored Procedure in SQL Server. I'm now looking to be able to create dashboards with graphs and interactive reports. Does anyone know of where … ![]() | |
I am having trouble with a PHP foreach loop....I know how they work, I think I'm getting unexpected results. A bug perhaps? Am I missing something? [code] if(is_array($array)){ foreach ($array as $k => $v){ echo "<b>#$k</b><br />"; foreach ($v as $kk => $vv){ foreach ($vv as $kkk => $vvv){ if($kkk … | |
I have lots of pets in a dropdown. what i want to achieve is that when ever i hover on dropdown, it will display the image of particular pet as a popup. Any idea how can i achieve that? ![]() | |
When I do the initial install I get this: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in D:\Hosting\6585577\html\rhythmmovement\install\index.php on line 18 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in D:\Hosting\6585577\html\rhythmmovement\install\index.php on line 19 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource … ![]() | |
I am currently using iframe to boost my youtube video views, EXAMPLE: <IFRAME SRC='http://youtube.com/VIDEO' SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no'></IFRAME> I would like to know how to do the same thing in PHP? Can someone please send me an example of an almost invisible iframe as above but only in PHP. Sorry … ![]() | |
Hi all, I want to perform cash transactions such as cash deposits and cash withdrawals in my project.Here i have created a page called [B]transaction.php[/B] to fulfill those requirements.But there were few error which i need your help to sought it out.. [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest ) [B]transacion … | |
Hi, I was thinking to put people business contact information in my site with their email, phone, address(like list of doctors, lawyers, accounts, ...) in my site. I will collect those information from different news papers. Am i allowed to put those information in my site or i have to … | |
Hey guys, I'm having some trouble setting up a form to delete a specific row in my database table. Here is the idea: I have one page that makes looping calls to MySQL for a query result, at the same time I print out the html as I need to … | |
Hello, My problem stems from reading an image from the local disk and displaying it. There's a middle step of storing it in a database, but I simplified the problem into this test script that replicates the error: The image "http://example.com/test.php" cannot be displayed, because it contains errors. test.php looks … | |
From last few days I am struggling to achieve this. For some reason, we need to change the Foreground (display) color of animated gif images without losing their animation. I am sure there should be some ways to do thing but i couldn't able to find that. A website ajaxload[dot]info … | |
inside my database, there is a table name january such as: id | code | 1 | 2 | 3 | 4 2 | 0000 | X | X | O | O when i access the data using PHP and parse it into an array e.g. $array1, It became: … | |
Hi I have a problem with the mysql query that uses both order by and limit.Following is the sql query i'm using, select * from temp where venue <> '' and cat1 = 'sports' and id < 74528 order by id desc limit 10; in this temp table 'id' is … | |
Dear all, I need your help :) i have array like this--> $myarray([0]=>a,1 [1]=>b,2 [2]=>a,2 ) i want to split each of the array element, i want to retrieve the part a and b of each array elemet and (maybe) store it in different array like this: $myarray1([0]=>a [1]=>b ) … | |
I'm hosting on NetworkSolutions (which has PHP 5.2.17) and every time I make a prepared statement it returns the error "Incorrect arguments to mysql_stmt_execute" D: Can you help me spot the error in my code please? D: [code] <?php $mysqli=new mysqli(host, username, password, db); $query="INSERT INTO `Variables` VALUES (?, ?)"; … | |
Hi, I am fetching data from database & using pagination(showing 10 records per page).What i am trying if i want to print records between 20-30,I can print only these records(20-30). or by using search if i get 4 result ,can print only 4 records. Need suggestion | |
hi, i have some variable defined in a php file. for example: DEFINE( '_clientass', 'Cliente' ); so when i do a echo of _clientass they return Cliente now i want call _clientass from a mysql row and return Cliente If i do this: $row['variable'] he return _clientass but i want … | |
here is my code for image upload. after upload successfully i want to go my mainpage.php page . i am using iframe to display upload form. how to go mainpage. please anyone help me for this problem . [CODE] <?php include("connect.php"); $_SESSION['MM_Username'] ; $username=$_SESSION['MM_Username']; if(isset($_POST['submit'])) { //get file attributes $name=$_FILES['myfile']['name']; … | |
can you help me , please i want read a file pdf or word -> swf , use php code . it's look like "http://d3.violet.vn/uploads/previews/598/665006/preview.swf" | |
Ive used date() before but I do not remember how to store it in mysql. VARCHAR, TEXT, TIMESTAMP? | |
I have a foreach loop, within which I would like to create x number of unique variables. E.g. Upon each iteration I'd like to create a new variable like: $strDisk1 = ... $strDisk2 = ... $strDisk3 = ... I have tried the following but this does not work: [CODE] <?php … | |
Hello! I've come across a little problem with Regex, I was hoping someone might see the problem off hand. Here is some sample content I am searching through, It's the gameshark codes for PEC: [code] #Ace Combat 3 Electrosphere#SLPS-02021#SLPS-02020 §N Joker Command D00BF32E ???? "Infinite Time for battle D0054332 2442 … | |
I want to insert wp-survey-and-quiz-tool code in wordpress page using href tag, so that the quiz only comes up only when link is clicked. But the problem is whenever i use this shortcode, it automatically starts the quiz.Please provide the possible solutions. [CODE]<a href='[wpsqt_quiz name=Memory]'>Memory Allocation</a>[/CODE] | |
how to set avatar to my profile page .anyone help me for set my avatar image path in my profile page. [CODE] <?php require 'connect.php'; $userg = mysql_query("SELECT avatar FROM members") or die("Failed to fetch your details."); if (isset($_SESSION['MM_Username'])) { echo "Welcome ".$_SESSION['MM_Username']; echo "<img src=".mysql_result($userg,0,"avatar" )." width=200 height=200>"; } … | |
I have just finished my php basics from "complete reference" but it also has a section of Ajax.I want to know what is the relevance of ajax in php web pages.Also I want to know where can I learn advanced php from so as to build dynamic web applications? ![]() | |
Below code is what i found from a search in daniweb forum. ([URL="http://www.daniweb.com/web-development/php/threads/253997"]Link[/URL]) Suppose i have a taxonomy called [B]Color[/B] and terms are [B]Blue[/B], [B]Green[/B], [B]Red[/B], [B]Yellow[/B], [B]White[/B]. I want when i select Blue, Green and Red and click submit button, i want to get ALL posts those have Blue … | |
hello... i want ot select multiple vakues from dropdown and insert into database. but it is not working. any one plz help. and one thing when ever i retrive values from database selected values come in top of the dropdown and remaing values are come in bottom of the dropdown. … ![]() | |
Uhh... well I'm not really expert into SQL Injections Prevention so I had an Idea of putting the Admin accounts in a PHP file... for example [CODE="PHP"] <?php $_ADMIN[1244]["username"] = "root"; $_ADMIN[1244]["password"] = "345dfgAFKgfmsdfS"; ?> [/CODE] I think that in doing this it will prevent Hacking of Admin accounts... what … ![]() | |
Hi All, I have a page with a PHP insert form that posts relevant info to the SQL database. At the same time the key value "reg_id" is auto incremented by the DB. How do I get new auto incremented value that has been posted so that I can use … | |
hi everyone l see this code in user script and i don't know why he use this ~ symbol the code is [CODE]if( ~$user->premission & USER::create_Forum){ ................... }[/CODE] is this symbol for negative or what i still wait any idea about it |
The End.