Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 151
Search took 0.24 seconds.
Search: Posts Made By: moos3
Forum: MySQL 11-26-2009, 01:57 PM
Replies: 1
Views: 631
Posted By moos3
Odd Error from query

I'm getting the following error from this statement

Whole query: INSERT INTO `clip`.`notes` (`id`,`title`,`content`,`unique_id`,`create_date`,`lastChangeDate`) VALUES (NULL,`ModSecurity...
Forum: PHP 11-24-2009, 01:22 PM
Replies: 2
Views: 507
Posted By moos3
thanks that worked.

thanks that worked.
Forum: PHP 11-24-2009, 01:51 AM
Replies: 2
Views: 507
Posted By moos3
Simple XML help

I have the following code that I'm using to convert my tomboy notes to sql with php.

#!/usr/bin/env php
<?php

// tomboy extension
$location = '/home/rgenthner/.tomboy';
$extension =...
Forum: PHP 11-02-2008, 01:36 PM
Replies: 2
Views: 754
Posted By moos3
Writing Binary Packets to sockets

I have this piece of code that was written in C# and my company has done away with IIS servers.

bw.Write(source); // 1 byte
bw.Write(dataType); // 1 byte
...
Forum: PHP 03-21-2008, 05:10 PM
Replies: 1
Views: 992
Posted By moos3
array check to empty I ideas

not sure if this is the best way to check for nothing returned


$post[] = array();
$q = "SELECT title,body,author_id,id,cat_id FROM posts WHERE slug='$slug'";
$rs = mysql_query($q);...
Forum: PHP 03-21-2008, 12:18 AM
Replies: 1
Views: 447
Posted By moos3
Question PHP fatal error, Can't slove

I'm getting this in my php error log and can't figure out why?

PHP Fatal error: Call to a member function getComments() on a non-object in /Applications/MAMP/htdocs/index.php on line 29

<?php...
Forum: PHP 03-13-2008, 12:42 AM
Replies: 0
Views: 917
Posted By moos3
PHP setup script can't load sql file

I have a sql file that contains everything that is needed to setup the web application. All it is a php mysql dump I have the following function

// Populate Database using SQL file
function...
Forum: PHP 01-23-2008, 08:25 PM
Replies: 5
Views: 739
Posted By moos3
how do I handle it doing this last entry...

how do I handle it doing this

last entry was: -13901 days, -22 hours, -54 minutes, 0 seconds ago

its date stamp is 23 Jan 2008, 17:54
Forum: PHP 01-23-2008, 04:18 PM
Replies: 5
Views: 739
Posted By moos3
now to get it in mins hours seconds days since...

now to get it in mins hours seconds days since last

I would do the following:

$str_time = $time;
$m_time = $str_time / 60; // mins how get the reminder to show?
$h_time = $n_time /60; //...
Forum: PHP 01-23-2008, 06:31 AM
Replies: 5
Views: 739
Posted By moos3
math with time

whats the best way to handle figuring out how long ago it was from this date in the array storage


[DATE] => 22 Jan 2008, 18:23



from the current time?
Forum: PHP 12-09-2007, 09:50 PM
Replies: 6
Views: 685
Posted By moos3
is there a way to figure out current month other...

is there a way to figure out current month other then doing a php variable $month = date('m'); and then putting that in the sql like $year-$month-01 and $year-month-30 ??
Forum: PHP 12-09-2007, 08:52 PM
Replies: 6
Views: 685
Posted By moos3
t_date is a Date field. Cool thats so much better...

t_date is a Date field. Cool thats so much better the php.
Forum: PHP 12-09-2007, 08:32 PM
Replies: 6
Views: 685
Posted By moos3
yeah I'm using mysql, what i'm building is...

yeah I'm using mysql, what i'm building is dev.guthnur.net/concept.php cool thanks.
Forum: PHP 12-09-2007, 08:17 PM
Replies: 14
Views: 1,268
Posted By moos3
do this: $usr = $_SESSION['user']; ...

do this:

$usr = $_SESSION['user'];
$insertQuery = "UPDATE pass FROM cmsusers WHERE user ='$usr'";
$res = $connector->query($insertQuery);
var_dump($res);
break;

Put that before if ($result...
Forum: PHP 12-09-2007, 07:54 PM
Replies: 14
Views: 1,268
Posted By moos3
this may seem odd but were did you set $result? ...

this may seem odd but were did you set $result?

if ($result = $connector->query($insertQuery))

if its going to the error message then the problem is the above code. if result is defined then it...
Forum: PHP 12-09-2007, 07:50 PM
Replies: 6
Views: 685
Posted By moos3
bump. Whats the best way to figure out the date...

bump. Whats the best way to figure out the date for the past 7 days?
Forum: PHP 12-08-2007, 09:13 PM
Replies: 6
Views: 685
Posted By moos3
figure out data range of a week

What is the best way to figure out the date range of a week.
I thought some like this

$day = -7;
$date = $currentdate - $day;

I need it for a sql statement
[sql]
Select $t_task,$tot_time...
Forum: PHP 12-07-2007, 04:20 PM
Replies: 6
Views: 640
Posted By moos3
so how would you do it?

so how would you do it?
Forum: PHP 12-07-2007, 03:37 PM
Replies: 6
Views: 640
Posted By moos3
Cool, thanks, because is that I end up doing. ...

Cool, thanks, because is that I end up doing.

while($tags = mysql_fetch_array($res)){
$tname = $tags['name'];
$chartname[]=$tname;
$t_sql = "SELECT COUNT(name) AS tot FROM tags WHERE...
Forum: PHP 12-07-2007, 12:30 AM
Replies: 6
Views: 640
Posted By moos3
there is over 117 entries in the db.

there is over 117 entries in the db.
Forum: PHP 12-07-2007, 12:28 AM
Replies: 6
Views: 640
Posted By moos3
Trying to get a better handle on arrays

I'm trying to get better handle on arrays using db's

$charting = array("php"=>1,"code"=>10,"beer"=>5,"open source"=>30);

Thats the basic array I'm trying to make using the following

$res =...
Forum: PHP 12-06-2007, 03:49 AM
Replies: 2
Views: 450
Posted By moos3
so like this ??? ...

so like this ???

$new_body=implode("",$order_pro);
$body = $email_body.$new_body;

like that? i used "" because of the following code on how the array is made

function...
Forum: PHP 12-06-2007, 02:57 AM
Replies: 2
Views: 450
Posted By moos3
kinda of odd idea

is it possible to do the following?

$email_body.foreach($order_pro AS $k){.$k."\n\n".}.$shipping_info;


If not how do i add the array to the string $email_body
Forum: PHP 12-05-2007, 03:41 PM
Replies: 4
Views: 610
Posted By moos3
try this $description...

try this

$description =(string)$row2['description'];

or your can do this

settype($description, "string");


Should fix your issues, but it w3c only sees the html so check your syntax...
Forum: PHP 12-05-2007, 04:25 AM
Replies: 13
Views: 693
Posted By moos3
I have been doing php for a couple of years, but...

I have been doing php for a couple of years, but never with objects, so the handling of that I'm not sure on, I have everything working minus $this->products_order[$man_id], suggestions?
Showing results 1 to 25 of 151

 
Forum Jump

All times are GMT +1. The time now is 04:15 AM.