39,316 Topics

Member Avatar for
Member Avatar for Patiodude

I'd like to add a timestamp to articles I upload to my website, which reads the time and date the article was uploaded. I've got a database, as well as a working connect.php. In this database, I've created a table with a "date" field (type: date). What can I do …

Member Avatar for diafol
0
289
Member Avatar for bo0ga

This form works and everything, but all I want is the comment box. I want to take away "name" and "email". I tried deleting those 2 lines from the top and the code from the form but then it doesn't work. I guess its because of this line: if ($_POST["email"]<>'') …

Member Avatar for blocblue
0
120
Member Avatar for cereal

Hi! *Minimize HTTP requests*. One of the suggestion I always read is to combine files, so I made a little Class that merges files on the fly, the supported formats are CSS and Javascript. With little efforts, I think, it can work fine also with JSON and CSV. Usage is …

Member Avatar for cereal
1
331
Member Avatar for angelclawdust

hello there - been awhile since ive been about but im ready to crack on with my learning :) kk i used to have this installed on my last "free" host and it worked fine now im on a paid host (hosting24) it doesnt seem to want to work correctly.. …

Member Avatar for pritaeas
0
137
Member Avatar for cwarn23

In these three functions, you can filter to a url to just the domain name. There are three main methods of doing so which are all shown in the example and the usage of each function is shown in the example.

Member Avatar for diafol
0
734
Member Avatar for brugernavn

There must be a easier way to do this: it prints the size of a mysql database in Megabytes. $query = mysql_query("SELECT data_length, index_length FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'pvs'"); while($data = mysql_fetch_array($query)){ $num[] = ($data['data_length'] + $data['index_length']); } for($i = 0; $i < count($num); $i++) { $tot = $num[$i] …

Member Avatar for diafol
0
145
Member Avatar for karolismf

Hello to all, first I am really sorry if i posted this thread in wrong section or something like that... :) So i wanted to get some help from other people who uses PHP language. I want to ask for the best and secure way to do this. All kind …

Member Avatar for minitauros
0
120
Member Avatar for hwoarang69

i want to go inside the if statment if i have both things in one row. so if i have image_id = $image_id_g and user_id=$user_id_s on same row. i wan tto go inside the if statment. but this is not working. i thinkg this query is testing two things sepeartly. …

Member Avatar for minitauros
0
101
Member Avatar for sk8ergirl

Hello, I'm done with my html and css file and now I'm trying to start with the php , but after I type <?php ?> and then try to type > $name = $_post['name']; > line 9 <?php ine10 $name = $_post['name']; line11 ?> I get error "There is a …

Member Avatar for minitauros
0
229
Member Avatar for Patiodude

I recently decided to try out a simple PHP/MySQL pagination script I found online. After replacing all the required data and creating a connect.php file with my db information, I got a bunch of errors on the page with the script: here they are, in order: Warning: include(connect.php) [function.include]: failed …

Member Avatar for blocblue
0
344
Member Avatar for BleepyE

Hey guys, I need a little help with some code im working on. In the end I want some code to change the visible text when dates are past, my current code is below, but this only works for one date. I would like it to update to the next …

Member Avatar for diafol
0
108
Member Avatar for codeblock

Hi all, I have a registration page which allows the user to open up separate windows to include additional information. But for some reason it freezes the page and doesn’t allow data to be submitted into the MySQL database table. I’m mot sure whether this is a php or a …

Member Avatar for codeblock
0
277
Member Avatar for codeblock

Hi all, I have a registration page which allows the user to open up separate windows to include additional information. But for some reason it freezes the page and doesn’t allow data to be submitted into the MySQL database table. I’m mot sure whether this is a php or a …

Member Avatar for codeblock
0
259
Member Avatar for Patiodude

I know little PHP, but even less MySQL, and my host doesn't allow remote database connections (for example, from Dreamweaver), so in addition to being confusing to me, database management is impractical. Is there any way to put a timestamp on an article automatically, without resorting to MySQL tables?

Member Avatar for Sogo7
0
257
Member Avatar for omoayan

I have a project in which I desire to upload and download blob files in php. I have written the codes to upload the files into mysql however, when I try to download the files, be it pdf, .doc or jpeg, the error message I get is "The selected file …

Member Avatar for sasankasekhar
0
202
Member Avatar for Jdsiteworks

This is the form where i can upload the image file: <?php require_once ('includes/config.inc.php'); session_start(); // If no first_name session variable exists, redirect the user: if (!isset($_SESSION['first_name'])) { $url = BASE_URL . 'index.php'; // Define the URL. ob_end_clean(); // Delete the buffer. header("Location: $url"); exit(); // Quit the script. } …

Member Avatar for Jdsiteworks
0
271
Member Avatar for gourav1

Actually, I am learning php and I am eager to know how to send mails from php? Can you give me any start links from where i can learn to send mails and implement on my PC?I have learnt php on my own and now i want to implement this …

Member Avatar for laforge
0
188
Member Avatar for moblyft

Hi Friends, I am trying to limit the number of pages to display on my code. Can someone please help? I am trying to get something like http://stackoverflow.com/questions/8361808/limit-pagination-page-number $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 15; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; …

Member Avatar for pritaeas
0
2K
Member Avatar for Patiodude

I'm new to PHP, and trying to create a paginated layout. Could someone walk me through the easiest way to do so?

Member Avatar for pritaeas
0
121
Member Avatar for ehpratah

hi im having an error with my code can anyone help me try to fix my problem the error is Fatal error: Call to a member function diff() on a non-object in C:\xampp\htdocs\msicfinal\samp.php on line 12 and my code is <?php /*These look like they are sent via form submit …

Member Avatar for ehpratah
0
2K
Member Avatar for renjithdas

I am having problem with search and replace html content. The records coming from the database. The populated string contains html mark up and image name also. I am doing a search and replace it will affect the image also. Could any one help me to get rid of this …

Member Avatar for blocblue
0
147
Member Avatar for rakwel10

I have included "header.php" on my pages to fix redundancy. In header.php you'll find the navigation, style sheets and scripts. The problem is, I cannot use header.php dynamically on different pages because it has a static links. Pls help me. im a newbie here. Thanks in advanced!

Member Avatar for diafol
0
163
Member Avatar for cubalibras

I am bemused by this problem, I've run the php code through an online tester and there are no errors but when I click Submit without filling out any fields it just refreshes the page, no errors are displayed. When I complete the form and click Submit the same thing …

Member Avatar for cubalibras
0
333
Member Avatar for mariaceline_21

<br /><b>Notice</b>: Undefined variable: firstname in <b>C:\xampp\htdocs\dl\index.php</b> on line <b>66</b><br />

Member Avatar for sway1101
0
92
Member Avatar for Kniggles

Hi have confussed myself, can you see why i cant get a new pic to be displayed in the box on click please ? <HTML><HEAD><TITLE></TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 10.00.8400.0"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE> </HEAD><BODY> <FORM style="BORDER-TOP-COLOR: ; BORDER-BOTTOM-COLOR: ; BORDER-RIGHT-COLOR: ; BORDER-LEFT-COLOR: " method=post action=refresh> …

Member Avatar for Kniggles
0
261
Member Avatar for Reliable

Hello Everyone, I've made a web page which you can see [here](http://www.ezaspi.org) that works fine on every major browser EXCEPT IE. In IE the contact form doesn't show. Here's the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Mrs. Ward's Easy …

Member Avatar for blocblue
0
240
Member Avatar for sk8ergirl

Hi, I'm trying to create contact us form I have to create three page 1-index.html 2-main.css 3-contact.php can you explain how can I make it like this [Click Here](http://postimage.org/image/rw5lffh7h/) and what is wrong with my code one more question what should I put in contact.php page ? with explanation please …

Member Avatar for sk8ergirl
0
170
Member Avatar for mogaka

I want to iterate through html table and display the values. for instance, column keys are fname,lname,mkt,positions. if for instance there are 10 rows,how can i access them and send them to php script ?

Member Avatar for Szabi Zsoldos
0
147
Member Avatar for SummerNight

Hi, I would really appreciate if I could be helped on the following PHP code. I have two arrays. 1) $user 2) $usertotal $user can have as many names stored in it. Example: $user[0]="John"; $user[1]="Sean"; $user[2]="Nick"; $user[3]="Jay"; ................ ................ Similary, $usertotal can have as many amount stored in it. Example: …

Member Avatar for Biiim
0
127
Member Avatar for code739

Hi guys, Really need help I have this case i have a sms gateway and php with oracle database runnin my system is filling a leave now if i want to text leave<space>143 from mobile phone it will i can file leave directly from my database really appriciate your smart …

Member Avatar for pritaeas
0
173

The End.