When I run the example code at http://us2.php.net/manual/en/exception.gettrace.php I get no "args" in the backtrace, as there is in the example output.
Is this a PHP bug or am I missing something?
My output:
array(1) { [0]=> array(3) { ["file"]=> string(25) "D:\www\project\index.php" ["line"]=> int(79) ["function"]=> string(4) ...
I have this elementary query:
SELECT d.description, o.code FROM order_positions AS o
LEFT JOIN article_descriptions AS d ON (o.article_id = d.article_id)
WHERE o.order_id = 1
and I'm using MDB2 from PEAR to execute it and read the return values.
But somehow the result array always contains fields from the order_positions table only!,...
Hey
I'm trying to add some more features to this(Attach a file): http://digitarald.de/project/fancyupload/3-0/showcase/attach-a-file
Does anybody know how to configure this so that you can pass in through the html page where to save the uploads? ie a folder name?
Thank you for any help.
...
I'm helping a friend recover from the mess outsourcing a wordpress website caused him (mistake #1) and I have this weird error. The hosting he is using appears to be redirecting www.domain.com to domain.com (NFI why) automatically which works fine in every browser except IE (i know right!). So adding the first redirect fixed that, until ...
Hi ,I'm trying to build a query using php and mysql,
$query = "select * from products where product_name = '$item_name'";
this works when $item_name holds only one name, but $item_name is an array and based on the user's interaction can contain multiple names, how can I make the query to run for multiple name and get the resulted row...
I cannot get this to work on Wondows. There is a dll file bundled in the gdwin.zip file that I downloaded called "bgd.dll". I read that this file needs to go into the ext directory and then simply add / uncomment the library in the ini file. I've done that but I cannot get this working. Can someone please help? I'm on 5.2
This is the ...
Okay I have a piece of code that for some reason gives me the following errors.
Warning: mysqli_query() expects at least 2 parameters, 1 given in
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in
here is the code below.
$dbc = mysqli_query("SELECT * FROM sitename WHERE id='$user_id'");
while($row =...
I'd like to show a simple testimonial rotator on my site done in php.
Php can take testimonials from either a Text file or db, but I don't understand how to create te rotator part.
I'd appreciate any help you can offer. Thanks.
...
Hi Chaps,
Bit of a newbie, so please excuse the lack of terminology. . . .
I have a PHP script to backup a MySQL database "dbjobs".
I've tried nearly everything I can but can't get it to work.
It works if I run the $command directly from the Command Prompt on the server, but everytime I try to run the PHP version, I get an HTTP 500 err...
Okay I have a piece of code that for some reason gives me the following error.
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in
Here is the code.
$mysqli = new mysqli("localhost", "root", "", "sitename");
$dbc = mysqli_query($mysqli,"SELECT * FROM sitename WHERE id='$user_id'");
while($row = mys...
Okay, a little preface: I am still a beginner when it comes to AJAX, and dynamic web stuff. My problem is similar to what was asked in the following, but I think that discussion is using a framework, and I am not.
Potentially related post
Here is my scenario:
I have several select elements in a form. The initial select's option elemen...
Hello,
I am having a rather simple question
can anyone tell me why this is not displaying each variable on a new line, well except for
the <br>.
$curtime = gmdate("d/m/Y H:i:s");
//capture the PayPal returned information as order remarks
$oremarks =
"##$curtime##<br>".
"PayPal Transaction Information...\n".
"Txn Id: ".$ppInfo["txn...
$con = mysql_connect("localhost:".$LOCAL_DB_PORT, $LOCAL_DB_USER, $LOCAL_DB_PASS);
mysql_select_db("hr", $con);
mysql_query("set names utf8", $con);
while(true)
{
do_stuff($con);
sleep(50);
}
If connection timesout in 50 seconds,will $con still work?
...
In perl regex we can extract the matched variables, ex below.
# extract hours, minutes, seconds
$time =~ /(\d\d):(\d\d):(\d\d)/; # match hh:mm:ss format
$hours = $1;
$minutes = $2;
$seconds = $3;
How to do this in php?
$subject = "E:[email protected] I:100955";
$pattern = "/^E:/";
if (preg_match($pattern, $subjec...
I have search result which includes images. When the user hover over the image the image should expand somewhat large size like we see on bing image search. Is there any Plugin for that. Please help. Any Suggestion will be appreciated.
...
I have script with defined class (for instance, Singleton.php). This class implements classic singleton pattern as in PHP manual:
class Singleton {
private static $instance;
public static function getInstance()
{
if (!isset(self::$instance)) {
$c = __CLASS__;
self::$instance = new $c;
...
i have a form that utilizes checkboxes.
<input type="checkbox" name="check[]" value="notsure"> Not Sure, Please help me determine <br />
<input type="checkbox" name="check[]" value="keyboard"> Keyboard <br />
<input type="checkbox" name="check[]" value="touchscreen"> Touch Screen Monitors <br />...
Hi,
I have the following setup:
A MySQL database with a table 'transactions', containing (among other things) transaction_id, price, time and uid.
I need to create a chart (I'm using flot) that will show a user his/her's sales volume (not price).
I need an indicator to move the y axis of the chart.
I was thinking of aggregating the tot...
hey
Does anyone know of a good php or ajax multiple file upload script to upload to a web server?
The difference here is that nothing can be required on the client machine ie no flash!
I would like it to work just with the browser.
...
Hello,
I'm currently using the Amazon S3 PHP Class, getObjectInfo()
The line I'm using is this:
$info = $s3->getObjectInfo($bucketName, baseName($uploadFile));
echo "S3::getObjecInfo(): Info for {$bucketName}/".baseName($uploadFile).': '.print_r($info, 1);
And it returns something like this:
S3::getObjecInfo(): Info for media...