39,320 Topics

Member Avatar for
Member Avatar for cjohnweb

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 …

Member Avatar for pritaeas
0
242
Member Avatar for navi17

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?

Member Avatar for diafol
0
97
Member Avatar for dmelgray

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 …

Member Avatar for diafol
0
202
Member Avatar for ton7io69

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 …

Member Avatar for diafol
0
80
Member Avatar for heshanm

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 …

Member Avatar for ko ko
0
113
Member Avatar for bangla

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 …

Member Avatar for bangla
0
183
Member Avatar for PsychicTide

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 …

Member Avatar for PsychicTide
0
464
Member Avatar for garromark

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 …

Member Avatar for maxterner
0
307
Member Avatar for rahulephp

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 …

Member Avatar for karthik_ppts
0
90
Member Avatar for knitex

So I'm kinda new to php. I've made a search but i'm looking for some help so that i can add more inputs and it will narrow the results down. for example i search "John" and 100 johns come up. But then i search "john" and then select Canada only …

Member Avatar for karthik_ppts
0
151
Member Avatar for iau

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: …

Member Avatar for urtrivedi
0
68
Member Avatar for aithabuddy

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 …

Member Avatar for karthik_ppts
0
167
Member Avatar for atfOnly

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 ) …

Member Avatar for atfOnly
0
134
Member Avatar for GigsD4X

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 (?, ?)"; …

1
65
Member Avatar for jacob21

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

Member Avatar for karthik_ppts
0
1K
Member Avatar for srdva59

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 …

Member Avatar for Shanti C
0
53
Member Avatar for naru vaishnaw

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']; …

Member Avatar for divyakrishnan
0
108
Member Avatar for nguyennamphp

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"

Member Avatar for MooGeek
0
85
Member Avatar for RazorRamon

Ive used date() before but I do not remember how to store it in mysql. VARCHAR, TEXT, TIMESTAMP?

Member Avatar for IIM
0
99
Member Avatar for nonshatter

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 …

Member Avatar for cjohnweb
0
7K
Member Avatar for cjohnweb

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 …

Member Avatar for cjohnweb
0
116
Member Avatar for stranger_on_way

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]

Member Avatar for ko ko
0
158
Member Avatar for naru vaishnaw

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

Member Avatar for ko ko
0
160
Member Avatar for geekme

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?

Member Avatar for diafol
0
75
Member Avatar for adige72

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 …

Member Avatar for ko ko
0
1K
Member Avatar for muralibobby2015

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. …

Member Avatar for diafol
0
1K
Member Avatar for MooGeek

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 …

Member Avatar for diafol
0
126
Member Avatar for johnbo100

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 …

Member Avatar for johnbo100
0
203
Member Avatar for Yemen Coder

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

Member Avatar for ko ko
0
146
Member Avatar for amras123

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <script type="text/javascript"> function Logout(){ document.location.href="index.php" } </script> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="*******"; // Database name $tbl_name="*******"; // Table name // Connect …

Member Avatar for ko ko
0
176

The End.