39,402 Topics

Member Avatar for
Member Avatar for Th3nutz

I was wondering, is it possible to get specific data from another website ? Let's say i want from page X the content from a div. How can i make write in php a script that automaticaly gets and echo into my site what is inside that div from page …

Member Avatar for JRM
0
143
Member Avatar for bsewell

Hi everyone, basicly I have a CSV file which uses ^ as a delimiter. I have a textarea which is populated by the contents of the CSV file, and after editing it the user is redirected to the edit page. For some reason, everytime I save the file there is …

Member Avatar for bsewell
0
148
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
92
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
112
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
247
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
207
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
131
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
105
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
100
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
164
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
186
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
724
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
209
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
59
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
105
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
53
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
284
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
156
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
161
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
141
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
448
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
92
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
198
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
184
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
338
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
611
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
126
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
160
Member Avatar for janu121
Member Avatar for saikamal
0
94
Member Avatar for Loren7000

Can someone tell me why the print is not showing up on the page and the email is not be sent to the receipient with the information. HELP [code] <?php if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form ?> <h5>Vairalbe Information to be Embossed</h5> …

Member Avatar for fizanos
0
162
Member Avatar for ayesha789

Hi I am working on Project. I want value from MySQL DB in Second input field on input of code in first input field. Is it possible?

Member Avatar for ayesha789
0
298
Member Avatar for whitestream6

This is my pagination script: [CODE] <?php /*********************************** * PhpMyCoder Paginator * * Created By PhpMyCoder * * 2010 PhpMyCoder * * ------------------------------- * * You may use this code as long * * as this notice stays intact and * * the proper credit is given to * * …

Member Avatar for Monster Killer
0
78
Member Avatar for genieuk

Hi, I just started a free trial with a new webhost as my current one is useless. I have always had my website working on the old webhost fine. I have a folder called sessions outside the public_html folder so it cannot be accessed in a browser and not accessed …

Member Avatar for genieuk
0
296
Member Avatar for denvious

Hey all! I've been working on a website but have been having a bit of trouble with dynamic linking using php. I've tried (and failed) with different methods to get it working but i need the help of some very talented coders :) I currently have a webpage which extracts …

Member Avatar for mhahnel
0
172
Member Avatar for neethu balan
Member Avatar for mhahnel
-1
79
Member Avatar for umandajayo

What is the method of passing user inputs to database in Joomal or where the places handling the user inputs to send to the database. eg: localhost\Joomla\components\com_user\views\register in this directory have a module for handle new user registration. I need to know how joomla carry the user input values for …

Member Avatar for jwd.adodis
0
113
Member Avatar for Barefootsanders

Hey guys. Im new to PHP but I know the basics and I know C++ pretty well. Im trying to develop a marketplace module for the Joomla CMS. I was wondering if any of you could help or had experience with Joomla. Any suggestions? Thanks.

Member Avatar for jwd.adodis
0
81
Member Avatar for floresj4

Hey guys, Can someone please take a stab explaining PHP!!! I upload files through dreamweaver and get a huge mess. How does it work? What makes it better or worse? I'm not completely code illiterate, I've worked in c++, java, I know basics in HTML and some actionscript as well. …

Member Avatar for jwd.adodis
0
278
Member Avatar for robynne

Good afternoon. I was hoping to get some query optimization tips. I am writing a php script to retrieve data from a mySQL database. Table A, which contains most of the fields that I need, contains just under 11,000 rows. Table B, which contains 3 fields that I need, contains …

Member Avatar for tyson.crouch
0
159
Member Avatar for PixelatedKarma

Hello everyone; Forgive me if I'm posting in the wrong forum. I have scoured the web playing with 20+ CMS systems all with great pros and horrible cons - nothing has completely worked for me. I have limited but some php experience and I want to take the next step. …

Member Avatar for PixelatedKarma
0
92
Member Avatar for LloydFarrell

Hi, im still pretty new to PHP and I have just started looking into classes / functions and OOP - I have done loads of searching and watching tutorials and learning from others here on daniweb with great pleasure, I was hoping that someone could fix the problem im having …

Member Avatar for rajarajan2017
0
253
Member Avatar for sachin.quadros

Hi Friends, I want to search a table with 25 columns using multiptle fields, i.e. Multiple column search Please help me with the query, i have tried using AND but no luck Field to search 1.Date 2.Name 3.Surname 4.Fathername 5.MotherName Rgrds Sachin

Member Avatar for rajarajan2017
0
107
Member Avatar for hectorb

I am trying to make a checkers game for php two players on the same computer here is what I got and was wondering if there's anything wrong with this code note: piece movement would be based from text move A1 to B2 [CODE]function drawBoard() { global $cBoard; $R = …

Member Avatar for hectorb
0
120
Member Avatar for Spider X

I have a need to do this: Receive a URL that looks something like this: [url]http://www.somesite.com/[/url][something]?title=ABCTitle&name=ABCName Then the [something] takes the key/value pairs and redirects them to: [url]http://www.someOTHERsite.com/?title=ABCTitle&name=ABCName[/url] Basically I want to take the data after the '?' and send it on to another site. What would the code look …

Member Avatar for Onisutra
0
130
Member Avatar for sesaz1

hey hello this is my first time..... i wan't to ask in php, how we can update a table without a submit(button)...is that possible?if yes tell me how?tq everybody

Member Avatar for scaiferw
0
96
Member Avatar for ayesha789

hi every body , i wonder which one is best , Union Query or Temporary Table actually i have 5 tables from where i have to select data and they have the same structure as well . Now i am confused that i use union All or union Query to …

Member Avatar for griswolf
0
64
Member Avatar for sme30

I have created a class Vacancy which has some variables : public $salary; public $id; ... I am looping through the result of a query and creating a vacancy for each match Then I adding the vacancy to an array. [icode] $tempVacancy=new Vacancy(); $tempVacancy->salary = mysql_result($result,$i,"salary"); $tempVacancy->id =mysql_result($result, $i, "yid"); …

Member Avatar for SikoSoft
0
583

The End.