Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 24 of 24
Search took 0.10 seconds.
Search: Posts Made By: AnniHilatE
Forum: PHP 04-24-2009, 06:35 PM
Replies: 4
Views: 709
Posted By AnniHilatE
try using a print instead of echo and see if that...

try using a print instead of echo and see if that helps.

print "<b>$newsrow[news]</b>";
Forum: PHP 04-24-2009, 06:27 PM
Replies: 3
Views: 810
Posted By AnniHilatE
You are spot on right there. And i will be...

You are spot on right there. And i will be assuming that all those values are stored in your database...


function getProductLink($prodID, $databaseConnection){
$productQuery =...
Forum: PHP 04-24-2009, 06:03 PM
Replies: 3
Views: 807
Posted By AnniHilatE
You can access them without a loop, but i think...

You can access them without a loop, but i think thats ONLY if your selecting a single row, otherwise you will lose data if selecting more than 1 result.

So for populating your array with a series...
Forum: Post a PHP snippet 04-24-2009, 07:33 AM
Replies: 0
Views: 2,066
Posted By AnniHilatE
String Formatter with regular expression.

This probably isnt the greatest code to do the job, but it does it none the less.
The only things that need setting up, are the separators and the words you want to retain the formatting for.

...
Forum: PHP 04-24-2009, 07:12 AM
Replies: 5
Views: 2,962
Posted By AnniHilatE
ok, im not sure if there is an easier way to do...

ok, im not sure if there is an easier way to do this... but here is my attempt

/** AnniHilatE **
* checkString() - A function which will perform
* pattern replacement ( preg_replace ) leaving...
Forum: PHP 04-24-2009, 02:41 AM
Replies: 5
Views: 2,962
Posted By AnniHilatE
so the result your looking for would be similar...

so the result your looking for would be similar to:

SORT_BUTTON_SPECIAL=5,SORT_ORDER_UP=1,SORT_ORDER_DOWN=2,SORT_BUTTON_RANK=2,NAME="John Doe"

this?
Forum: PHP 04-24-2009, 02:29 AM
Replies: 3
Views: 804
Posted By AnniHilatE
Im not sure exactly what you mean by your "data...

Im not sure exactly what you mean by your "data on another page".
Would this data be variables which you have defined on one page, that aren't defined on another page?

If so, then you may want to...
Forum: PHP 04-24-2009, 02:26 AM
Replies: 3
Views: 1,945
Posted By AnniHilatE
I found THIS...

I found THIS (http://phpsec.org/projects/guide/4.html) page regarding to session hijacking. Because i really dont know how easy it is, but it almost seems straightforward enough without some sort of...
Forum: PHP 04-24-2009, 01:11 AM
Replies: 3
Views: 1,945
Posted By AnniHilatE
You could always try use something like what i...

You could always try use something like what i have done in
THIS POST (http://www.codingforums.com/showthread.php?t=164517) by using classes.
You can store user levels in a session, but my personal...
Forum: PHP 04-23-2009, 05:28 PM
Replies: 8
Views: 707
Posted By AnniHilatE
I made a mistake in my object construction in the...

I made a mistake in my object construction in the previous example, sorry, but i fixed it.

And i also know the code your modifying :D

simply add into your Session class:

function...
Forum: PHP 04-23-2009, 03:29 PM
Replies: 8
Views: 707
Posted By AnniHilatE
Why not just make it into a function and pass...

Why not just make it into a function and pass your database class to it?

function getCountry(databaseClass $database){
$req_user_info = $database->getUserInfo($session->username);
/*...
Forum: PHP 04-23-2009, 01:16 PM
Replies: 8
Views: 1,153
Posted By AnniHilatE
well, now that presents me with a problem (i...

well, now that presents me with a problem (i think).
This is my current config.inc.php

//***************************
// Object handelling
//***************************
$error = new Error();...
Forum: PHP 04-23-2009, 12:38 PM
Replies: 8
Views: 1,153
Posted By AnniHilatE
Uhh ok, it wasnt returning null, but: ...

Uhh ok, it wasnt returning null, but:

array(14) {
[0]=>
string(1) "4"
["id"]=>
string(1) "4"
[1]=>
string(1) "9"
["userLevel"]=>
Forum: PHP 04-23-2009, 11:58 AM
Replies: 8
Views: 1,153
Posted By AnniHilatE
just applied the changes, the only things...

just applied the changes,

the only things which are coming up in the login.php are:

Notice: Undefined index: username in C:\wamp\www\weirynet\dev\tools\session.php on line 60

Notice:...
Forum: PHP 04-23-2009, 11:19 AM
Replies: 8
Views: 1,153
Posted By AnniHilatE
I really dont want to, but i really need the...

I really dont want to, but i really need the help..
Bump
Forum: PHP 04-23-2009, 11:17 AM
Replies: 9
Views: 1,549
Posted By AnniHilatE
If you are setting the disclaimer for registered...

If you are setting the disclaimer for registered users then you could always just have a boolean field in a database determining if that user has accepted or not.

otherwise, yes, you will have to...
Forum: PHP 04-23-2009, 11:12 AM
Replies: 5
Views: 650
Posted By AnniHilatE
This is more of an SQL problem, now im sorry, but...

This is more of an SQL problem, now im sorry, but im not great at SQL... but maybe something similar to this


SELECT `userdata`.`rating`, `scoring`.`score`, `scoring`.`rating`
FROM `userdata`,...
Forum: PHP 04-23-2009, 09:27 AM
Replies: 6
Views: 1,511
Posted By AnniHilatE
OOP becomes invaluable when you start developing...

OOP becomes invaluable when you start developing things such as user management, session management, error handling etc.

From Wikipedia - OOP...
Forum: PHP 04-23-2009, 09:05 AM
Replies: 2
Views: 598
Posted By AnniHilatE
Agreed, this is most likely the cause if you do...

Agreed, this is most likely the cause if you do not have a web server.
WAMP Server (http://www.wampserver.com/en/) is a rather easy server to setup on your own Windows computer.

If you already...
Forum: PHP 04-23-2009, 07:17 AM
Replies: 3
Views: 784
Posted By AnniHilatE
Thumbs up Hey, I cant help a whole lot right now, but...

Hey,

I cant help a whole lot right now, but basically when i read that, i can sort of see what you need.

basically you will have a variable $strCount; which will count the current position in...
Forum: PHP 04-23-2009, 07:02 AM
Replies: 1
Views: 1,077
Posted By AnniHilatE
Yes, although i wouldn't say this would be the...

Yes, although i wouldn't say this would be the most efficient way of doing it.


Even if you pass the parent class, private variables are still private.
To do this you will need to have
...
Forum: PHP 04-22-2009, 01:33 PM
Replies: 8
Views: 1,153
Posted By AnniHilatE
Exclamation Trouble accessing class variables

Hi Guys,

got a quick question here, that will probably be an easy resolve... but,
my class is having trouble storing data in some class variables.
Code time..


class Session{

var...
Forum: PHP 04-22-2009, 01:16 PM
Replies: 4
Views: 1,583
Posted By AnniHilatE
Hey, An easy way to have this set up, would...

Hey,

An easy way to have this set up, would be similar to what i use.

/* config.inc.php */
$dbArray = array('dbServer' => 'servername', 'dbUser' => 'username', 'dbPass' => 'password', 'dbName'...
Forum: Post a JavaScript 08-19-2004, 09:18 AM
Replies: 114
Views: 119,001
Posted By AnniHilatE
Cool yeh i had the same problem when i was editing the...

yeh i had the same problem when i was editing the code of the .js file. and me not being a JS person took a while to figure it out. i did eventually find out how to do it.
eg. say you have the...
Showing results 1 to 24 of 24

 
Forum Jump

All times are GMT +1. The time now is 07:48 AM.