39,316 Topics

Member Avatar for
Member Avatar for meabed

Better way to find String in PHP ! instead of substring and other php function , This function takes Start and End , and it will return the String in between in another variable ! you can call it easily :)

Member Avatar for LastMitch
1
310
Member Avatar for masocha

l am trying to do a facebook autopost. Everything works fine if l supply my userid. However l need to get the id of the currently logged in user. $faceboook->getUser() returns 0 every time. l know the code is configured properly coz l can post to my own profile

Member Avatar for LastMitch
0
97
Member Avatar for eternalhour

Hi Daniwebbers, I've created a web form and code in order to reset/clear the form with a button. However, in a specific circumstance, the form only resets properly if I go to a separate page then come back to the form and reset it. It only happens directly after I …

Member Avatar for eternalhour
0
210
Member Avatar for nexocentric

I have an interesting problem and have searched the internet, but haven't yet found an answer. Consider the following function: function get_setting_values_from_file( $parameter ) { exec("/usr/var/binary --options $parameter", $output, $return); $settings = file( $output[0] ); } I need to unit test a similar function. I am currently using phpUnit for …

Member Avatar for nexocentric
0
956
Member Avatar for PriteshP23

I had saved files in folder "uploads".I want to display uploaded filename in the table. There are two files. london.jpeg & usa.pdf Table: no Name File 1 abc london 2 xyz usa When one click on london or usa, one should able to see the file. I need urngent help. …

Member Avatar for PriteshP23
0
458
Member Avatar for pravaut

hi all i have this api but can not figure out for the life of me how to echo specific data from the api i am new-ish to php so any help would be great thanks in advance <?php /* Examples // Setup API $API = new LodestoneAPI(); // Search …

Member Avatar for diafol
0
339
Member Avatar for davidkroj

Hello, Just making a plan for new website of wordpress. I am wondring about RSS feed and sitemap.xml of website. How we can create in wordpress. Also let me know when we make RSS feed in html or core php there we can use tool for Rss creation and sitemap. …

Member Avatar for davidkroj
0
246
Member Avatar for anil14353

I'm Anil kumar i want to build a dynamic mega drop down menu using PHP. how to create table structure? how to write the code for doing this? please help me.

Member Avatar for anil14353
0
2K
Member Avatar for Shikha_1

<?php include("DBconnect.php"); //Retrieving data from html form $username =$_POST[ 'username' ]; $email =$_POST [ 'email' ] ; $status='verify'; // A salt is randomly generated here to protect again brute force attacks // and rainbow table attacks. The following statement generates a hex // representation of an 8 byte salt. Representing …

Member Avatar for pzuurveen
0
131
Member Avatar for ctkam

have 2 problem in my index page issue 1 have created a menu header - It is confirmed valid and can be use but the thing is, when ever i go back to home link - index page from other page, all the links is disable to be click but …

Member Avatar for ctkam
0
218
Member Avatar for eburlea

Hello. I have a form with captcha element. The text field displays on the right of the image. How can I make it displaying below the image? $path = Zend_Controller_Front::getInstance()->getBaseUrl(); $captcha = new Zend_Form_Element_Captcha( 'captcha', array( 'label' => 'Type the characters you see in the image below:', 'attribs' => array('id' …

Member Avatar for LastMitch
0
220
Member Avatar for aadebayo

Hello I have almost completed the code for pdf_labels. However, I am stuck on the fronts. First, the format is not exactly as it should be. Please follow the following URL to see what I am talking about. [URL="http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php"]http://www.weststreet.org.uk/MembersDBLive/reports/labelTest.php[/URL] As you can see, it starts with label 5 instead of …

Member Avatar for LastMitch
0
195
Member Avatar for SQLpower

Hello, I created an XBAP web application which I already implemented on my website but I am wondering if it would be possible to pass PHP variables like session etc. to the app itself? I know it's possible with ASP.net, but I am not sure for this one. For example, …

Member Avatar for LastMitch
0
230
Member Avatar for shhh

Fatal error: Call to undefined function session_register() in C:\xampp\htdocs\4\admin\checklogin.php on line 33 <?php error_reporting(0); $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="phplogin"; // Database name $tbl_name="members"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); …

Member Avatar for Zagga
0
344
Member Avatar for strongpot

Hello, I'm trying to send an email containing a variable. My variable ($to = $row_Recordset1['email'] ;) isn't working. When i echo it i get nothing and no email is received. When i put in a specific address rather than a variable it works just fine. Anyone know what I'm doing …

Member Avatar for strongpot
0
275
Member Avatar for sanbhu2105

i have the below code which is populating my drop down with the product names stored in tblproduct. the price of the products are stored in another table called tblretprod. the common field between the tables is the prod_id. when i am selecting the product name, the price related to …

Member Avatar for EvolutionFallen
0
327
Member Avatar for diafol

ANybody had a look at the new php.net beta site yet? Whaddya think? The old site was horrible - design-wise. Why do techies leave design as an afterthought? With all the wonderful ideas out there, they stick with that 1980's feel. Anyway, enough of that, how about the new one? …

Member Avatar for diafol
0
228
Member Avatar for Abbas Ansari

I have a problem, Whenever I add the number to my session, I recieve an error say **Undefined index: cart_1 in D:\wamp\www\MiniCart\cart.php on line 100** And when I press the add key the error repeats on top yet still giving the output and upon refreshing it works fine and adds …

Member Avatar for Abbas Ansari
0
137
Member Avatar for MWEB

Hello everyone :) I have this lines of codes and i get : > Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:\xampp22\htdocs\folder\index.php on line 52 ( 19 in the code below ) <form method="POST" action="index.php"> CODE : <input type="text" placeholder="Type the code" name="searchfor" /> <input type="submit" …

Member Avatar for Jan_2
0
931
Member Avatar for New-Reign

After looking around most of last night and all of this morning, I find myself here. I am looking to include a database connection within another class. From what I've read creating a connection within a class is bad? Can someone help me out or even point me in the …

Member Avatar for pritaeas
0
156
Member Avatar for games1124u

Hello, i want to know if somebody could help me to make this script safe. Like how to put mysql_real_escape_string. Or how to use preg_split, or htmletities.... <?php include 'extern/connect.php'; $categories = file_get_contents('extern/categories.php'); $footer = file_get_contents('extern/footer.php'); $logo = file_get_contents('extern/logo.php'); $report = file_get_contents('extern/report.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar for pritaeas
0
376
Member Avatar for RGStrat

Hello All, I'm working on a puzzle right now and am a bit stumped. I confess, I'm not much of a PHP programmer, but I don't claim to be either haha. I have an array with several variables: * dad * tsa * aft Next, I have a much larger …

Member Avatar for diafol
0
171
Member Avatar for code_rum

Below is my code.. $stmt->execute($params) is not getting executed $name = $_REQUEST['name2']; $surname = $_REQUEST['surname2']; $add = $_REQUEST['add2']; $pdo = new PDO( "mysql:host = localhost;dbname = employee", "xxx", ""); $stmt = $pdo->prepare( 'INSERT INTO test_differ VALUES( :name2 , :surname2 , :add2 )' ); $params = array( ':name2' => $name, ':surname2' …

Member Avatar for code_rum
0
174
Member Avatar for PriteshP23

I would like to get name of Tilt and its value 30. I am not able to get the value of Tilt. Let me know if you have any idea. Thanks in advanced. XML File: <?xml version="1.0" encoding="UTF-8"?> -<Physical> <Catalog> </Catalog> -<Installed> -<Equipment> <Id>26</Id> <Ref>Tew12</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>160</CharacteristicValue> </Characteristic> -<Characteristic> …

Member Avatar for PriteshP23
0
2K
Member Avatar for hrrh

hi all friend please help me , i have some error from PHP , who can help?

Member Avatar for crescendo
-2
88
Member Avatar for mpc123

Hi im trying to random showing items from data base and when echoed the same ones appear? If anyone could help that would be great. This is the query SELECT * FROM TABLE1, TABLE2 WHERE FIND_IN_SET(TABLE2.FIELD1, TABLE1.FIELD1) and `FIELDNAME` >= RAND() LIMIT 10

Member Avatar for pritaeas
0
146
Member Avatar for Ed

Hello, I have been trying to insert multiple rows from a web form into a MySQL DB. I have a dynamic table on one page that sets up the arrays and posts the form to another page which does the MySQL bit. Here is the the page with the form. …

Member Avatar for diafol
0
461
Member Avatar for patk570

There is two sections i need it to update. When they hover over the members name listed below, I need it to show their details. When the user(one who submitted the content) posts its going to have a hidden value to update the field in the form that i have …

Member Avatar for diafol
0
345
Member Avatar for wxflint

Hello all its been a while, I have a question on the script below. Here is what I would like to do. Take $file after fwrite has processed and add it to $dir. The Script creates the Directory and the file. I just need it to add the File to …

Member Avatar for wxflint
0
159
Member Avatar for muralibobby2015

We are working on magento. but here we have to get product prices from another website using xml feed. actually we are working on jewellery website using magento. we are adding products from backend. but gold prices are ups and down its depends upon market value. so how can i …

Member Avatar for diafol
4
1K

The End.