|
More site info...
|
|
Forum profile page for Newbies on http://www.phpbuilder.com.
This report page is the aggregated overview from a single forum: Newbies, located on the Message Board at http://www.phpbuilder.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Newbies" on the Message Board at http://www.phpbuilder.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Newbies:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
40
|
210
|
667
|
|
Post:
|
114
|
616
|
1,911
|
|
|
Newbies Posting activity graph:
|
Top authors during last week:
user's latest post:
php SESSION - How do I handle...
Published (2009-11-08 17:36:00)
This ought to be so obvious and essential, but I don't understand how I retrieve and update SQL data for a logged-in user with php SESSION. I have searched and read, but the tutorials only explain how I register and start a session for a user, but not the most important part: How do I extract SQL data for this user, and update his data in the SQL database? I have made a registration form and a login page. Now: How do I know who is logged...
user's latest post:
PHP Date
Published (2009-11-07 21:56:00)
sorry, as your using Date in the where clause rewriting its format is messing with that, simple solution: PHP Code: $result = mysql_query ( "SELECT Guests.*, DATE_FORMAT(Date,'%D %M %Y') as formatted_date FROM Guests WHERE Date>=CURDATE() ORDER BY Date LIMIT 6" ); //then output $row [ 'formatted_date' ]
user's latest post:
variable into function but not...
Published (2009-11-08 08:16:00)
You could declare it as global within the function. However, this is generally frowned upon for a number of reasons. But, if you're going to modify the function anyway, why not make it a function parameter and avoid the problems with global?
user's latest post:
[RESOLVED] header ($location)...
Published (2009-11-02 17:45:00)
Don't forget to mark this thread resolved (if it is) using the link on the Thread Tools menu.
user's latest post:
need help with some strategy
Published (2009-11-06 14:45:00)
Hi Guys I need some guidance around how to develop the app I'm working on. It's basically a backend system to manage photos and slideshows (eg arrange photos in albums, decide which ones to publish, update names and captions etc) I would like to avoid giving the source code to clients but would like to keep the actual photos and thumbnails on the client's server. I'm not sure what would be the best way to achieve this. In...
user's latest post:
Why me Syntax error :(
Published (2009-11-06 11:46:00)
i will certainly give that a try...i appreciate ALL the help
user's latest post:
T_ELSE Error - Blind to where...
Published (2009-11-08 10:53:00)
Indent your code properly and the mistake should become obvious In particular, each else block should be indented at the same level as its corresponding if block.
user's latest post:
Cakephp
Published (2009-11-03 03:20:00)
hi friends can any body tell me about the cakephp and any good reference book of cake php. and what is its advantage on php and its structure.
user's latest post:
Help please. Coding error.
Published (2009-11-08 12:33:00)
Line 3 PHP Code: require_once "scripts/connect_to_mysql.php" missing semicolon. Line 9 PHP Code: $menuDisplay = ' ""; has a stray ' (single quote) Line 14 PHP Code: $menuDisplay = '<a href="index.php?pid=' . $pid . '">Home</a><br />' missing semicolon. Line 64 PHP Code: <td...
user's latest post:
Help please. Coding error.
Published (2009-11-08 12:00:00)
Could you please tell me where the errors are please.
|
|
|
|
Latest active threads on Newbies::
Started 1 day, 22 hours ago (2009-11-09 01:01:00)
by Kudose
First, PHP's session's is used to store data across multiple page requests. It doesn't have anything to do with the database. It simply holds values in an array for you.
Second, you need to call session_start() before any content is generated to the browser, which means people generally put it near the very top of the script.
Third, you need to call session_start() before any calls to the...
Started 2 days, 12 hours ago (2009-11-08 10:53:00)
by laserlight
Indent your code properly and the mistake should become obvious
In particular, each else block should be indented at the same level as its corresponding if block.
Started 2 days, 14 hours ago (2009-11-08 08:16:00)
by NogDog
You could declare it as global within the function. However, this is generally frowned upon for a number of reasons. But, if you're going to modify the function anyway, why not make it a function parameter and avoid the problems with global?
Started 3 days, 19 hours ago (2009-11-07 03:20:00)
by Neville1985
your mysql_query has a " before it, thus making it a string, and the string closes on the $menuDisplay var. so Remove the " from the start of $query var and close the $menuDisplay.
PHP Code:
$sqlCommand = "SELECT id, linklabel FROM pages ORDER BY pageorder ASC" ;
$query = mysqli_query ( $myConnection , $sqlCommand ) or die ( mysqli_error ());
...
Started 3 days, 1 hour ago (2009-11-07 21:24:00)
by bpat1434
Use strtotime () with the column value, and use that output of strtotime as the second paramter of date ().
PHP Code:
while ( $row = mysql_fetch_array ( $result )) { echo '<td><span class="first"><strong>' . date ( 'jS F Y' , strtotime ( $row [ 'Date' ])). '</strong></td>' ; }
Hope that helps.
Started 3 days, 1 hour ago (2009-11-07 21:21:00)
by dagon
try the full server path for the upload dir
PHP Code:
$uploaddir = dirname ( __FILE__ ). '/uptest/' ;
and make sure you have full error reporting on:
PHP Code:
ini_set ( 'display_errors' , 1 );
error_reporting ( E_ALL | E_STRICT );
is the $_FILES array populated ?
Started 3 days, 6 hours ago (2009-11-07 16:44:00)
by NogDog
The first recurring problem I see is that if you have a double-quoted string literal within which you want to have double-quote characters, you must escape them with a back-slash:
PHP Code:
echo "<a href=\"foobar\" title=\"example\">test</a>" ;
Alternatively, either use single quotes around the string literal and double quotes within it, or vice...
Started 4 days, 1 hour ago (2009-11-06 21:24:00)
by NogDog
Anything in the PHP error log, in case display_errors is turned off in your
config?
Started 5 days, 5 hours ago (2009-11-05 17:52:00)
by Copenhagener
I just tried another approach, which did NOT work either:
PHP Code:
function isFake ( $theEmail ) {
$blacklist = array( "fakemail" , "yopmail" );
$catch = 0 ;
for( $i = 0 ; $i < count ( $blacklist ); $i ++) {
$detect = strpos ( $theEmail , $blacklist [ $i ]);...
Started 4 days, 1 hour ago (2009-11-06 21:44:00)
by bpat1434
Change the input to be the following:
HTML Code:
<input type= "checkbox" name= "sizes[]" value= "small" />
<input type= "checkbox" name= "sizes[]" value= "medium" />
<input type= "checkbox" name= "sizes[]" value= "large" />
Then when you post the form, you'll get an array of sizes that are checked. You can serialize () that and store that in the database:...
|
|
Hot threads for last week on Newbies::
Started 4 days, 1 hour ago (2009-11-06 21:24:00)
by NogDog
Anything in the PHP error log, in case display_errors is turned off in your
config?
Started 5 days, 5 hours ago (2009-11-05 17:52:00)
by Copenhagener
I just tried another approach, which did NOT work either:
PHP Code:
function isFake ( $theEmail ) {
$blacklist = array( "fakemail" , "yopmail" );
$catch = 0 ;
for( $i = 0 ; $i < count ( $blacklist ); $i ++) {
$detect = strpos ( $theEmail , $blacklist [ $i ]);...
Started 3 days, 19 hours ago (2009-11-07 03:20:00)
by Neville1985
your mysql_query has a " before it, thus making it a string, and the string closes on the $menuDisplay var. so Remove the " from the start of $query var and close the $menuDisplay.
PHP Code:
$sqlCommand = "SELECT id, linklabel FROM pages ORDER BY pageorder ASC" ;
$query = mysqli_query ( $myConnection , $sqlCommand ) or die ( mysqli_error ());
...
Started 6 days, 6 hours ago (2009-11-04 16:56:00)
by djjjozsi
You want to make different style classes for different pages?
if yes, then you can make the switch case:
PHP Code:
<?php
function activeSwitch ( $view )
{
switch ( $view ) {
case "photography" :
$style1 = hubphotographyactive ;
$style2 = hubweb ;
break;
case "web...
Started 6 days, 12 hours ago (2009-11-04 10:32:00)
by ixalmida
Assuming you know how to code the HTML for a file upload, you can handle the upload with a single statement:
PHP Code:
// Variables for convenience...
$path = "/where/to/put/file" ;
$file_name = $_FILES [ "file" ][ "name" ];
$temp_file = $_FILES [ "file" ][ "tmp_name" ];
// The single statement...
move_uploaded_file ( $temp_...
Started 3 days, 1 hour ago (2009-11-07 21:24:00)
by bpat1434
Use strtotime () with the column value, and use that output of strtotime as the second paramter of date ().
PHP Code:
while ( $row = mysql_fetch_array ( $result )) { echo '<td><span class="first"><strong>' . date ( 'jS F Y' , strtotime ( $row [ 'Date' ])). '</strong></td>' ; }
Hope that helps.
Started 1 week, 2 days ago (2009-11-01 14:11:00)
by pck76
MySQL 'IS EMPTY'?
hi all,
Is there a way to check if a column is empty?
I have used
Code:
IF column = ''
to get to the same result, but was wondering if there was a better solution?
Started 1 week, 1 day ago (2009-11-02 13:35:00)
by pck76
[RESOLVED] header ($location)...
Hi all, I'm trying to make this work with no luck.
I need user to login before using any page. so, at the top of the page I have this:
Code:
<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/includes/initialise.inc.php'); ?>
initialise.inc.php starts as follows
Code:
<?php
//check...
Started 3 weeks ago (2009-10-20 13:31:00)
by flashburn
{else
echo "Incorrect Password!";
}
I have put that part in bracets because i tried numerous times without them. but still nothing is fixed I keep getting that :
Parse error: syntax error, unexpected T_ELSE in C:\XAMPP\xampp\htdocs\login.php on line 29
Started 1 week, 1 day ago (2009-11-02 09:50:00)
by ChiChi
send data function
hey, i have a Text field and a button. when i click on the button i want to send the text to a PHP-file that prints out what i typed in the text field. i dunno how to do that in PHP.
Quote:
<?php
string $get_text_content($_GET[textfield]);
function SendData()
{
print $get_text_...
|
|