Search found 15 matches

by Ebula
Thu Mar 27, 2003 4:50 am
Forum: General Discussion
Topic: age
Replies: 116
Views: 25516

21, Been using PHP for 2 years, Soldier at the moment, Electronic Warfare / German Defence Akademie.
by Ebula
Thu Mar 27, 2003 4:42 am
Forum: General Discussion
Topic: My PHP written forum
Replies: 6
Views: 2117

Looks pretty fly, I like the fact that you did not preformat the main text in the posts. But maybe you should exchange your buttons/icons, looks like its a very modded phpBB 'cause of them...
by Ebula
Thu Mar 27, 2003 1:53 am
Forum: General Discussion
Topic: GUI
Replies: 0
Views: 842

GUI

Hello,

I am programming a CMS for an Intra/Internet project. The problem that I have is that I am no Ace at designing a GUI, :oops: especially one that is 100% idiot-proof. Does anyone know some Sites or Tutorials for designing web GUIs?

[..edit]

The GUI is for the Admin part of the programm.
by Ebula
Tue Mar 25, 2003 7:25 am
Forum: PHP - Code
Topic: Finding and extracting parts of a string
Replies: 8
Views: 910

use print_r($project) to look at what your array looks like. You might have to pop the first entry du to a bug in the array_unique function.

Ebula
by Ebula
Tue Mar 25, 2003 6:01 am
Forum: PHP - Code
Topic: Some webshop building questions/problems
Replies: 4
Views: 669

I am not gonna start to write the shop for you, since then you are never gonna learn, but you should try following concept: For the table in your DB where you store the product info, you should assign a unique id to every product. Using this id you can later on easiely access the info about the diff...
by Ebula
Tue Mar 25, 2003 5:47 am
Forum: PHP - Code
Topic: Finding and extracting parts of a string
Replies: 8
Views: 910

use explode to turn the string into an array, next use array_unique to get rid of double values.
by Ebula
Tue Mar 25, 2003 5:39 am
Forum: Databases
Topic: Combining Strings in MySQL
Replies: 2
Views: 524

Jup. Thanx. Didn't think I would need a function for that...
by Ebula
Tue Mar 25, 2003 2:51 am
Forum: Databases
Topic: Combining Strings in MySQL
Replies: 2
Views: 524

Combining Strings in MySQL

I have been looking through the MySQL Manual and I just can't find how to combine strings in a query. like in php

Code: Select all

<?php
$Value = $Value."string";

?>
Does MySQL support that at all?
by Ebula
Mon Mar 24, 2003 4:27 am
Forum: PHP - Code
Topic: imagepng to a file
Replies: 4
Views: 1098

I have been working quite a bit with these png funktions, here is a script that works. It generates a PNG which I display later on. <?php function MkPNG($Text,$FileName, $Font=3) { $PixLen = (110-(strlen($Text)*7))/2; $im = @ImageCreate (110, 20); $background_color = ImageColorAllocate ($im, 0, 52, ...
by Ebula
Fri Mar 21, 2003 12:55 am
Forum: PHP - Code
Topic: Some webshop building questions/problems
Replies: 4
Views: 669

Your Idea about the session is correct. Depending on the Complexity of your shop I would either store the Shopping basket in a temp. Cookie (using setcookie() without setting an expire time) or creating a kind of temp. table in your db which is linked by an ID to the session of the User. You would j...
by Ebula
Thu Mar 20, 2003 8:23 am
Forum: PHP - Code
Topic: PHP Editor
Replies: 1
Views: 391

PHP Editor

I would like to know which editors are used for creating PHP scripts/ projects. I am using HTML-Kit with a couple of php-plug-ins. How about you? Is there any good php dev. environment??
by Ebula
Thu Mar 20, 2003 8:02 am
Forum: PHP - Code
Topic: wraping code that inludes SESSIONS in a function
Replies: 6
Views: 918

Just a quick not: In view of futur PHP versions I would use $_SESSION instead of $HTTP_SESSION_VARS. Check the phpmanual about Predefined Variables.
Maybe this also solves the prob....
by Ebula
Thu Mar 20, 2003 2:02 am
Forum: Databases
Topic: Limited results MySQL query - Newbie
Replies: 4
Views: 691

You have to format your ORDER BY so that you order the rows by the date (as you already do). then just use LIMIT 10 at the end of your Clause. i.e. SELECT * FROM Table WHERE Field = Value ORDER BY Date DESC LIMIT 10.
by Ebula
Thu Mar 20, 2003 1:37 am
Forum: Databases
Topic: Limited results MySQL query - Newbie
Replies: 4
Views: 691

First of all, you should read the helpfiles to MySQL.
To your problem, use "SELECT * FROM Table LIMIT 10", for 10 results. LIMIT works as follows:
LIMIT (int Amount),(int start).
i.e. LIMIT 10, 30 returns results 31-40.
by Ebula
Wed Mar 19, 2003 7:21 am
Forum: Databases
Topic: mysql_fetch_array(): supplied argument is not a valid MySQL
Replies: 2
Views: 735

Use mysql_error(); to check if the query works properly, and maybe try to use mysql_num_rows($result); to check if the query returns anthing at all.

Cheers,

Ebula