I am using the Select query as
SELECT id, ordering FROM `jos_menu` WHERE ordering='".$rec['ordering'] -'1' ."' AND parent = '0'
Here I need all the records whose ordering is less than 1 of the selected record's order($rec['ordering'] = getting from other select query ) when I am trying to echo the query I am not getting complete stat...
Hi there, I have a site hosted on 1and1 and a couple of weeks ago I noticed a hacker had put a .php file on the server that when viewed in a browser exposed my DB schema, DB connection strings, FTP account (for file uploads using a form), etc, etc. Naturally I panicked and I wiped the server and reuploaded my files. Fortunatley I encrypt...
It is possible to make the php projects in exe format (i.e like vb project exe format) ?
Please help me, thanks in advance
...
We have three domains hosted on one dedicated server each with its own dedicated IP.
Domain A - Has the server primary IP address (default server IP)
Domain B - Has its own IP address
Domain C - has its own IP address
If an email goes out from Domain B then it uses the Domain A IP address in outgoing and this makes emails from Domain ...
<?php>
while($row = mysql_fetch_array($result2))
{
echo "<tr>";
echo "<td>" . $row['IDNO'] . "</td>";
echo "<td>" . $row['ADDRESS'] . "</td>";
echo "<td>" . $row['LASTNAME'] . "</td>";
echo "<td>" . $row['FIRSTNAME'] . "</td>";
echo "<td>" . <a href='update.php'>view</a> . "</td>";
...
hi guys,
i'm looking for the fastest way to do an integer division in php. for example, 5 / 2 schould be 2 | 6 / 2 should be 3 and so on. if i simply do this, php will return 2.5 in the first case, the only solution i could find was using intval($my_number/2) - wich isn't as fast as i want it to be (but gives the expected results).
can...
I have an array which is converted from an XML response. What I need to do is sort the array ascending alphabetically using the 'COMPANY' value.
I have attempted to use array_multisort, but I'm having no luck at all. Any help would be greatly appreciated.
Here is the array:
array(1) {
["DATASOURCE"]=>
array(1) {
["MEMBER"]=>
...
Hello,
I'm basically looking to simply print out each of the allowed values in a CCK field..
i know the allowed values are stored inside a text field within the table: 'content_node_field'.
the values are then stored within 'global_settings'
I'm looking to somehow print out each individual allowed value using a PHP loop.
however wit...
So the user may search for "10 mbit" after which I want to capture the "10" so I can use it in a speed-search rather than a string-search. This isn't a problem, the below regexp does this fine:
if (preg_match("/(\d+)\smbit/", $string)){ ... }
But, the user may search for something like "10/10 mbit" or "10-100 mbit". I don't want to ma...
Hi,
how can i convert an index to an string ?
For example i would like to get the 'signin' index here:
array(1) {
["signin"]=>
array(2) {
["email_address"]=>
string(0) ""
["password"]=>
string(0) ""
}
}
Javi
...
Here are the objects:
courses
{ "name" : "Biology", "_id" : ObjectId("4b0552b0f0da7d1eb6f126a1") }
students
{
"name" : "Joe",
"classes" : [
{
"$ref" : "courses",
"$id" : ObjectId("4b0552b0f0da7d1eb6f126a1")
}
],
"_id" : Object...
I have a class called Report.
I have several classes that inherit from report, ClientReport, ClientVisitReport...
class Report {
...
public function load($id) {
...
}
}
class ClientReport extends Report {
...
public function load($id) {
parent::load($id);
...
}
}
class ClientVisitReport ex...
I use Spreadsheet_Excel_Writer to generate .xls file and it works fine until I have to deal with a large amount of data. On certain stage it just writes some nonsense chars and quits filling certain columns. However some columns are field up to the end (generally numeric data)
I'm not quite sure how the xls document is formed: row by ro...
The code "abs(070000)" returns 28672, but the code "abs(70000)" returns 70000.
Did the zero at the beginning means that the number is interpreted as hex?
Thank you!
...
I have a list of checkboxes like you would see in most email clients (You tick a box press delete then it deletes an email).
<input type="checkbox" value="yes" name="box[]" />
The problem stands here ...
print_r($_POST['box']);//Returns nothing at all ...
var_dump($_POST['box']);// returns null...
I was reading something about regi...
This is the content on my view page and i want to replace the value from "0" when the monthfunc() is called...the monthfunc() is given below the view content
<tr>
<td>
<input type="submit" name="monthplus" id="monthplus" onClick="return monthfunc('monthplus');" value=">>>>>>">
<input type="hidden" name="monthnum" id="monthnum" value="1...
Hi,
i'm writing this:
echo "foo";
echo "\n";
echo "bar";
and "bar" is not written in the line below.
What am i doing wrong?
Javi
...
hi,
i have following json format
{
"status": "ACTIVE",
"result": false,
"isworking": false,
"margin": 1,
"employee": {
"111": {
"val1": 5.7000000000000002,
"val2": "9/2",
"val3": 5.7000000000000002
},
"222": {
"val1": 31.550000000000001,
...
I want to give users the option to format text like bold, italic, add image etc ...
I want to give list of options as such as given here in stackoverflow while asking questions
Where can i find any predefined scripts for that? I searched on google , but i think i haven't searched with a proper text and i couldn't find anything releva...
Hello. How can I remove the first number in a string? Say if I had these 48 numbers seperated with a ',' (comma):
8,5,8,10,15,20,27,25,60,31,25,39,25,31,26,28,80,28,27,31,27,29,26,35,8,5,8,10,15,20,27,25,60,31,25,39,25,31,26,28,80,28,27,31,27,29,26,35
How would I remove the "8," from the string? Thanks.
...