I have a page with ten sortable lists that properly save the order of list items(divs) as they are moved inside their list. Each list itself is generated with a separate php file that basically iterates content based on its boxid #. So all content with a boxid of 5 gets output to list 5. All content with boxid of 3 gets output to list 3 ...
hey there web experts, I use this upload tutorial to upload files.
I decided to place my uploader in drupal, so in order the make a custom page, I made my upload page inside a iframe. All working fine, just when upload finished the method stopUpload is not called.
Can you help me with that please?
...
Hello,
Can someone advise me if I am performing the below steps correctly:
When a user wants to register on the website, register.php handles his/her request. Below is some of the code from register.php:
$sql="INSERT INTO Members (fldFullName, fldEmail, Password, Gender, DOB)
VALUES
('$fname','$email','$pass', '$gender', '$date')";
...
This is an array i have
<?php
$page['Home']='index.html';
$page['Service']='services.html';
?>
How do i get to echo something like this for individual one like
Home is at index.html
and again how can i do this through a loop and echo all?
...
Hi,
i've got to connect 2 php pages on 2 different servers,
in the first server there's the DB (mysql) with an "email" table, generated by a php page..
in the second server there's a php file wich needs to read the "email" table...
the second php page doesn't need to be opened by the user
the fact is that i need to make this work wit...
I am testing integrating a website to Paypal, using Web Payments standard and HTML Variables.
I have written a simple PHP script to handle the IPN notifications.
According to the Paypal documentation, the Paypal server responds with a simple 'VERIFIED' or 'INVALID' response, once you ping the received data back to Paypal.
In my handle...
Hello there,
I'm aware later versions of ffmpeg seem to present this information in a more accessible form, but my application is running on an old version for many reasons right now.
Is it possible to extract
Format: flv (located after Input #0, )
Duration: 00:05:23.20 (located after Duration: )
Bitrate: N/A (located after bitrate: ...
I would like to parse a mailer to-string which could consist of the following examples separated with a comma (,):
First name <[email protected]>
"first name" <[email protected]>
<[email protected]>
[email protected]
I would like to make an array with an entry for each element with two sub-entries: [name] and [email].
I've been strug...
I am making a new database for an online store and Am trying to figure out how to do the orders table. There are multiple products and each product has many options. I am just wondering the best way to keep track of all this. I keep coming back to a table with all the options for all the items. This seems like a bad thing though. Does an...
I currently have it working so it displays a dialogue box to save the image on your computer:
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
// get bytearray
$jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
// add headers for download dialog-box
header('Content-Type: image/jpeg');
header("Content-Disposition: attachment; filename=".$_GET['name'])...
I am trying to insert couple of words in mySql database via php with flash interface. Since the words are in foreign language some of the letters are typed as ' and ". When I try to insert these letters I get error from mySql/php.
Can letter(symbols) like mentioned above be inserted in mySql? If yes, what changes do I need to make (Acti...
Although "slightly" related to a previous question, it is different. How "secure" is this code in terms of cURL? Are there any other "bits" that should/ought to be added. Note it is not being used to pass "sensitive" info.
$ch = curl_init("http://www.example.com/test.xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch...
Hello guys
I am a newbie in drupal, i have created a new content type 'new', I have two type of roles Editor and manager. Editor must be able to add content in to the new content type but manager wont. I have specified in the module code that
function new_access($op, $node, $account) {
switch ($op) {
case 'create':
return use...
This is weird. I have 2 centos boxes, prod (192.168.0.1) and vm (192.168.0.30).
Mysql database sits on prod.
App sits on vm.
From vm, if I type
mysql -u user -p -h 192.168.0.1 -D mydb
it connects lovely, so port is open and listening on prod
but in app, i do
$db=new mysqli('192.168.0.1','user','mypass','mydb');
and I get
Warnin...
Hey,
I have one input (type radio) that I want to insert it 2 values, something like that:
<input type="radio" name="name" value1="value1" value2="value2" />
And after draw each value seperated with PHP.
There is a way to do it? (And no.. I dont want to insert input with type="hidden")
Thank you.
...
I'm taking a break from Project Euler to learn some PHP/HTML for kicks and giggles, and I found a page of simple exercises. So, on my 'site,' I want to have an ordered list of links to pages of each of the exercises, but I decided to do it in a dynamic manner as opposed to hard coding each item as I do the exercise. Unfortunately, the p...
I have an odd one - I am porting some data from one CMS to another. Both run on LAMP.
In the old CMS, the data was stored, with slashes in the DB.
Examples:
Hi. Thanks for looking. It\'s \"awesome\".
That correctly displays when output by the old CMS as:
Hi. Thanks for looking. It's "awesome".
But in the new CMS, they same text i...
Are there any disadvantages to storing dates as integers (timestamps) in MongoDB rather than its MongoDate format?
Because I'm having problems with Zend Framework and Doctrine ODM to read the data, since I get them returned as an array as DateTime object. Internally MongoDB seems to save them as Timestamps, but has its own object for it...
Currently, I have a database access class named DB, which uses PDO. I Then have a handful of sub-classes for accessing each table:
Users
Images
Galleries
Text
Videos
This was nice when I first started my project, but now I'm not sure if it's that great, as I have a method for each database query that I use within each of these classe...
I have three tables A, B, C. A and B have a one-to-many relationship. B and C have another one -to-many relationship. In another word, each A can have multiple Bs, while each B can have multiple Cs.
Now I want to do a query for a given record of A, to get all the related Bs which have related Cs. In another word, for a given a, which is...