39,402 Topics

Member Avatar for
Member Avatar for zacharysr

How do i collapse data i pulled out of mysql? I have a messaging system that shows all messegse between you and another member. <table border='1' width='100%'> <?php $ID = $_COOKIE['idCookie']; $memberid = $_GET['id']; $query = mysql_query("SELECT * FROM `private_messages` WHERE to_id='$ID' AND To_Deleted='0' AND from_id='$memberid' OR to_id='$memberid' AND from_id='$ID' …

Member Avatar for diafol
0
387
Member Avatar for BenzZz

Hi, I have a php file that contains the queries as strings. I have wrote the following query: SELECT message_no, sender, destination, time_received, type, reference_no, message FROM messages WHERE message LIKE '%:substring%'; :substring is then assigned a value from $substring. The query works when i run it directly in cmd …

Member Avatar for simplypixie
0
255
Member Avatar for vindom

Hi! Im a noob to PHP but had to use it instead of ASP because I couldn't retrieve images from database using ASP + MS Access... Anyways.. I have couple questions: Number 1: How to retrieve and displaymultiple(!) images(jpg) from mysql DB? NUmber 2: I have a main page that …

Member Avatar for grant.baker
0
296
Member Avatar for cartergarth

Hello everyone! How do you write a PHP function in codeigniter that lets user download data to an Excel file? Thank You.

Member Avatar for almostbob
0
207
Member Avatar for kratijain

I want to display an image from database so i am using this script: <?php header("Content-type: image/jpeg"); $username = "root"; $password = "root"; $host = "localhost"; $database = "binary"; mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $id = 3; …

Member Avatar for kratijain
0
380
Member Avatar for marifard

Hi, I make two tables, one of them named operator, used to enter the mobile line operator name and the other one name directory, used to enter name, surname, mobile number and the id of the operator. I make a page to display all data from directory table and call …

Member Avatar for diafol
0
230
Member Avatar for timwhelan

Hello, so none develper needing assistance... I am trying to change a class tag to a sub menus <ul> tag within Drupal 7. I have a main nav and sub nav each has the class - menu. I am trying to change the sub nav class attribute. So... <ul class="menu"> …

Member Avatar for diafol
0
148
Member Avatar for drelix01

Hello guys! I wan't to know how to make this: http://img254.imageshack.us/img254/2629/howt.jpg I made a code that creates a new txt file and "Adds a New Line at the Bottom", but i don't know how to make a code that adds a new line in a specific area, like that in …

Member Avatar for JGorard159
0
178
Member Avatar for Jake.20

Greetings, guys can you help me with this error? Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\email_verify\register.php on line 63

Member Avatar for fobos
0
227
Member Avatar for shwetaaroa

i have an table in which certain columns are there i want to edit the data whenever i click on the button in front of a that particular row

Member Avatar for seslie
0
196
Member Avatar for kletig

Hello I have some PHP code that will extract data from multiple tables and present it with mpdf as a PDF. Everything is working well except i only get the last row instead of all rows with one of the while statements. I realize that it's not optimal to run …

Member Avatar for kletig
0
129
Member Avatar for eburlea

Hello, Please advise how to remove white spaces before and after a sentence only. Example: " This is a sentence. " should be "This is a sentence." Thanks.

Member Avatar for pritaeas
0
207
Member Avatar for zeplin

Hi Everyone, I am very new to web design and just starting to get the basics of CSS and html. Designing is so much fun! My site includes articles and I thought it would be cool to include a comment box. Before coming here I have read many many posts …

Member Avatar for mastersdog
0
307
Member Avatar for muralibobby2015

Hello, we are developing new website. this concept is search users with there skills. for example i want to search 'php developers' from my website. it search whole web and return results. i mean it returns who are the php developers from all like google,bing,yahoo,linkedin,skillpages,facebook etc., is there any way …

Member Avatar for Szabi Zsoldos
0
106
Member Avatar for mr.python

Hi I have this code [CODE=php]<iframe src="http://playerplus.co.nu/ipp.php"> </iframe> [/CODE] can i catch the result of the page in some variable or but it in some text without get it direct from [url]http://playerplus.co.nu/ipp.php[/url]

Member Avatar for Szabi Zsoldos
0
92
Member Avatar for hubertj

Hi guys...I need some help in matching data from results of checkboxs and radio buttons. My Intentions: There are 3 radio buttons and 8 check boxes. Users can select any one but cannot don't select at all. I separate the calss and categories because for classes, users can only select …

Member Avatar for Szabi Zsoldos
0
192
Member Avatar for Panathinaikos22

Hellowp, im new in php language... anyway... I create somehting like small-forum, check it please... [Site](http://codetesting.atwebpages.com/addpost.php) And this is php code do refresh-navigate header( 'Location: http://codetesting.atwebpages.com/forum.php' ); When i press button "Create Thread" then messsage stored to database and load forum.php, in IE it show my new message directly, in …

Member Avatar for Szabi Zsoldos
0
143
Member Avatar for PF2G

Hi, i'm doing a table that show products that you search for...Now i have a proble with the image and the category of the product they don't appear in the page: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM produtos WHERE nome LIKE '%".$prod."%'"; $produt=mysql_query($query_prod, $futura); $count=mysql_num_rows($produt); $prod_img="SELECT * FROM …

Member Avatar for Szabi Zsoldos
0
172
Member Avatar for dany12

How to maintain a set session for multiple pages only if a user is logged in? Need help as quick as possible Thank you

Member Avatar for dany12
0
305
Member Avatar for Jake.20

Greetings guys, can you help me about this error? the error say's Notice: Undefined index: username in C:\xampp\htdocs\email_verify\index.php on line 23 Notice: Undefined index: password in C:\xampp\htdocs\email_verify\index.php on line 25 <?php session_start(); if(isset($_SESSION['error'])) { echo '<p>'.$_SESSION['error']['username'].'</p>'; echo '<p>'.$_SESSION['error']['email'].'</p>'; echo '<p>'.$_SESSION['error']['password'].'</p>'; unset($_SESSION['error']); } ?> Thanks in advance.

Member Avatar for Jake.20
0
205
Member Avatar for abhi10kumar

I am learning Zend Framework 1.11 I need good and simple tutorials/eBooks with examples.

Member Avatar for pritaeas
0
41
Member Avatar for abhi10kumar

How I can write the below query in PHP ? In my query I have sepcial characters like single quote (') ampersand (&) `update onlinepg (short_description, long_description) values ('PG for Girls/Ladies/Women in Kasmiri Rd, heart of the Agra city with fully furnished, 2/3 times homely food and all basic amenities.', …

Member Avatar for seslie
0
100
Member Avatar for vijayram

Hi evreybody,sry before i posted wrong title name,very sory for my bad english I have a users table which I want to display 5 records then take a new row, display 5 records, take a new row... plz anybody help me. this is the mysql query $planbook_obj= Doctrine_Query::create()->select('p.personal_id,p.photo,p.title_name,p.zone_id,p.place,p.occasion,p.itinerary,p.description,p.date')->from('planbook p'); $result …

Member Avatar for vijayram
0
197
Member Avatar for vijayram

Hi everybody, i create a form,all the form datas store in db.but no data retrive from database. what is the problem in my code. nothing to display my template page. plz help me. this is my action file: class planbookActions extends sfActions { public function executeIndex(sfWebRequest $request) { $planbook_obj= Doctrine_Query::create()->select …

Member Avatar for ayesha789
0
149
Member Avatar for PF2G

Hi, i'm working on a website where i have the list of all products with image, category, name of the product and its reference. What I'm trying to do is creating a checkbox and when it is checked it erases all that info (category, name of the product and reference) …

Member Avatar for ayesha789
0
218
Member Avatar for vijayram

Hi everybody, Now,this table print in vertical(one by one) type.but i need table print the following method. how can,i make it,plz help me. 1 6 11 etc ..... 2 7 12 etc 3 8 13. 4 9 14 5 10 15 etc this is the mysql query $planbook_obj= Doctrine_Query::create()->select('p.personal_id,p.photo,p.title_name,p.zone_id,p.place,p.occasion,p.itinerary,p.description,p.date')->from('planbook p'); …

Member Avatar for vijayram
0
147
Member Avatar for moblyft

Hello, can some one help me with the below code? I am trying to create a multiple image upload form that displays the images. I want to save the image name into my msql database and save the actual image into a folder in my dirrectory. <?php define('UPLOAD_PATH', $_SERVER['DOCUMENT_ROOT'] . …

Member Avatar for moblyft
0
366
Member Avatar for masocha

l want to be able to create a custom user page tab with custom tab url for user x, meaning any user who auithorised my app. Anyone know how l can do that.

Member Avatar for diafol
0
74
Member Avatar for dartiss

Morning, I'm attempting to perform a preg_match against a regular expression to identify whether it's a YouTube video or not. I've got, I'll admit, the regular expression from elsewhere... \s*(https?:\/\/www.youtube(?:-nocookie)?.com\/(?:v|embed)\/([a-zA-Z0-9-]+)).* This appears to work fine. However, I'm getting the following error when I attempt the preg_match... WARNING: [filename].php:[line] - preg_match() …

Member Avatar for dartiss
0
200
Member Avatar for Pityu

Hey there My issue is the following: I have a windows-based xampp-apache server with which I would like to make sub-sub domain redirects to subdirectory: I have a domain, for which on the cpanel I've made an A-record to my IP address: The sub domain is *.dev.bestudion.net. Whay I want …

Member Avatar for gtec
0
152
Member Avatar for davy_yg

I basically trying to capture the input information then print the on the screen. Noted, that I must implement filter input and escape output. Please checked whether this result is correct: receive.php <html> <?php $nama = isset($_POST['nama']) ? $_POST ['nama'] : ''; $color = isset($_POST['color']) ? $_POST ['color'] : ''; …

Member Avatar for pritaeas
0
199
Member Avatar for Nsie

Hi, I'm passing through hard times in d hands of this. I have created my database and i'm having issues replacing the content of my database table with the values i.v posted from my form. Please someone shld help Moi.

Member Avatar for drjohn
0
153
Member Avatar for kjeu_kach

How to create code inputbox insert link url? same image [Click Here](https://lh4.googleusercontent.com/-OXkT7nmxWJM/T6pByj9zwNI/AAAAAAAAAE8/RzbL6VdoQI4/s575/inputbox%2520.png) Thanks all! Nice day.

Member Avatar for Szabi Zsoldos
0
198
Member Avatar for veledrom

Hi, I need to pass full content of `$_FILES` to third page but fail to do so. File is selected once in first page. It might look wierd but It has to work this way. If I use session `$_SESSION['csv_file'] = $_FILES;` in page 2, I cannot read the content …

Member Avatar for veledrom
0
259
Member Avatar for ayesha789

Whenever I tried to access Oracle DB from PHP , it shows error Everything is ok, Path is okay. I changed php.ini file to. I am using old version of xampp Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the …

Member Avatar for ayesha789
0
4K
Member Avatar for mousumisrety

Hi can anyone tell me how i can achive this. I have a product to sell online and will use alertpay but i have some additional information i want the user to fill in before they press the buy button to take the to the payment area.user must give the …

Member Avatar for seslie
0
140
Member Avatar for veledrom

Hi, How can I read a file content without uploading it to the server? I know that we use `$handler = fopen('regular.csv', 'r');` to read an existing file on server but what if doesn't exist. Obviously `$_FILES` is used to move file to server first but I don't have any …

Member Avatar for veledrom
0
390
Member Avatar for DaveyMoyes

Hi everyone, I have a script running on my page that uploads a new image. I am getting the information from the mysql ok, by using if (isset($_POST['var'])) { Once the vailidation is complete, at the moment I am using header("Location: url.php"); to reload the page to display the new …

Member Avatar for dschuett
0
771
Member Avatar for ldupreez

Hi All I would appreciate some advice on where to start with this daunting task i have. Please also bear with me as i am fairly new to PHP. I’ve created an online form for my clients to complete in order to get a quote. The only thing I can …

Member Avatar for diafol
0
176
Member Avatar for kukula

Hi there, at the beginning I must admit that I am not good at PHP. I made a few websites in HTML but now I don't know what happened and what to do with it. I wanted to change a few things at [http://www.tips2.pl/](http://www.tips2.pl/) which is made in PHP. Everything …

Member Avatar for kukula
0
201
Member Avatar for mgn2683

How would I go about inserting a page break to occur within a repeat region for printing? I have a recordset pulling 222 records to be displayed. They want to be able to print each record on a page, so I would have to put the page break code in …

Member Avatar for aslamswt
0
12K
Member Avatar for athulram

When I send mail using PHP's mail function. The reciever's client shows "via soandsohost". But when I use horde webmail fromt the host's cPanel it does not seem to appear. So haw can I remove the "via" part while still being able to send mail using PHP code ?

Member Avatar for pritaeas
0
91
Member Avatar for codemonkey88

Is anyone on here using FCKeditor filemanager? I know its quite old now, but it came with a CMS. I have been trying to upload some large zip files using the filemanager, but it just says unvalid file. When I've had a look round on the net, I found a …

Member Avatar for codemonkey88
0
115
Member Avatar for rkumaram

Hi, I am creating a small page with the help of jquery , What I want is when I click on **shortdesc** TR class, only the corresponding **fulldesc ** TR class should be visible. Currently Its showing all the **fulldesc** TR clasees. Please help me to solve this. Following is …

Member Avatar for rkumaram
0
230
Member Avatar for mehrantahir

Hi everybody, So, 'Litmus', a web app for testing emails and webpages across browsers and email clients, has a proprietary method that they claim is able to track not just opens, clicks, browsers, etc (standard with an embedded image and pass-through link tracking.) What's unique is they claim that they …

Member Avatar for mousecraft
0
263
Member Avatar for reco21

Hey Everyone. Im using jquery's Validation plugin to check post values before I submit a form. Im trying to check a mysql table column to match user name to check for a duplicate name before submitting. This snippet of code below works as expected.. [CODE]<?php $request = trim(strtolower($_REQUEST['login'])); //sleep(2); usleep(150000); …

Member Avatar for reco21
0
209
Member Avatar for showman13

Hi, I have a question that on the surface is probably pretty simple, but with a couple of caveats... What I have is a membership site, where the members have a replicated website, and their personal link is the domain.com/username I use htaccess MOD ReWrite to capture the members username …

Member Avatar for showman13
0
256
Member Avatar for UFO Disko

Hello, I'm trying to get mysql data with a simple select statement, I need to get the number of the row as well. The table should like this: 1 - Song Name, Artist 2 - Song Name, Artist 3 - Song Name, Artist The problem is with the code I'm …

Member Avatar for vibhaJ
0
50
Member Avatar for kairoland

I'm not very good with php or mysql so I can't figure out what I'm doing wrong. I get this error: Failed You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tests,'20120508,'5.5,'20120508)' at line …

Member Avatar for kairoland
0
431
Member Avatar for riahc3

Hey I have the following: <?php echo $_COOKIE["name"];?> <?php echo $_item->getId();?> With the $_COOKIE["name"] having a value of "hi" and the $_item->getId() having a value of "5" (or 5, irrelevent as it is all strings) what if I want to do something like (fake nonworking code): concat joins 2 strings. …

Member Avatar for vibhaJ
0
149

The End.