I wanted to create a layout with a column on the lift with 100px width (this because of a fixed width background image. 2 headers rows starting on absolute positions under that and then the main window which goes from 100px to 5px to the right and 50px from the bottom. I can't get the bottom...
I wanted to create a layout with a column on the lift with 100px width (this because of a fixed width background image. 2 headers rows starting on absolute positions under that and then the main window which goes from 100px to 5px to the right and 50px from the bottom. I can't get the bottom...
I was wondering what the difference is between
index.php and index.php3 ??
what file extension is now commonly used for php files ???
perhaps a silly question but I can't find the answer to it
http://www.tek-tips.com/faqs.cfm?fid=6065
I have written a FAQ on how to do this.
since my email adress is wrong where comments can be send to and I can't change it since my other email is already in use in some strange way I ask it this way if there are any comments for improvement
is it possible to retrieve the fieldname that is passed on to a function instead of the value ??
if I have a function like
function filledin($naam){
if ($naam <> "") {return 0;} else {return 1;}
}
and I use it like
filledin($name1);
filledin($name2);
filledin($name3);
can I also retrieve...
I'm building a form validation script and I was wondering if it's not possible to enter all the validation rules in a table with a few fields
- formfieldname
- validation
- commentiffalse
in the validation field I put any php code I like, even selects on tables for validating if a name is...
I changed a query from an equal join to a left outer join but then the performance is suddenly 10 times as slow ??
Is this normal or do I miss something ??
old code
$query1="SELECT * FROM ";
$query1=$query1 . "clienttable,contacttable AS co1 WHERE co1.coclid=clid ";
$query1=$query1 . " AND...
I can loop through all the post variables like
while ( list($field, $value) = each ($HTTP_POST_VARS)) {
if ($field <> "Submit" ){
if (is_array($value)){
$arrayLength = count($value);
$temparray=array_values($value);
for ($i = 0; $i < $arrayLength; $i++){
$temp=$temp...
is it possible to change the presentation of a date field by default. now it's default presented as 2004-12-31 and I want to see 31-dec-2004. I know how to do it for each date seperately but I was wondering if you can also change the default presentation for the whole system
I try to log certain input atempts.
when I use
$ua=$HTTP_SERVER_VARS['HTTP_USER_AGENT'];
$qs=$_SERVER['QUERY_STRING'];
$ref=$_SERVER['HTTP_REFERER'];
$query="INSERT INTO SYSLOGTABLE(SLIP,SLHOST,SLDATE,SLUA,SLREFERER)
VALUES('$host','$ip','$datum','$ua','$ref')";
it works fine
but...
I want to turn of globals so I can't use the variables straight away and want to use
$name=$_POST[$name]; method
but how can I loop thourgh all the post vars so that the variable name get's the value of the variable ???
I try to upload an SQl backup file through phpyadmin. the file is 100MB in size. it seems it get stuck all the time at 128 KB.
how do I get the file from my PC bacl to my crappy hostingprovider ?? or is this a problem at the hosting ???
that someone mentioned with 1000MB webspace for $7 in the month. I know it was mentioned in a topic when someone asked for a hosting.
due to a big screw up at my current hosting I think it's faster to move my backups to a new one instead of waiting until they have fixed everything :( :( :( :(
I use an sessionid for each user on my forum. when someone posts a link from my forum the sessionid of that user is also in the url which causes that anybody who clicks on the link is logged in as the user who posted the url. how can I prefent that sessionids are visible to other users ??
I have a form which uses the sqlaction.php3 when submitted. I was now wondering if I could not incorporate it as a function and that after finishing the function the same page is reloaded where it was submitted on ??
Is it possible/recommend to use functions instead of files to execute ?? or...
who knows the easiest way to replace an url in a string so that it becomes an url when loaded again
so
bbla bla bla http://www.mywebsite.com blabla
translate to
bbla bla bla <a href=http://www.mywebsite.com >http://www.mywebsite.com</a> blabla
after the url it's possible to have a return...
I have a table where I keep up the mutations in rooms and renting rooms for faculties.
the format of the table is
id
roomnr
client
startdate
enddate
area
now I want to make a grouping per client and per month what a client gained in area and what has diminshed
If I group on year-month of...
I'm building an order system where I want to show the money in decimals.
this works fine in some cases but in a few other cases it doesn't work like the way I do
I multiply the quantity with the cost
like
$totaal=number_format($orlqty*$orlcost,2,',','.');
in some cases the value is what it...
I have a mysql database where I have a time field. when the timefield is displayed like
$orlstarttime=$row["orlstarttime"];
print"<td>$orlstarttime<br></td>";
I also see the seconds. and I just need the hour and minutes. when I try something like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.