Search found 39 matches

by cho@
Wed Sep 17, 2003 7:18 am
Forum: PHP coding => General
Topic: can't get my session working
Replies: 3
Views: 1093

can't get my session working

Hi, I m creating a session after a user login... here an extract where I create it if($found ==1){ $Result = mysql_query("SELECT * FROM user WHERE user='$user'", $Link); $Row = mysql_fetch_array($Result); session_start(); session_register('privilege...
by cho@
Wed Sep 10, 2003 10:09 am
Forum: PHP coding => General
Topic: chmod 777
Replies: 1
Views: 631

chmod 777

hi,

Does anybody knws why I can only reach my web pages on my server only if they are 777, xwr for everybody ???

I dont understand..
I am running on Debian woody 3.0 on my server.
by cho@
Wed Sep 10, 2003 9:53 am
Forum: JavaScript
Topic: OnChange doesn-t work !!!!
Replies: 2
Views: 2104

it is because i didnt put all my arrays (i have 9 of them, generated with a php scrpit) multimedia_C,_I, _H and same for information-technology and internet-technology I have just for testing put the value at multimedia_C, ... for my select In the final version it will have a select for the level (C...
by cho@
Wed Sep 10, 2003 7:17 am
Forum: JavaScript
Topic: OnChange doesn-t work !!!!
Replies: 2
Views: 2104

OnChange doesn-t work !!!!

hi, I have got my script like that <script language="JavaScript" type="text/javascript"> <!-- hide var multimedia_C = new Array("database", "system_software", "media", "www_publishing", ) ; var multimedia_I = new Array("not...
by cho@
Tue Sep 09, 2003 2:21 am
Forum: PHP coding => General
Topic: download script
Replies: 1
Views: 678

i ve found it here

http://www.php.net/header
by cho@
Tue Sep 09, 2003 12:49 am
Forum: PHP coding => General
Topic: download script
Replies: 1
Views: 678

download script

Hi, I have a problem with my downloading script: in my current page I have a link like: echo "<a href='download.php?doc=$file'> $file</a><br/>"; where $file is : file.ext and then my download page <? $file= $HTTP_GET_VARS['doc']; header("Content-Type: application/download\n"&...
by cho@
Mon Sep 08, 2003 8:31 am
Forum: PHP coding => General
Topic: file icons
Replies: 2
Views: 806

file icons

Hi, I wonder if anybody knows how to get the icon (in windows) corresponding to the file type...Cuz all my clients (browser) will be using windows I dont knw if its possible because the server apache, php that I use is under Linux Debian 3.0 and as php is server side... If you have some ideas Thanks...
by cho@
Mon Sep 08, 2003 1:56 am
Forum: PHP coding => General
Topic: file download....
Replies: 2
Views: 777

file download....

Hi, I have written a small script allowing users to download a file by simply click on the link.... The link looks like that: echo "file: <a href=\"download.php?doc=$file\" class=maintext>$file</a><br>"; And here the code in my download.php file <? $file= $HTTP_GET_VARS['doc']; h...
by cho@
Wed Sep 03, 2003 2:17 am
Forum: mySQL & php coding
Topic: Fatal error at call mysql_connet();
Replies: 2
Views: 835

I ve found my mistake....

apt-get install php4-mysql

MySQL module wasnt installed for php....
:oops:

francois
by cho@
Tue Sep 02, 2003 8:02 am
Forum: mySQL & php coding
Topic: Fatal error at call mysql_connet();
Replies: 2
Views: 835

Fatal error at call mysql_connet();

Hello, I have a small problem. I am using Linux Debian woody 3.0 and I have installed Apache and php on several of my machines. On 2 another one I have installed MySQL (Master - Slave). I can connect localy to my DB and run query no probs. In an .inc file where i have mysql_connect("host", "user", "...
by cho@
Thu Sep 12, 2002 5:18 am
Forum: PHP coding => General
Topic: select a date....
Replies: 0
Views: 1159

select a date....

Hi
i'd like to delete all the data in a table which are stored since more dan one month....

DELETE FROM table WHERE datefiled > NOW()+ one month.....

is it possible to do like dat.....

how do i had a month to NOW().....
i use a Mysql database...

thanks for ur help

bye
by cho@
Mon Sep 02, 2002 2:07 am
Forum: PHP coding => General
Topic: Form submission
Replies: 7
Views: 2470

$_GET and $_POST (depend on the method in your form)...are only available in version sup at 4.1.x

if u have an older version you will have to use $HTTP_GET_VARS or $HTTP_POST_VARS......



bye
Cho@
by cho@
Fri Aug 30, 2002 2:51 am
Forum: PHP coding => General
Topic: [b]is it possible?!?......[/b]
Replies: 3
Views: 1934

another solution can be to run the 2 query's and store them in 2 array's. the walk through the arrays and remove what you don't want, this is a bit slower though. That was my first though and it works good.(in a multidimention array)..but i though like u just told me that it will be slower.... So t...
by cho@
Fri Aug 30, 2002 1:23 am
Forum: PHP coding => General
Topic: [b]is it possible?!?......[/b]
Replies: 3
Views: 1934

SELECT LName, FName, forum1.*, views, content, forum2.idlink, forum2.date FROM member, forum as forum1, forum as forum2 WHERE forum1.type LIKE 'topic' AND forum1.authorID = member.ID AND forum1.id = forum2.idlink ORDER BY date DESC With this query i have only the topic where a reply has been post i...
by cho@
Thu Aug 29, 2002 9:23 am
Forum: PHP coding => General
Topic: [b]is it possible?!?......[/b]
Replies: 3
Views: 1934

[b]is it possible?!?......[/b]

I knw dat its possible to force mysql to create a temporary table with the option SQL_BUFFER_RESULT but i like to knw if its possible to do a SELECT in this table ??????? and if yes how? My prob is that i wanna do a kind of left jonction on the same table ?!?...I knw its sounds wierd but its like da...
by cho@
Thu Aug 29, 2002 8:21 am
Forum: PHP General
Topic: How to Show video clipping on web page also a live show on w
Replies: 3
Views: 2509

Re: How to Show video clipping on web page also a live show

vikaspa wrote:
2. He also want me to show live telecast of a seminar
What arrangement I ned to do
From hardware point of view as well as Software point of view



maybe if u try with a web cam for the filming and and sofware link netmeeting on the other side....

but im not sure at all
by cho@
Thu Aug 29, 2002 8:19 am
Forum: PHP General
Topic: How to Show video clipping on web page also a live show on w
Replies: 3
Views: 2509

for the video view if u dont wann alet the user download it
use the ACTIVE X.......
by cho@
Thu Aug 29, 2002 8:13 am
Forum: mySQL & php coding
Topic: is it possible ?????????????...
Replies: 1
Views: 1554

is it possible ?????????????...

I knw dat its possible to force mysql to create a temporary table with the option SQL_BUFFER_RESULT but i like to knw if its possible to do a SELECT in this table ??????? and if yes how? My prob is that i wanna do a kind of left jonction on the same table ?!?...I knw its sounds wierd but its like da...
by cho@
Thu Aug 29, 2002 8:04 am
Forum: mySQL & php coding
Topic: Help with resquesting info from a MySQL Database
Replies: 1
Views: 1312

If i have well understood.... For that all it s happening in your request you have your category in your URL so use the $_GET array witch content all the var that u pass with your URL then do something like $cat = $_GET['Category']; and then if($cat) { $result = mysql_query(" SELECT * FROM ringtone ...
by cho@
Tue Aug 27, 2002 7:11 am
Forum: PHP coding => General
Topic: how to increase the speed of a script
Replies: 2
Views: 1695

how to increase the speed of a script

is anybody knws how to increase the speed of a php page...

i mean which factors ...


thx
cho@
by cho@
Tue Aug 27, 2002 7:09 am
Forum: PHP coding => General
Topic: help....upgrade
Replies: 2
Views: 1986

:D

thanx will

cho@
by cho@
Tue Aug 27, 2002 6:58 am
Forum: PHP coding => General
Topic: help....upgrade
Replies: 2
Views: 1986

help....upgrade

i am using PHP 4.0.5...so the arrays $_POST and so on are not available.. then i am using the array $HTTP_POST_VARS and so on in order to transmit my var to the next step in my form... i wonder if after an upgrade to PHP 4.1.* or highter (i mean a version where the $_POST are ok).. then if the array...
by cho@
Fri Aug 23, 2002 3:20 am
Forum: PHP coding => General
Topic: want to send a picture with a form..
Replies: 1
Views: 1409

want to send a picture with a form..

I wonder if its possible to sed a picture with a form.. I wish that the user can send a article with some pictures online.. so i need to send the pic (or the pathand the host ip address) with it and then save this pics on the server in an apropriate file..in order to b display l8er one on the site.....
by cho@
Fri Aug 23, 2002 3:17 am
Forum: PHP coding => General
Topic: Cannot Define Variable
Replies: 16
Views: 7890

so .... if i change all my var declaration in $POST[varname].... will it works even if the "register_globals" is set to "on".???.. like that no probs anymore if my boss ask me to put the "register_globals" is set to "off"... and just a last stuff.... can someone give my an address or explain me the ...
by cho@
Fri Aug 23, 2002 3:03 am
Forum: PHP coding => General
Topic: Cannot Define Variable
Replies: 16
Views: 7890

in all my script i use the variable without using $POST when i send my form... example: (it's just a part of the script) elseif($list == 3) { if($Sub_daily) { $Link = mysql_connect('localhost','root',''); mysql_select_db("imc",$Link); $contents = nl2br($contents); mysql_query("INSERT INTO news (auth...