Student and part time web designer
- Interests
- Playing football (or some call it soccer), skateboarding, watching history channel! :P and eating ice…
13 Posted Topics
Re: this might be a little bit different from what you want but you can place an [B]index.php[/B] file inside [B]myhost/docs/default[/B] and place a code index.php which will redirect you to any page that you wish in this case default.php | |
Re: [code=php] <?php //header ("Content-type: image/jpeg"); /* JPEG / PNG Image Resizer Parameters (passed via URL): img = path / url of jpeg or png image file percent = if this is defined, image is resized by it's value in percent (i.e. 50 to divide by 50 percent) w = image … | |
Re: hi kkeith29! Im looking for an ajax/php/mysql driven chat in which most probably Im going to modify a little bit to fit my soon-to-open-website.. I found bunch of them around the net but most of them are hard understand.. (I'm still new to php) so maybe, im just wondering if … | |
I don't know how to explain this correctly but just some sample for you guys so that you can really get what Im trying to say. Today is November 28, 2008 3 days from now is December 1,2008 Im looking for a php code, which can give me the exact … | |
Re: I think I agree with kkeith29.. This might not answer your question directly on how to move a certain data from one table to another but instead, you can add a new column in the database which indicate whether it is archived or not. Well, let's assume that archived data … | |
Re: @cwarn23 yeah, I agree with your code also.. I use it the same way.. just add htmlentities to make sure that there will be no sql injections.. :P | |
Re: the easiest way to do that, by having the following code: [code=php] $linkback=$_SERVER['HTTP_REFERER']; $trusted_links=array("http://www.daniweb.com", "http://www.daniweb.com"); $found=0; while($trusted_links){ if($linkback==$trusted_links){ $found=1; break; } } if($found==0) die("You cannot access this page"); else echo"Welcome!"; [/code] i think the code is basic enough and simple to understand. :) by the way, according to [URL="http://www.php.net/manual/en/reserved.variables.server.php"]PHP $_server … | |
Is there anyway to get metadata of an mp3 file using php? Even just the track length. Thanks. | |
Re: i don't know if this will really work or not but instead of having [code=php] extract($row); $recordnum = stripslashes($recordnum); $firstmiddlename = stripslashes($firstmiddlename); $lastname = stripslashes($lastname); [/code] you can try [code=php] $recordnum = stripslashes($row['recordnum']); $firstmiddlename = stripslashes($row['firstmiddlename']); $lastname = stripslashes($row['lastname']); [/code] | |
Re: There are 2 ways to pass an information in web.. It is either through POST or GET.. if you see and extension of [b]index.php?id=1[/b] .. it means that the page is trying to send an information. This is like saying [I]im going to pass variable [B]id[/B] which has a value … | |
Re: you should try echoing the query first just to check that it really works out [code=php] echo "INSERT INTO tbl_CT_Responses (Response_ID,Questionnaire_ID,Response_Date) VALUES (".GetSQLValueString("",`int`)."," .GetSQLValueString($que_id,`int`)."," .GetSQLValueString(date('Y-m-d'),`date`) .")" [/code] | |
Re: if you already change the default file for that folder using mod_rewrite, i think you can just use the directory name as a value inside the action. You don't need to include the default.php anymore. | |
As you know it. I'm a new member in this cool website. I have been around this site for almost a year. This is one of the website that I look upon when I have problems with my php codes and stuffs. Anyways, I was planning an introduction of myself … |
The End.