TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 25 of 41
Search took 0.15 seconds.
Search: Posts Made By: webosb
Forum: General 09-23-2010, 08:30 PM
Replies: 2
Views: 633
Posted By webosb
OK... I did take out a function I wrote which...

OK... I did take out a function I wrote which counted results per number... Inside the each loop.. there is a count function that would count the amount of values and if it exceeded 200, it would go...
Forum: General 09-23-2010, 03:25 PM
Replies: 2
Views: 633
Posted By webosb
looping through the alphabet

I'm trying to mess around with arrays right now relating to letters in the alphabet. Is there anyway to code this better:


<?php
header("Content-type: text/plain");
$arr =...
Forum: General 07-09-2010, 06:33 PM
Replies: 6
Views: 2,028
Posted By webosb
Salathe, once again, thanks a million for...

Salathe, once again, thanks a million for introducing me to xslt. I played around with the code and got it working. I'm really starting to like XSL now.

If anyone wants to know how I got it to sort,...
Forum: General 07-08-2010, 01:46 PM
Replies: 6
Views: 2,028
Posted By webosb
wow, i never knew XSLT can do this kind of stuff....

wow, i never knew XSLT can do this kind of stuff. thanks for showing me an example to learn from. i'll do some more reading on this.

Can you tell me how I would work with namespaces on...
Forum: General 07-07-2010, 07:40 PM
Replies: 6
Views: 2,028
Posted By webosb
Doing it with XSL would be great but it's not my...

Doing it with XSL would be great but it's not my xml feed.

I'll look into uasort (never used it before).

Thanks in advance!
Forum: General 07-07-2010, 03:04 PM
Replies: 6
Views: 2,028
Posted By webosb
sorting simplexml data by date

Need help with sorting simplexml data by date.

I'm pulling data from an xml feed with simplexml. But the problem is the output doesn't have any kind of ordering. I want to be able to sort them by...
Forum: MySQL & Databases 04-09-2009, 05:25 PM
Replies: 7
Views: 901
Posted By webosb
I was able to get it to work with this...

I was able to get it to work with this query:

SELECT
round(
(
(SELECT unix_timestamp(signupdate) FROM users WHERE ipaddress = "10.10.1.100" ORDER BY signupdate DESC LIMIT 1)
-
(SELECT...
Forum: MySQL & Databases 04-09-2009, 03:55 PM
Replies: 7
Views: 901
Posted By webosb
So are you saying that I should use sub-selects...

So are you saying that I should use sub-selects to put out the values together into 1 query to do the math?
Forum: MySQL & Databases 04-09-2009, 03:34 PM
Replies: 7
Views: 901
Posted By webosb
I need help with a query to get the amount of minutes from DATETIME

So I have a column called "signupdate" that is a datetime datatype. And I want to be able to get the elapsed time it took between signups of a user with the same ip address. I never formulated...
Forum: General 01-29-2009, 03:33 PM
Replies: 2
Views: 1,577
Posted By webosb
Sorry for the confusion but this is what I want...

Sorry for the confusion but this is what I want to accomplish:

- Create a front-end to edit the array values in myData.php

so far, i got the data to display in the front end with this...
Forum: General 01-27-2009, 04:55 PM
Replies: 2
Views: 1,577
Posted By webosb
need help on editing php files with arrays with php

not sure if this is the most efficient way of doing this but i have a file called myData.php that has the following:

<?php
$data = array(
array(
"theURL" =>...
Forum: MySQL & Databases 07-25-2008, 07:30 PM
Replies: 3
Views: 1,350
Posted By webosb
advice on datetime data type

I need some advice on whether I should save unix timestamps in MySQL or should I create a datetime datatype and store it like YYYY-MM-DD HH:MM:SS

I'm trying to go with the most efficient way...
Forum: Absolute Beginners 05-22-2008, 02:10 PM
Replies: 3
Views: 1,124
Posted By webosb
checking email address domains

currently i'm checking with this method:

$email = "godjesus@hotmail.com";
$domain = explode( "@", $email );
if(($domain[1] == "yahoo.com") || ($domain[1] == "hotmail.com")){
echo "its either yahoo...
Forum: General 03-10-2008, 03:53 AM
Replies: 11
Views: 1,190
Posted By webosb
Should I drop PHP for Java?

I've been working for a dot com company for over a year now. The main website is java based and I realized alot of big companies out there also use java. I guess I'm looking for insight - career wise...
Forum: General 02-25-2008, 04:14 PM
Replies: 5
Views: 1,156
Posted By webosb
so correct me if i'm wrong, it should work...

so correct me if i'm wrong, it should work something like this:

(im just using dupecheckid() function as an example - but the function would run a query like SELECT * FROM table WHERE uid =...
Forum: General 02-25-2008, 02:44 PM
Replies: 5
Views: 1,156
Posted By webosb
need advice for creating personalized urls

i'm trying to figure out whats the best way I can do this..

i want to create a unique string either based on userid or email for personalized urls sort of like how youtube...
Forum: MySQL & Databases 02-13-2008, 02:41 PM
Replies: 3
Views: 3,186
Posted By webosb
I had to change it a lil bit to: WHERE sup_date...

I had to change it a lil bit to:

WHERE sup_date <= UNIX_TIMESTAMP(NOW())
AND sup_date >= UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 30 DAY))

but it works great Salathe. much thanks. you've been very...
Forum: MySQL & Databases 02-13-2008, 05:14 AM
Replies: 3
Views: 3,186
Posted By webosb
i figured it out, here's what i did if this is...

i figured it out, here's what i did if this is useful to anyone else

SELECT DATE_FORMAT(FROM_UNIXTIME(sup_date),"%m-%d-%Y") as sdate, COUNT(id) as scount FROM users WHERE sup_date > "1199145600" AND...
Forum: MySQL & Databases 02-13-2008, 04:44 AM
Replies: 3
Views: 3,186
Posted By webosb
unix timestamps and group by

OK, i'm having trouble with a query that I hope someone can help me with...

I have a table that stores signup dates in unix timestamp format and I'm having problems trying to output data in this...
Forum: General 02-06-2008, 09:37 PM
Replies: 3
Views: 772
Posted By webosb
Thanks guy. Exactly what I was looking for.

Thanks guy. Exactly what I was looking for.
Forum: General 02-06-2008, 08:55 PM
Replies: 3
Views: 772
Posted By webosb
Combining RSS Feeds - Any Suggestions

Whats a good method to use if I wanted to accomplish this? Say if I want to output a RSS feed that displays from two remote websites (Lastest 5 from CNN and Latest 5 from Slashdot).
Forum: Absolute Beginners 01-15-2008, 09:08 PM
Replies: 2
Views: 643
Posted By webosb
exporting data to csv

currently i have a script that exports to csv file from mysql but it seems as there are more rows of data, the script kind of stops working...

current i'm using this function:


function...
Forum: MySQL & Databases 01-11-2008, 10:12 PM
Replies: 5
Views: 910
Posted By webosb
This is exactly what I wanted. I'm still new to...

This is exactly what I wanted. I'm still new to GROUP BY. Thanks alot Salathe!
Forum: MySQL & Databases 01-11-2008, 08:10 PM
Replies: 5
Views: 910
Posted By webosb
Need help with a query

Right now, I am using this query to grab all the email domain names from all my users:

SELECT DISTINCT REVERSE(LEFT(REVERSE(email),LOCATE('@',REVERSE(email)) - 1)) AS domain FROM users ORDER BY...
Forum: Absolute Beginners 01-02-2008, 02:47 PM
Replies: 3
Views: 673
Posted By webosb
my way of templating, is this a good method?

in terms of speed and low cpu loads, is this a good way to go?

$html = file_get_contents("home.tpl");
$html = str_replace("%fname%", $firstname, $html);
$html = str_replace("%lname%", $lastname,...
Showing results 1 to 25 of 41

 

All times are GMT. The time now is 01:18 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design