Description:
PHP, server side scripting.
|
|
|
fetch items from a row
|
| |
How would I change the '42' value to a string value based upon the value
retrieved from using $_GET('number')?
<?php
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
...$row = mysql_fetch_row($result);... more »
|
|
displaying image
|
| |
[link]
Click on first link only.
I am using a 2d array and want to display an image based upon the number
key of that array.
<?php echo "<img src='$list[1]['cover']'>"; ?>
This line gives a place holder in firefox and in IE.
It should at least show this image.... more »
|
|
SoapServer constructor parameters: what is actor uri?
|
| |
Hi,
as the subject, what is the "actor uri" in the SoapServer second paramater constructor?
I can't understand it.
And what about passing NULL as first parameter?
The guide says:
pass NULL and set the uri option to the target namespace for the server.
That is?
Thanks.
-- Giacomo... more »
|
|
determine a mysqli_result object
|
| |
I have a class that I am converting from mysql to mysqli in PHP 5.2.x
The problem I ran into is this.
Previously I could check the mysql_query if it return a resource by using:
is_resource($resource)
and could parse the resource using mysql_fetch_assoc or similar
and if it was an insert, update, etc.. it would not return a resource... more »
|
|
Got a chuckle and wanted to share.
|
| |
I was brushing up on some debugging techniques and ran across a page with this quote that made me chuckle.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan... more »
|
|
Undefined variable
|
| |
I have an simple MySQL/PHP app and it appears to be functional but the
webmaster has informed me that it is throwing lots of errors. So he
showed me the log file and I am trying to remedy the issues, but have
a question.
For instance, I have a block of code, such as:
if ($iBookedBy=="Other") {... more »
|
|
use a value form a manu list in a form on the same page
|
| |
newbie php <s.hoiti...@gmail.com> wrote in news:0bb368d4-5bd4-4cbb-aeb9-
6962aa134b6d@googlegroups.com:
...chosen value should be multiplied by a value of 2750 which should be stored in a variable and shown on the page (recalculated by any change in the list)
...the chosen value in a variable.... more »
|
|
googleapi problem
|
| |
[link]
There is supposed to a table shown in the green block.
Even if I put the PHP generated table into an html page entirely, with the
youtube player, I get the same results.
As soon as I remove the player, the table shows.
How can I have both at the same time?... more »
|
|
|