39,320 Topics

Member Avatar for
Member Avatar for Priti_P

Hello, I have given name to node. But its question for my curiosity that how to know its node number now? any known drupal function for this? * if u parse $url then also it will give u name. * url('node/'.$node->nid); do not give expected answer so any opetion how …

Member Avatar for LastMitch
0
109
Member Avatar for rahul.pragma

The problem is that, Server doesn't not able to open this url: https://gw1.cardsaveonlinepayments.com:4430/ OR https://gw3.cardsaveonlinepayments.com:4430/?WSDL When you run this url from your browser then it would work and show you some kind of data like: "GetCardType CardDetailsTransaction CrossReferenceTransaction ThreeDSecureAuthentication" But when we try open the url using script then server …

Member Avatar for hag++
0
796
Member Avatar for shavezphp
Member Avatar for rv1990

This is the code I made for my facebook application but it is not giving the result. This code generate friends name, id and gender and I simply want to display in my apps. Please help me in solving the problem? <section> <?php $friends = idx($facebook->api('/me?fields=friends.limit(10).fields(gender,name)'),'data', array('access token' =>$accessToken)); ?> …

Member Avatar for talibhassan3211
0
557
Member Avatar for Synestic

So I'm making a wishlist but am stuck at joining 2 MySQL tables together. At the moment I'm doing this by using following code: if ($stmt = $mysqli->prepare("SELECT ItemID FROM wishlist WHERE WishlistID = ?")) { $stmt->bind_param("s", $this->ID); $stmt->execute(); $stmt->bind_result($id); while ($product = $stmt->fetch()) { if ($stmt2 = $mysqli2->prepare("SELECT products.name …

Member Avatar for diafol
0
148
Member Avatar for simplypixie

This is driving me insane - I have certain links that are re-written on a site that work perfectly fine (and I am not new to re-wring urls) but have just found that some others aren't and I cannot fathom out why. What works: // The link <a href="/shop/<?php echo …

Member Avatar for simplypixie
0
267
Member Avatar for mmcdonald

I'm having difficulty opening message content for each unique message because I'm struggling to get the PHP variable `$message['id']` to a url defined in a javascript file. My foreach loop that echos out all of the messages for the user: foreach($mess_data as $message){ echo' <tr '.(($message["read"] == '0') ? 'class="unread"' …

Member Avatar for htmlearner
0
2K
Member Avatar for beachy82

hi there i'm currently trying to create a form for a site and this has been done succesfully however on sending the form it goes to a new page saying either "Thanks! Our Team will get in touch in next 24 hours" or "Oops! something went wrong, please try to …

Member Avatar for Tpojka
0
230
Member Avatar for mitchell.schols

I want to have ONE picture on my home page (a poster) and when the date is done I want the new one to replace it and the old to go to a list of all the previous posters. if anyone has a snippet of code that would be amazing. …

Member Avatar for mitchell.schols
0
314
Member Avatar for Hans B

Hi guys i'm in the process of writing an API and is stuck. I get this error: **Parse error: syntax error, unexpected T_STRING in /var/www/xxxxxxx.xxx/public_html/api/uentry.php on line 35** Here's the code: <?php include '../../cfg/xmlhttpheader.inc'; // ---- Form l: // ---- 1) Rense parameter streng // ---- 2) Omdirigere forspørgsler til …

Member Avatar for Hans B
0
551
Member Avatar for davy_yg

Hello, I am trying to understand the CI code that somebody made. I saw there are two folders: site & admin folders in CI application folder. I wonder why? Is it to separate the site and admin page? Is that possible?

Member Avatar for GliderPilot
0
580
Member Avatar for jacob21

Hi, I need suggestions regarding getting rank of website from search engine.For example: I search php tutorial in google w3school get 1st rank,php.net get 3rd rank How i can get above rank Need help!!! Thanks

Member Avatar for ericnboler
0
91
Member Avatar for rhodoscoder

I'm working on a php blog , i created a database and it has several fields, i performed an sql command retrieving the id , performed a $query then a mysqli_fetch_array on the $query i retrieved the id and stored it ina variable as follows `$pid=$row['id']; so that the link …

Member Avatar for JorgeM
0
180
Member Avatar for kyleo92

I'm creating a table with PHP/MySql to enter local election results from my newspaper, I'm not a professional developer, more of just a hobbiest hack (who hasn't worked with PHP for a few years either), so feel free to correct existing code if you so please. What I want to …

Member Avatar for diafol
0
338
Member Avatar for Eagle.Avik

hi i am building a cms system for my website, i am able to put data into a mysql database with the following code(look below). i also have a login system for accessing the cms, everything worked so far. I am facing a problem now. Ok so user signup info …

Member Avatar for broj1
0
286
Member Avatar for cwarn23

PHP is a nice language with features a wide range of automated features for memory but when it comes to mass processing for things like calculating pi or processing a database that's a couple dozen Gigabytes then you may run into a few troubles if things aren't done correctly. This …

Member Avatar for Gaetane
4
676
Member Avatar for johndohmen1963

Hi i have a problem with the output to show the images horizontal in have the folowing code [CODE] $connn1 = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die('Could not connect to MySQL database. ' . mysql_error()); mysql_select_db(SQL_DB,$connn1); $image=mysql_query("SELECT * FROM $weinachtfeier"); if (mysql_num_rows($image)<=0) echo "<br>Album does not exist or you are not …

Member Avatar for aymix
0
710
Member Avatar for garyjohnson

I have a query that collects multple ID numbers and stores them into a php Array. I then want to make a mysql query for every result in the php Array. I believe I am on the right track but am getting an error saying the `join()` method has invalid …

Member Avatar for broj1
0
412
Member Avatar for urbanthistleuk

Good Morning All, I need some help and guidance on a project I'm working on, I am having problems with the following code below, I have been trying to figure it out for days and cannot see anything wrong with it, I am getting the following error when processing the …

Member Avatar for urbanthistleuk
0
234
Member Avatar for daniel.conlinjr.1

Is there a way when a login button is clicked that it will display a hover over page and show the login form and then once it's logged in then it goes back it if it errors then it displays an error message with out redirecting or reloading the page?

Member Avatar for jkon
0
80
Member Avatar for renierdbruyn

Hi... I got the following: function solution($A) { if (is_array($A)) { if ($b = preg_grep("/\-1/", $A)) { foreach ($b as $key => $value) { $A_count = count($A); $remove = ($A_count-1) - $key; $v = $A[$key]; unset($A[$key]); for($i = $key+1; $i < $A_count; $i++){ unset($A[$i]); // to remove the element after …

Member Avatar for renierdbruyn
0
282
Member Avatar for amulet_john

Hello everyone ! How to make conditional messagebox in PHP? How do I do it? Like for example, in deleting record inside the database. The user will be asked to input costumer_ID (there should be a button named "search") if the user pressed the button search, it will search through …

Member Avatar for pzuurveen
0
208
Member Avatar for prakash_1

Parse error: syntax error, unexpected end of file in D:\xampp\htdocs\metrimon\sections\searchbox.php on line 80

Member Avatar for pritaeas
0
80
Member Avatar for uvray90

Hello members.. I needed to implement dynamic graph solution in PhP and got this wonderful article which serves my purpose. [URL="http://www.kidslovepc.com/php-tutorial/php-dynamic-chart-plot.php"]http://www.kidslovepc.com/php-tutorial/php-dynamic-chart-plot.php[/URL] I played with it as they told me to but did not get any output from the samples :'( I tried the installation test and its showing that everything …

Member Avatar for shadia_1
0
344
Member Avatar for happygeek

In the newly published Imperva 'Hacker Intelligence Initiative Report' the in-the-wild modification and exploitation of PHP SuperGlobal variables has been investigated. This particular external variable modification weakness has been described as being where a PHP application does "not properly protect against the modification of variables from external sources, such as …

Member Avatar for Gaetane
4
615
Member Avatar for Nadera

Hello, I am trying something new and I do not know how to do it. I have table that list all the expenses claim, which these expenses needs to multiple approvals from different managers, where it will be like this: <?php $connect = mysql_connect("localhost","root","***") or die ("Could not connect"); mysql_select_db("expenses") …

Member Avatar for Gaetane
0
151
Member Avatar for davy_yg

controllers/admin/clogin.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login controller class */ class Clogin extends CI_Controller{ function __construct(){ parent::__construct(); } public function index(){ // Load our view to be displayed // to the user $this->data['assets'] = array('logincss' => base_url().'assets/css/login.css', 'logo2' => …

Member Avatar for dany12
0
134
Member Avatar for dany12

I would like some help with my connect class.This class is created by me it is my way of thinking so i would like to know why this class dossent get my variables and connect proprely to mysql. the code <?php /** * Exp:Connect to database in oop style @params …

Member Avatar for pritaeas
0
1K
Member Avatar for Sanjay_6

I am new to Joomla. i have to select one theme from these two themes. Rocket theme - http://demo.rockettheme.com/?template=acacia Nemo White Premium Joomla Template - http://themeforest.net/item/nemo-white-premium-joomla-template/5507845?WT.ac=category_item&WT.seg_1=category_item&WT.z_author=ThemeRox but exactly i don't know which parameters i have to consider for selecting theme like Framework. I am not sure how to check which …

Member Avatar for dany12
0
173
Member Avatar for shelexelex

I have been trying to do this and i dont know why exactly its not working.. Here's the idea. I want to receive the name and age of a person via POST method and then put it in an array dynamically, so that as more names and ages are added, …

Member Avatar for Gaetane
0
351

The End.