Search found 19 matches

by devmatch
Thu Jun 12, 2003 11:08 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

error found:) look above :oops: by the way...

- select statement not product_id !!!! *
- and always set array like e.g. array['something'] -> '...' or "..." :!:
by devmatch
Thu Jun 12, 2003 2:44 am
Forum: PHP - Code
Topic: windows permissions
Replies: 2
Views: 863

take a look at the value of ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = then check the file permissions for that directory in your windows explorer (right-click on drive, properties, security settings/permissions/?) Do the same for yo...
by devmatch
Thu Jun 12, 2003 2:38 am
Forum: PHP - Code
Topic: php result different from mysql commandline
Replies: 10
Views: 1223

volka got there before me but I also had a play with the code: <?php // no need to select all the fields in the COUNT, in fact if you are only // looking to see if a field exists it might be easier to just do a normal // select on the id field $sql = "SELECT coupon_id FROM valid_for_category w...
by devmatch
Wed Jun 11, 2003 7:16 pm
Forum: PHP - Code
Topic: php script as cronjob???
Replies: 1
Views: 493

php script as cronjob???

hello php friends:) anyone knows how to start a php scriptas a cron job under windows xp??? i used execurl.exe (execurl http://...) but nothing happens... i wrote a .bat file and put it in the task planer!??? any link for help or some ideas? think i could simply get a task running with php.exe;) ope...
by devmatch
Wed Jun 11, 2003 8:32 am
Forum: PHP - Code
Topic: php result different from mysql commandline
Replies: 10
Views: 1223

The result of a count is allwase 1... Because it gives you back that it has 0 found. You have to check what's the value of the count, not the number of rows that's returned. thought its inverse??? 0 for found nothing!? and i used commandline there is no dat in db, but one of the variable is set to ...
by devmatch
Wed Jun 11, 2003 8:02 am
Forum: PHP - Code
Topic: php result different from mysql commandline
Replies: 10
Views: 1223

php result different from mysql commandline

it's me back again:) i've got following problem and don't know the reason for the error??? CODE: $sql_query2 = "SELECT COUNT(*) from valid_for_category where coupon_id='$coupon_id' and p_section_id='$row2[p_section_id]'"; $res2 = mysql_db_query($dbDatabase, $sql_query2, $dbh); if ( mysql_n...
by devmatch
Tue Jun 10, 2003 6:20 pm
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

find my solution script:)

<?php if ($img1_name == "") { ?> <html> <head> <title>Upload a File</title> </head> <!-- Formular: in einem Filepanel kann der Name des lokalen Files angegeben werden, das auf den Server hochgeladen werden soll. --> <body> <h1>Upload a File</h1> <form enctype="multipart/form-data&quo...
by devmatch
Tue Jun 10, 2003 6:03 pm
Forum: PHP - Code
Topic: windows permissions
Replies: 2
Views: 863

windows permissions

buen rollito, is there anybody who knows to change the permissions on windows xp to upload files? THX find something else: <?php if ($img1_name == "") { ?> <html> <head> <title>Upload a File</title> </head> <!-- Formular: in einem Filepanel kann der Name des lokalen Files angegeben werden,...
by devmatch
Tue Jun 10, 2003 5:34 am
Forum: PHP - Code
Topic: Switching Users or Chowning
Replies: 1
Views: 247

sounds simular

you have to write a script with move_uploaded_file... like the examples from the forum topic: sorry i don`t know the thread:( search,please...
imo it's the simular problem like fileupload under windows:( do you know a solution for changing permissions like r to rw under unix systems?
cu
by devmatch
Tue Jun 10, 2003 2:29 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

Re: using windoof

devmatch wrote:it is possible to change the user rights from r to rw in windows???
by devmatch
Tue Jun 10, 2003 1:07 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

using windoof

it is possible to change the user rights from r to rw???
by devmatch
Mon Jun 09, 2003 6:39 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

sorry for ymy problems:(

alternative i tried to upload the file in the webservers dir:

failed to create stream: Permission denied in c:\web\root\couponingenv\admin\addcoupon.php on line 28
:(
by devmatch
Mon Jun 09, 2003 5:49 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

testing,testing,testing...

... nothing... next test results in... <? mysql_connect("localhost","root",""); mysql_select_db("couponing"); $zeiger=mysql_query("select product_image from products where product_id = 100"); $res=mysql_fetch_array($zeiger); Header( "Pragma: no-...
by devmatch
Mon Jun 09, 2003 3:45 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

still not working

still not working:( is there a problem with <img src...???

i've tried to save the img in a directory, but there might be no permission to add a file via the client browser...

THX for LISTENING;)
by devmatch
Mon Jun 09, 2003 1:43 am
Forum: PHP - Code
Topic: only get a red cross
Replies: 15
Views: 1896

scripts...

request if x is set ... echo ( "<img src=\"viewImg.php?product_id=" . $product[id] . "\" width=\"" . $product[width] . "\" height=\"" . $product[height] ."\" alt=\"" . $product[name] . "\" align=\"left\">\...