I am running an ecommerce theme on wordpress on a hostgator server, and coming up with this error.
Security warning: set the value
*register_globals* in the php ini to Off !! This theme will not work correctly otherwise.
I can't find the php.ini in any of the folders. I tried creating a file with the added command and putting it ...
How can pass the image in database in php?
...
I have a simple one level deep vocabulary taxonomy. Something like Vocabulary->Term->Node. What I want to know is if there's a built in function to get an array of nodes related to a single term, something like taxonomy_select_nodes() but that would return an array of nodes instead of a string.
...
Hi
I am displaying all the users in the form using php where the data are fetched from db.
When i click on the icon all users data should be show in a pdf with a good table structure.
i am hereby using fpdf to generate it. i created pdf but the records are not in formatted structure.
How should this can be done.
kindly advice.
than...
I have a script that calls the rand function:
<?php
echo rand(0, 9);
?>
If I run this script multiple times, will I get different numbers out, or will it always be the same? In other words, does PHP seed rand automatically?
...
i want to add multilingual feature for slogan and mission in the drupal site information.
I tried adding:
$conf['i18n_variables'] = array (
'site_name',
'site_slogan',
'site_mission',
'site_footer',
'anonymous'
);
to settings.php, but that is not working. I am using drupal 6.17
...
I am trying to add entries to a Sugar Contacts database with the following SOAP code in PHP.
$set_entry_params = array(
'session' => $result_array->id,
'module_name' => 'Contacts',
'name_value_list'=>array(
array('name'=>'Name','value'=>'Brian')
)
);
$result = $soapClient->__soapCall('set_entry', $set_entry_params);
An entr...
I use joomla to build php websites as it has logins , registrations and many extension to make my work easier.
IS some cms available for building webistes in java with some pre loaded features so that i don't have to code it from scratch
...
This is my script which i have used to paginate ,,The datas are restricted to 4 but the pagination link doesn't appear
<?
require_once ('Pager/Pager.php');
$connection = mysql_connect( "localhost" , "root" , "" );
mysql_select_db( "ssit",$connection);
$result=mysql_query("SELECT dFrindName FROM tbl_friendslist", $connection);
$row = my...
I am uploading logos to my system, and they need to fix in a 60x60 pixel box. I have all the code to resize it proportionately, and that's not a problem.
My 454x292px image becomes 60x38. The thing is, I need the picture to be 60x60, meaning I want to pad the top and bottom with white each (I can fill the rectangle with the color).
The...
Hi
How can i calculate year from entering my age using php.
example:
i am entering my age as 24.
So that i need to get the year as 1985.
how this can be done.
thanks in advance
...
How to make the use of hidden variables as array for consecutive submission of data so that they can be used to display the records list.
I have a form with 4 text fields and a file upload field.. as i submit he form it should get appended to the list which needs to be displayed below the form, such that these values are NOT stored in t...
Hi friends,
I'm a drupal newbie (mean it :)
I have a Block, created with View Module. and this block content has CCK fields. I display any of field with Fields Box in View Module. It's cool.
the issue is, one of the CCK field has a condition value for linking at homepage or not. So I need to get the value of field_homepage_linking CC...
I have pasted the example of what I need here : http://pastie.org/1005178
I have a xml file with say the following info
<state>
<info>
<name>hello</name>
<zip>51678</zip>
</info>
<info>
<name>world</name>
<zip>54678</zip>
</info>
</state>
Now I need to create a new xml file which has the following
<state>
<info>
<name>hello</name>
<...
Here is my original query:
$query = mysql_query("SELECT s.*, UNIX_TIMESTAMP(`date`) AS `date`, f.userid as favoritehash FROM songs s LEFT JOIN favorites f ON f.favorite = s.id AND f.userid = '$userhash' ORDER BY s.date DESC");
This returns all the songs in my DB and then joins data from my favorites table so I can display wich items a...
How/Where can I store some values such as a phone number or email address so I can use these values on any page in a my custom theme?
Example: I want to store a contact phone number that should be displayed in the header file of my theme but i dont want to hardcode it into the html. I would like to store it in a simerlar way custom valu...
Basically, I want to enter text into a text area, and then use them. For example
variable1:variable2@variable3
variable1:variable2@variable3
variable1:variable2@variable3
I know I could use explode to make each line into an array, and then use a foreach loop to use each line separately, but how would I separate the three variables to ...
hi
i want to know how to get all fields value search by array.
i have array that s
my table is
id content
1 zahr
2 hai
.
.
.
and so on
$a = {2,3,4,5,43,32};
i have to take the contents by this id(from array "a").
i know, i can use "for" loop for getting each element from mysql.
but i would like to use ...
hi,
here is what i'm trying to make.
i want to select all the users from a table.
for all of these users i want to make a for cycle.
from what i know for has three statements something like so for($i=0;$i++;$i=$max)
how can i put the user id's in to an array so i can define my $max variable?
or can this be done in an other method?
t...
i have a database and need to automatically optimize this 24 hourly
What should I do?
...