User Profile
Collapse
-
This not a php question. This belongs in the HTML forum. -
-
strtotime() will convert almost every readable and known time/date input.Leave a comment:
-
You can always convert it to a unix_time stamp validate that that time stamp doesn't equal 0 (false return) then convert it into whatever date you want.Leave a comment:
-
Add
[php] $headers .="name=\"docna me.doc\"\n";[/php]
After the 3rd $header....Leave a comment:
-
-
This is the wrong forum to post this. Please move this to the HTML forumLeave a comment:
-
If its a unix timestamp use the php time() function or the mysql function of UNIX_TIMESTAMP( )Leave a comment:
-
I actually just wrote a major application using this. Its very useful but also has a lot of short comings.
Since your data is not dynamically changing in lines you probably can just use the addPage() function from fpdf after the 8th item is printed. This class is not an easy one to use.Leave a comment:
-
Output control is key if your using headers or sessions. If you use a heredoc you have to generate all that stuff at the end and probably not in the most efficient manor....Leave a comment:
-
You would need to auto populate a forum with the date object then have it auto submit on page load. Please see the javascript form for additional help on this.Leave a comment:
-
Now that im not so tired I believe what you are trying to do is referred to as XSS and its not allowed. I could be wrong. Im not a JS expert.Leave a comment:
-
For the love of god please don't use heredocs. If you insist on it please read the php doc on it.
http://www.php.net/manual/en/languag...syntax.heredoc...Leave a comment:
-
Do you want the users current pc time? If so thats a javascript script question.
http://www.w3schools.com/js/js_obj_date.asp
That link should tell you how to use the date object thats built in....Leave a comment:
-
$obj1 is a mysql resource id. Please use mysql_fetch_ass oc or mysql_fetch_obj ect. Example below
[php]
$row = mysql_fetch_ass oc($obj1);
[/php]
However for what you need just run
[php]
if(mysql_num_ro ws($obj1) > 0){
//name exists
}else{
//Name doesn't exist
}
[/php]Leave a comment:
-
Use a global variable
[PHP]
global $rawr;
$rawr = 1;
[/PHP]
When you access $rawr it will display as 1 on any page included after it was declared.
Edit
Just read that you tried to use sessions. You can do that but you need to make sure you do a
[php]
session_start() ;
[/php]
at the top of the first page.Leave a comment:
-
Your over writing your variables in your code. use something like this
[php]
$tmp_mth->m_title[] = $mth;
[/php]
Instead. That will place them in an array for you that will auto increment....Leave a comment:
-
Its very hard to help you when you don't post the source code or reference what it is you are using to produce your results. If you want to strip those symbols you need to find out their ascii codes and use
[php]
$data = str_replace(chr (code),'',$data )
[/php]...Leave a comment:
-
[PHP]
<?php
echo echo date('l dS \of F Y h:i:s A');
?>
[/php]
You can read more about the date function here
http://www.php.net/date...Leave a comment:
-
JSP runs on unix servers mostly. I think your thinking of ASP.
JSP is java therefore its slow and bad for web development. JSP is also bloated and bulky with a lot of strange internal quirks (Java beans ftl). Ohh its its 100% OOP so you need an IDE with atleast multi level object parsing to be efficient at coding in it....Leave a comment:
No activity results to display
Show More
Leave a comment: