39,395 Topics

Member Avatar for
Member Avatar for Tracie-marie

Hi, I'm self taught but I've got a pretty good grasp on php now. What I want to do is completely separate it from my html....if that's possible. I keep reading about it but everyone keeps referring back to using templates which I don't want to do (unless they're my …

Member Avatar for Tracie-marie
0
159
Member Avatar for madkat3

Okay, so I'm pretty new to PHP...Call me a newbie, but everything works great if it's completely static, but the problem I have is if I need different results depending on user action. The problem lies with needing to use PHP to take information from files, but otherwise it would …

Member Avatar for madkat3
0
158
Member Avatar for MWE_QUE

I'm going through SAMS Teach Yourself PHP, MYSQL, and Apache all in one and I can't seem to get this example to work, which is used again in the next lesson. I usually type them in by hand as this one, but I've also tried cutting and pasting and removing …

Member Avatar for MWE_QUE
0
127
Member Avatar for lwaterfo

HI, I have a form with a huge textarea field and I am not sure how to format the textarea to make it work with php. The small textfields seem to work fine with adding information to my database, but as soon aas I add dropdown menus, a large textarea, …

Member Avatar for lwaterfo
0
93
Member Avatar for lifeworks

Simple issue... If my website is storing text in a database (MySQL) - and will ordinarily be outputted in good ol' HTML... but possibly via XML, or JSON... how do I store the text, allowing for eg. paragraph breaks, but not using HTML to format it?? lworks

Member Avatar for Lsmjudoka
0
99
Member Avatar for willie-abei

[B][COLOR="Green"]Hello everyone, i was hoping i could get help for a search script that displays not just the text results but also an image based on the search query for eg: if you are searching for a book by author or name of a book in the results page it …

Member Avatar for Lsmjudoka
0
186
Member Avatar for lf.gene

Hi! i have problems one query. $day_result has a value of 1 and 4 $sql3 = "Select * from Venue where idVenue != $day_result"; echo $sql3; if i use for loop for the above it will give the result below Select * from Venue where idVenue != 1 Select * …

Member Avatar for Lsmjudoka
0
79
Member Avatar for Lolalola

Hi, i use latest TCPDF version. If the text is a picture of a bad link shows an error and do not generate a PDF file. Is it possible to disable this error? If you did not find the image to generate the PDF, but without a picture. I hope …

0
53
Member Avatar for nick3592

hi i have done a header redirect to stop from the resending data in most browser but seem to have a problem with showing messages after that's done. After the user finishes doing something he or she gets redirected and there[s a message in a session either error or success. …

Member Avatar for Zagga
0
129
Member Avatar for backendcode

hello friends, Help me plz.any body can tell me how to pass a value from one page to another page by using a session. After login page. Help me plz login.php <form name="join" action="check_login.php" method="post" onsubmit="return validate_form(join)"> <table border="0px"> <tr><td align="left">E-mail: </td><td><input type="text" name="email" value="" class="form_field" /></td></tr> <td>&nbsp;</td> <tr><td align="left">Password: …

Member Avatar for backendcode
0
113
Member Avatar for lf.gene

Hi! is it possible to put a do while loop in a do while loop? For eg: DO{ CODES DO{ } while } while

Member Avatar for manzarr
0
72
Member Avatar for lf.gene

Hi, i have problem regarding my code. I using alot of for loop and while loop. However, its been to be one of the while loop is hindering the first loop. Here my code. [CODE]Do{ //assigned day 1-9 for ($i=1; $i<=9; $i++){ echo '<option>Hi</option>'; if($assigned_venue['day0'.$i] != ''){ $assigned_date[$i] = $assigned_venue['day0'.$i]; …

Member Avatar for lf.gene
0
74
Member Avatar for marcbe

Hi everyone, I have a problem that I can't get my head around, I dont know much about php. I do know some bits and bobs through experience with it and learning from mistakes. I have elgg installed on my website, a CMS neyworking engine. Some of the guys on …

Member Avatar for marcbe
0
219
Member Avatar for intraspark

I am not very familiar with mod rewrite rules except that they belong in .htaccess... so here it goes... I am looking to accomplish this: Currently I'm using "Basic Friendly URLs" which show a forum at: [url]http://www.domain.com/forums/forumdisplay.php?44-televisions[/url] [url]http://www.domain.com/forums/forumdisplay.php?96-cars[/url] I would like the above two forum categories to display as: [url]http://www.domain.com/forum/televisions[/url] …

0
37
Member Avatar for mark2326l

Im listing files in a directory on a web page with links to the files. I'm trying to change the link color to something other than my typical. Below is the php link... [CODE]<?php echo("<a href= '$dirname/$file'>$file </a> ");echo "<br />"; ?>[/CODE] I want to change the class. Below is …

Member Avatar for mark2326l
0
85
Member Avatar for lf.gene

Hi all, I having this error "Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\FYP\assign_venueTest.php on line 104" in my code. I cant find where does my code went wrong. Need you guys to help me out. [CODE] <?php $class_id = $_GET['id']; $HOST = 'localhost'; $USERNAME = 'root'; $PASSWORD = ''; …

Member Avatar for hielo
0
371
Member Avatar for pietpiraat

Hi everyone, i have a piece of javascript that calculates 2 input fields (price * qty) whenever i type in the input field (qty) that uses this : [CODE]onkeyup="update(this);"[/CODE] Now what i want is to execute this handling when the page loads, because sometimes there are already values (php & …

Member Avatar for hielo
0
226
Member Avatar for lf.gene

Hi all, I've errors in my code and i'm unsure whether the way i loop is in a correct method. Pls give me some guidance as it is very important to me. Thank! Error i got-> Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\FYP\assign_venueTest.php on line 118 …

Member Avatar for chrishea
0
144
Member Avatar for faizabest
Member Avatar for Brian Swan
0
91
Member Avatar for Dartz654

Hai, i'm new to cookies/sessions, so i'm not sure how to do this. So, theres a row in the user account table called 'online'. When their online, the value is 1. When their offline, the value is 0. I'm not sure how to do this, like to store a cookie …

Member Avatar for mschroeder
0
109
Member Avatar for tonyeveland

To access MySql tables from PHP, I use the PHP code and the function below. If I make these changes, would this code work for SQL Server 2008? mysql_fetch_array to mssql_fetch_array mysql_connect to mssql_connect mysql_select_db to mssql_select_db mysql_query to mssql_query PHP code -------------------------------------------------------------------------------- $sql = "SELECT mast_id FROM district_mast WHERE …

Member Avatar for tonyeveland
0
197
Member Avatar for ekseks

can some tell me what's wrong i tried putting the $date in my textfield from my MySQL. can someone pls correct my code :) thanks [CODE]<?php $username="root"; $password=""; $database="dbdate"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die("Unable to select database"); $query = "SELECT * FROM `cdate` WHERE 1 LIMIT 0 , 30"; $result = …

Member Avatar for katarey
0
107
Member Avatar for neera

steps to configure php/java bridge on xampp 1.7 on windows with all the files location (if possible screen shots too)

-2
38
Member Avatar for Aamit

I am using IFrame to load a webpage into it. When the page is getting loaded into the IFrame the status bar shows the actual link of that webpage i.e. "Waiting for http://www.abc.com/index.php". So, [COLOR="Red"]I want to hide this status message or change it to something else.[/COLOR] [CODE] <script type="text/javascript" …

0
69
Member Avatar for bobbymoir

dear all, I am developing a web application for a Training Hostel, in my application i need to produce a report for achievements by the Inmates. For individual achievements it is no problem but when it comes to an achievement by a team, i am stucked to display all the …

0
67
Member Avatar for theighost

Hello, I made a script that fetches the HTML of a remote page, on another server: [CODE=php] // $URL[$i] has the value of a url, ex. http://www.google.com $lines = file($URL[$i]); $the_file=''; if($lines) foreach ($lines as $line) { $the_file .= $line . "<br />\n"; } //if I echo the variable $the_file, …

Member Avatar for theighost
0
196
Member Avatar for navi17

Hello friends, I am working on e commerce site these days. Every goes well but now i am stuck on discount functionality. My client wants to have following functionality in the site 1)- i want to offer simple discounts: 10% off, 20% off with voucher or code number 2)- i …

Member Avatar for navi17
0
2K
Member Avatar for raadeekaa

Hello All, Iam trying to create a PHP form where i allow the user to store a doc file. This doc file should get stored in the server(linux) and a link for the file should be stored in my mySQL database. Please let me know if you need any further …

Member Avatar for ZZZubec
0
79
Member Avatar for Tenaciousmug

Alright, the register/login system is fully working with sql injection, BUUUT now I want to store their IP Address. WHOLE new function that I've never dealt with before. So I need some help. Am I doing something wrong? I have the IPadd in the database as INT(10) and then I …

Member Avatar for manzarr
0
584
Member Avatar for Designer_101

Hi, Im just starting to use the codeIgniter framework and Im developing a blog application. However I need a textarea where the user can change text to bold or change the colour just by selecting it and clicking a button above the area. Much like the daniweb reply form but …

Member Avatar for raju_boini525
0
929
Member Avatar for solahere

I want to assign a whole chunk of html content to a php variable. I was wondering if anybody knows of a way other than catenating manually. It's a huge chunk of html full with escape characters so don't want to do '' or "" thing. Any help is appreciated.

Member Avatar for solahere
0
267
Member Avatar for adcodingmaster

Hi every one. i m sending mail in php and facing a problem the problem is when i add some text in the body like this <b>this text is bold</b> then this text is shown as it is in the mail i want to show this text bold The problem …

Member Avatar for adcodingmaster
0
157
Member Avatar for sara nabil

i have a ver starbge problem , i was making a site and was completly correct on the localhost,but when i upload irt to a server to test it something stange happened which is i got that error Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/saraanv/public_html/blog_web/index.php …

Member Avatar for sara nabil
0
359
Member Avatar for musicofthehart

I am sure that this is a silly question for most of you, but I have googled and searched, and I cant find what I am looking for. I have altered an opensource website script. A script that you install on a server and bam... you have a website. like...joomla, …

Member Avatar for Zagga
0
143
Member Avatar for infosoft

hi as i am new to PHP I am trying to find the name and mobile number from a string. i am using textarea as input format is as 1 - name, mobile(10 digit[9999999999], 11 digit[0-9999999999], 12 digit[91-9999999999]) in a single line 2 - user can input only mobile number …

Member Avatar for diafol
0
144
Member Avatar for pgperez

Hello everybody, I'm having the same problem. I can connect to a SQL server with default instance (no named), but can't connect to a named instance! I tried escaping backslashes, and putting port number, with no success. Examples: $connection = mssql_connect('MYSERVER', 'USER', 'PWD'); --> WORKS OK $connection = mssql_connect('MYSERVER\INSTANCE', 'USER', …

Member Avatar for pgperez
0
119
Member Avatar for tito2004

Suffering for hours Trying to fix it by no Hope syntax error, unexpected $end in C:\???????\index.php on line 547 the lines form 511 to 547 are [CODE]<? ContentBlockFoot(); ?> </td> </tr> </table> <? BottomCode(); function error_handler($errno, $errstr, $errfile, $errline) { switch ($errno) { case FATAL: echo "<b>FATAL</b> [$errno] $errstr<br>\n"; echo …

Member Avatar for almostbob
0
170
Member Avatar for canadian_angel

Hi, I am new to php and have to do a project that consists of a joke page, a jokelist page and the front page or index page. My problem is this: I have used the text below in my .htaccess page and the only thing I get when I …

Member Avatar for muralibobby2015
0
167
Member Avatar for EverWebby

I have been trying to figure out how to perform a search and replace in php to create links within the text of paragraphs without having it interfere with any naming conventions in HTML codes, styles, names, and ids. I was considering preg_match or preg_replace, but I am the worst …

Member Avatar for EverWebby
0
148
Member Avatar for HemantPHP

Hello Any one know the rules for htaccess, I have follow requirement: [url]http://www.domainname.com/aboutus.php--input[/url] [url]http://www.domainname.com/aboutus/[/url]--Need this output

Member Avatar for muralibobby2015
0
222
Member Avatar for kidanr

Hello, I've got this code for my pictures when they are being uploaded, but I have a problem. I want to be able to create a thumbnail with the size 125*180 for every picture and name them their filename but like this "thumb_filename.jpg" etc. I have searched on google and …

Member Avatar for muralibobby2015
0
138
Member Avatar for architact

Hello, I just finished creating an online site builder and now its time to launch it, I am facing a problem related to URL-Rewriting. My site builder contains all the files and folders which will make up the client's site inside a folder named as "usersite", and can be access …

0
124
Member Avatar for samarudge

Hey, Is there a way to get Apache to interpret all files with MIME types that are not already defined to PHP? I've tried AddType application/x-httpd-php * Any other ideas? Tnx, Sam Rudge

Member Avatar for Atli
0
65
Member Avatar for muralibobby2015

hello i am doing png image cropping using this function. every thing is working fine. but whenever i was uploaded .png then changing the image background color into black. here is the code[CODE]$bgimage_attribs = getimagesize($bgim_file_name); if($filetype3=='image/gif') { $bgim_old = imagecreatefromgif($bgim_file_name); } else if(($filetype3=='image/pjpeg') || ($filetype3=='image/jpeg')) { $bgim_old = imagecreatefromjpeg($bgim_file_name); } …

Member Avatar for muralibobby2015
0
117
Member Avatar for faizabest

how to make a pagination from several query? I have a few query and was succ displayed in one page. The problem is, it was display 100 list in one page. How can I make a paginate for this page?

Member Avatar for muralibobby2015
0
42
Member Avatar for Charles1718

Hi, is there any php form mail script with file upload like this website [URL="http://passportclone.com/order.php"]link[/URL]? or like the picture I've attached below, so if you the user submit, it will automatically send to my email? thank you... :)

Member Avatar for EverWebby
0
104
Member Avatar for ekseks

Can someone help me entering a date "manually" in MySQL thanks :) here's my code it's currently entering 0000-00-00 in my databse THE HTML [CODE]<html> <head> <title>..</title> <body> <form action="work1.php" method="post"> Value1: <input type="text" name="date"><br> <input type="Submit"> </form> </body> </head> </html>[/CODE] PHP [CODE]<?php $username="root"; $password=""; $database="wapwap"; $date=$_POST['Value1']; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or …

Member Avatar for niths
0
6K
Member Avatar for mickeymoose

Hi, I'm quite new to PHP and MYSQL, but I have chosen to do an A-level project in it. This is just a basic registering page, which I've copied and modified from one out of a book. That one works, but this doesn't, saying that "mysql_numrows(): supplied argument is not …

Member Avatar for looxlmc
0
412
Member Avatar for RJB_Ronnie

Hi Guys and Gals, I'm a graphic designer working on a website for a client, but since I've never done a website of this magnitude before, I'm needing some help with PHP - a language that I'm crash-coursing on, but I'm no where near where I need to be. I'm …

Member Avatar for almostbob
0
194
Member Avatar for Tenaciousmug

Ok I don't understand why the update statement only works once.. and after it rolls another 6, it wont add another 500 to the RP amount. [CODE]<?php session_start(); include("logincheck.php"); ?> <?php include_once("header.php"); ?> <td width='100%' valign='top' align='center'> <center><?php $dice = rand(1,6); echo "You rolled a<br /><b>{$dice}</b>\n"; if($dice == 6) { …

Member Avatar for EverWebby
0
118

The End.