Search found 99 matches

by joecrack
Mon Feb 20, 2006 2:36 am
Forum: PHP - Code
Topic: thousand seperator prob
Replies: 2
Views: 291

sorry - i didnt tel you that there is a bunch of data comin in one $row. so if i do it like that - also for example the 'date' fields that i have in it will change. i could look in every row for numbers that are like #####.## and only change those .... with array_search - but how can i look for thos...
by joecrack
Mon Feb 20, 2006 2:27 am
Forum: PHP - Code
Topic: thousand seperator prob
Replies: 2
Views: 291

thousand seperator prob

i usually use this code to get the number format that i want: $jan['to_sam_jan']=number_format($jan['to_sam_jan'],2, '.', ','); But when i get my data like this: echo "</tr>"; while ($row = mysql_fetch_row($ergebnis)){ echo "<tr>"; for ($i = 0; $i < mysql_num_fields($ergebnis); $...
by joecrack
Thu Feb 09, 2006 3:15 am
Forum: PHP - Code
Topic: page turning script error
Replies: 10
Views: 650

could it be, that the problem is because of these results, that i dont use.
i have to say that its not my script :roll:
but i think this limits the output in someway !?!!

Code: Select all

$mail = @mysql_result($daten,$i, "mail");
by joecrack
Wed Jan 25, 2006 11:20 pm
Forum: PHP - Code
Topic: page turning script error
Replies: 10
Views: 650

there is a reason why i put in -1. But you know what the table is supposed to do. Put the table with the same number of datasets on the NEXT PAGE. And now that i changed the html code for the table it is not working at all. With the first code that i posted it worked for a dataset limit up to 22. An...
by joecrack
Wed Jan 25, 2006 9:50 pm
Forum: PHP - Code
Topic: page turning script error
Replies: 10
Views: 650

ok sorry ... i wanted to make it more clear, with changeing zeilen_pro_seite (its german) to rows_per_page. i changed the code and nor it looks like this. only one $i loop. but i really dont know what the $mail is for. its not completely my code - so i left that one in there :roll: $sqlab = "SE...
by joecrack
Wed Jan 25, 2006 8:08 pm
Forum: PHP - Code
Topic: page turning script error
Replies: 10
Views: 650

yeah the /n are senseless. i forgot to delete them when i copied the output code from anpother script last time. so in the code i posted here, there are a not as many variables in the SELECT as on the screenshot - but thats just because i didnt want the code to be that long. now i shrunk the firefox...
by joecrack
Wed Jan 25, 2006 7:29 pm
Forum: PHP - Code
Topic: page turning script error
Replies: 10
Views: 650

no i am sorry its a company intern network. and i dont have the database and everything on a public server=(
so is there nothing you can see why this problem appears? or anything that you think it COULD be the prob?
by joecrack
Wed Jan 25, 2006 2:45 am
Forum: PHP - Code
Topic: page turning script error
Replies: 10
Views: 650

page turning script error

hey guys i have a big problem with my function. it is supposed to change the site after a certain amount of datasets/rows. but when i put in more than 23 rows per page it starts with the table headers again instead of a new row. sometimes it also goes completly nuts and just keeps on printing out da...
by joecrack
Mon Jan 23, 2006 9:03 pm
Forum: Javascript
Topic: printing size to big!
Replies: 2
Views: 449

printing size to big!

i have a problem with my printinglayout. it is a very big table that needs to be printed. when you see the table in the browser the font size needs to be something like 8pt so that anybody is able to read it. but when it comes to the printing it needs to be something like 4pt to fit it on the A3 pap...
by joecrack
Wed Jan 18, 2006 1:47 am
Forum: PHP - Code
Topic: two table update
Replies: 7
Views: 579

ok that worked NICE - but now i put the code with all the variables in my update script and it doesnt work $sql = "UPDATE sam_bestellung,sam_date_val SET sam_bestellung.Groupp='$groupp',sam_bestellung.EqDes='$eqdes',sam_bestellung.Area='$area',sam_bestellung.Yard='$yard',sam_bestellung.Hull='$h...
by joecrack
Wed Jan 18, 2006 12:41 am
Forum: PHP - Code
Topic: two table update
Replies: 7
Views: 579

i havent set a foreign or a primary key cause i set these fields in both tables as "unique" and my phpadmin tells me i shouldnt set unique and primary on same fields. if i would do WHERE items.id=month.id; how do i tell sql then that it has to be id 9999 in both tables? and yes the fields ...
by joecrack
Tue Jan 17, 2006 9:52 pm
Forum: PHP - Code
Topic: two table update
Replies: 7
Views: 579

ok i tried to do the double table qquery like this: UPDATE sam_bestellung,sam_date_val SET sam_bestellung.area='A9' AND sam_date_val.contrdate='2009-09-09' WHERE sam_bestellung.projnr='9999' AND sam_date_val.projnr='9999' AND sam_bestellung.customernr='99.99.' AND sam_date_val.customernr='99.99.' Bu...
by joecrack
Mon Jan 16, 2006 7:47 pm
Forum: PHP - Code
Topic: two table update
Replies: 7
Views: 579

two table update

i have a pretty good working script that is updating datasets. but now i changed it a little bit and it has to update TWO tables now. but i just cant make it. the update part of the script looks like this: if (($_SESSION['projnr'] && $_SESSION['customernr']!= '') && (count($params)))...
by joecrack
Sun Jan 15, 2006 9:33 pm
Forum: PHP - Code
Topic: possible to split array element?
Replies: 2
Views: 233

i will ALWAYS be the same format ...
thanks .. i solved it =)
by joecrack
Sun Jan 15, 2006 8:55 pm
Forum: PHP - Code
Topic: possible to split array element?
Replies: 2
Views: 233

possible to split array element?

i have an array element that looks like this:

$data['0']=12.34.8888

Now i would like to splitt this element into:

$newdata1['0']=12.34.
$newdata2['0']=8888


Is that possible?