39,316 Topics

Member Avatar for
Member Avatar for harry88

Hi, How can i return the server date? using [CODE]<?php $my_t=getdate(date("U")); print("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]"); ?>[/CODE] gives me errors :( Thanks in advance, I know it probably has a very easy solution, but I just dont know what as I'm so totally new to php..

Member Avatar for rajarajan2017
0
91
Member Avatar for severman

hi all does anybody here knows a good safe way to work with sql stored function with zend framework? i can do so with prepared statement but i'm sure that there is safer way to do so... i'm using postgreSql but i don't think that there's any different. thanks!

Member Avatar for sourcebits
0
110
Member Avatar for Monster Killer

I am trying to make a function that gets the name of a user from their user id. The function needs to search a database for the matching id. However, when I try the function i get the following error: [B]Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given …

Member Avatar for Monster Killer
0
1K
Member Avatar for as005

[CODE] $result = mysql_query(" SELECT q.*, IF(v.id,1,0) AS voted FROM quotes AS q LEFT JOIN quotes_votes AS v ON q.id = v.qid AND v.ip =".$ip." AND v.date_submit = '".$today."' "); $i=1; $str=''; $script=''; while($row=mysql_fetch_assoc($result)) { // Looping through all the quotes and generating the list on the right of the …

Member Avatar for rajarajan2017
0
245
Member Avatar for as005

Sorry I think I posted it on the Wrong Forum, Please Delete this Post... :( [CODE] $result = mysql_query(" SELECT q.*, IF(v.id,1,0) AS voted FROM quotes AS q LEFT JOIN quotes_votes AS v ON q.id = v.qid AND v.ip =".$ip." AND v.date_submit = '".$today."' "); $i=1; $str=''; $script=''; while($row=mysql_fetch_assoc($result)) { …

Member Avatar for urtrivedi
0
205
Member Avatar for dss

Hi, I need help on understanding the content managment system. What is cms? How to build it. Is there any book through which i can know how to make php webb content managment system. I just know that joomla and drupal are content managment system. I had a php book …

Member Avatar for jwd.adodis
0
129
Member Avatar for sarithak

Hi frnds... I am new to Joomla... My next project is in Joomla..Where can i put PHP code in my new joomla page.How can i do it? plz tell me some idea regarding this.. Thanks Saritha K

Member Avatar for jwd.adodis
0
102
Member Avatar for jhbalaji

Recently i was Writing a Preg replace Function in PHP Here is the Code below [CODE]$suchmuster = "/".$textlinksname."/i"; $replace = "<a href='".$textlinksurl."' target='_blank'>".$textlinksname."</a>"; $body = preg_replace($suchmuster,$replace,$body,200);[/CODE] Since the variable $body contains links begins with http:// when it replaces the matched text in URL it becomes a problem Similarly for the …

Member Avatar for SikoSoft
0
97
Member Avatar for sinyi

[CODE]<script language=\"javascript\" type=\"text/javascript\" src=\"datetimepicker.js\"></script> print "<script language=\"javascript\" type=\"text/javascript\" src=\"datetimepicker2.js\">"; print "</script>"; [/CODE] [CODE]print "<input name=\"EffStartDT\" type=\"text\" size=\"25\" value=\"".trim($_POST['EffStartDT'])."\"><a href=\"javascript:NewCal('EffStartDT','ddmmyyyy','true','24')\"><img src=\"cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>"; print "<input name=\"EffEndDT\" type=\"text\" size=\"25\" value=\"".trim($_POST['EffEndDT'])."\"><a href=\"javascript:NewCal2('EffEndDT','ddmmyyyy','true','24')\"><img src=\"cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>"; [/CODE] I want to create two date time pickers for …

Member Avatar for sinyi
0
159
Member Avatar for niths

hi all, i need to disable the back button if the url address is login.php. so i am having the code for restricting the back button. so if in url the address is login.php then the browser back button should not work. here is my code for restrcting back button. …

Member Avatar for charvie
0
185
Member Avatar for refilltuffy
Member Avatar for GameCherry

Hello All, I'm trying to modify some code for an auction site but my lack of PHP knowledge is preventing me from doing so. I bought an "Essential Guide To CSS, AJAX,& PHP" book and have been doing the PHP exercises at the W3 site, but it seems that it'll …

Member Avatar for GameCherry
0
705
Member Avatar for charvie

These are the steps in registering a new user. 1. A new user is registered (provide name, address, email etc.) 2. An email is sent to the email he/she provided, which contains his login information. the problem now is the emial code. I've never done this before so I don't …

Member Avatar for rajarajan2017
0
204
Member Avatar for niths

hi all, i had a logout page wer i am destroying the session value. so now i am logging out from a page and if i click browser back button it is going back to that page, so i placed a code in that page[CODE]<?php if(!isset($_SESSION['username'])) header("Location:http://10.70.2.142/Project/login.php"); ob_end_flush(); ?>[/CODE] it …

Member Avatar for niths
0
57
Member Avatar for maunica

hey, please can anyone help me to add new row or a column to the table whenever a user clicks on the add button? thanx in advance

Member Avatar for vibhaJ
0
102
Member Avatar for sugikrish

hi friends, i want calculating values in two text box , result display in another text box and this result will be stored in database. if anybody know this say to me..

Member Avatar for rajarajan2017
0
50
Member Avatar for ohgee

Hey, Here is the situation: I have a gallery of images that are being displayed with javascript that requires the image files to be saved as img1, img2, img3, etc. I am currently trying to write the php code that keeps track of the number of image files and allows …

Member Avatar for rajarajan2017
0
232
Member Avatar for vwdmt

Alright guys, bear with me, im a noob when it come to PHP. When a user clicks I am currently redirecting users the following way: [code] echo '<li class="edit"><a href=updateInfoForm.html?id='.$siteInfoId.'><img src ="images/edit.png" class="editImg" height="23" width="23"/></a></li>'; [/code] The problem is I would rather not have this data in the URL, I …

Member Avatar for vwdmt
0
155
Member Avatar for Spider X

I can do this in Objective-C: [CODE]newNotewUTF8 = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)oldNote, NULL, (CFStringRef)@"!*'\"();:@&=+$,/?%#[]% ", kCFStringEncodingUTF8 ); [/CODE] Ex: oldNote looks like this: This is a note newNotewUTF8 comes out like this: This%20is%20a%20note And it works out fine. I can receive the above Note in a url: "http://www.siteurl.com/input.php?note=This%20is%20a%20note" in my PHP …

Member Avatar for Spider X
0
157
Member Avatar for drewpark88

Hey Guys, Before I start working on this I figured I would see if any of you knew the best place for information on building a Digg style function. I am not talking about the Digg button, I am talking about the "Submit a New Link" function that diggs through …

Member Avatar for drewpark88
0
137
Member Avatar for hindlist

Hai i am struggling to find out what is wrong with this code. the next and prev buttons are not working. So any guy can look at this the url is http://www.hindlist.com/subc/Administrative%20Jobs/ I am giving out the code for further detail. Pls look at it and reply. <?php // session_start(); …

Member Avatar for aburningflame
-1
409
Member Avatar for samsons17

[B]Hi people.. I got a problem which i cannot delete a a subject from my database through a page that i created. I've made a page called edit_subject.php where there is a form which i could then delete/edit any subjects that i want.and this is the code : [/B] [CODE] …

Member Avatar for JRM
0
88
Member Avatar for arafat_alam
Member Avatar for ajwei810192

Hi, I am wondering if anyone tried to mix PHP and Javascript innerHTML elements to change certain elements to decrease the number of submits without losing data when passing through forms. For some reason, I kept getting errors in my code and I could only get PHP to submit the …

Member Avatar for JRM
0
191
Member Avatar for Cobber

Hi, I don't know if this is the right forum to post this, if not please move it or just delete it. I installed Phpauction via Fantastico after trying several purchased scripts that just wouldn't work. Everything is working fine except the "View Feedback" links which give the following error …

Member Avatar for pcfix609
0
180
Member Avatar for samsons17

i am trying to create a new subject and redirecting the page to the home page after the subject is created which is(content.php). The code succesfully created the object but the page redirecting that i try to make is failed and my browser came out with this error message : …

Member Avatar for YuriyHorobey
0
333
Member Avatar for fizanos

[CODE]<table width="95%" border="1" align="center" CELLPADDING="2" CELLSPACING="0" bordercolor="<?PHP print "$BorderColour"; ?>"> <tr valign="middle" class="tableheadsx"> <td width="91" height="29" align="left" class="welcomexx"><strong>Date</strong></td> <td width="136" height="29" align="left" class="welcomexx"><strong>Distributor's ID </strong></td> <td width="136" height="29" align="left" class="welcomexx"><strong>Customer's Name </strong></td> <td width="140" height="29" align="left" class="welcomexx"><strong>Total Paid(Naira) </strong></td> <td width="157" height="29" align="left" class="welcomexx"><strong>Total Paid(Dollar)</strong></td> </tr> <?php $rowShine = 1;?> …

Member Avatar for fizanos
0
608
Member Avatar for ajwei810192

This is an example I have grabbed from W3School, and for the purpose of my question, I have modified it and put in the code here: [CODE] <?php // Make a MySQL Connection mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); // Get all the data from the "example" table …

Member Avatar for rajarajan2017
0
124
Member Avatar for blessan

I need help in creating a nested array using a loop. The array should look like this, [CODE] Array ( [0] => Array ( [id] => 1 [text] => root [leaf] => [children] => Array ( [0] => Array ( [id] => 2 [text] => root1 [leaf] => [children] => …

Member Avatar for blessan
0
157
Member Avatar for janu121
Member Avatar for saikamal
0
92

The End.