39,320 Topics

Member Avatar for
Member Avatar for jonathan96

HI. Can someone please tell me why this simple operation doesnt work? [CODE]$time1_offset * -1;[/CODE]

Member Avatar for EvolutionFallen
0
176
Member Avatar for nizbit

My PHP account is hosted by the university. I want to send email to my gmail account and not the account tied to my PHP account. Is this possible?

Member Avatar for digital-ether
0
1K
Member Avatar for azegurb

hi there, I have one question here is my code taken from the internet which is about the static function but i dont exactly understand for what reason we use here static function and what does mean self and code which is below can anyone explain it to me [CODE]<?php …

Member Avatar for digital-ether
0
134
Member Avatar for dwlamb_001

Can anyone share a resource (download or a how-to) for parsing a CSV to an associative array based on the first row of the CSV acting as the column names? I found this resource [URL="http://blog.joshuamcginnis.com/2008/12/csv-to-associate-array/"]http://blog.joshuamcginnis.com/2008/12/csv-to-associate-array/[/URL] but can't make heads or tales about the second parameter sent to the function. In …

Member Avatar for diafol
0
243
Member Avatar for cloud09

I have a site that is a single base page that loads content based on get variables. The problem is, is that whenever a form is submitted, the url is cleared of all variables and the form data is never handled. How do you keep the url from reverting back …

Member Avatar for cloud09
0
122
Member Avatar for pbcomput

Hi, I am saving data to text filed i want to display first 50 characters from that text field. I tried it with left() function with my sql query and also tried it with substr() function in php code also.but i am getting a problem it shows first 50 characters …

Member Avatar for pbcomput
0
6K
Member Avatar for EddieC

One might have titled this story "Beware of government bearing gifts." We should be exceedingly wary whenever law makers begin dabbling with something that's been working exceedingly well for decades. Today that thing is the Internet, perhaps the least-regulated industry in the U.S. today. This week the U.S. Federal Communications …

Member Avatar for Usernamex235
0
232
Member Avatar for benk1

Hi Guys I wrote a little web app to integrate with an SQLite database. When the database is on a local PC, there is no problem connecting to it as in: [CODE]$connect = new PDO("sqlite:\path\to\database.db");[/CODE] Now I've been asked if I can adapt it to connect to a linux device …

Member Avatar for digital-ether
0
847
Member Avatar for bmcconkie

Can someone tell me how to concatonate 2 files together in PHP> The UNIX equivalent is: cat file1.txt >> file2.txt

Member Avatar for digital-ether
0
108
Member Avatar for samsons17

Hi.. I'm really new in php.. and cant understand a part from this code below and hope somebody could explain to me : [CODE] while ($subject = mysql_fetch_array($subject_set)) { echo "<li>{$subject["menu_name"]}</li>"; $page_set = mysql_query("SELECT * FROM pages WHERE subject_id = {$subject["id"]}", $connection); if (!$page_set) { die("Database query failed: " . …

Member Avatar for JRM
0
97
Member Avatar for niths

hi all, i am having a page. so wen i select some file and click submit then a message occurs in the next page that the file uploaded and wen i press the back button then only the page should get refresh.because i am displaying the uploaded files in a …

Member Avatar for allincorporated
0
58
Member Avatar for murid

sorry to tell U that I'm very new to this PHP. i'm usng mySQL database. I want to made input using hiragana/katakana/kanji, and an output is from the database. in database, japanese words are using CHAR with collation= utf8_unicode_ci how do I make it ?? <?php input type="text" name="word"?> but …

Member Avatar for allincorporated
0
46
Member Avatar for skinbug

Hi all, I've hit a brick wall trying to validate some array data. I'll dive right in with the code... [code] <form action="process.php" method="post"> <ul> <li><label>Order: <?php echo $form->error("order"); ?></label><input class="order" type="text" name="task[1][order]" maxlength="3" value="<?php echo $form->value("order"); ?>" /></li> <li><label>Task: <?php echo $form->error("task"); ?></label><input type="text" name="task[1][task]" maxlength="50" value="<?php echo $form->value("task"); …

Member Avatar for allincorporated
0
1K
Member Avatar for sachin.quadros

Hi Friends, Kindly help i am using list menu i.e day month year i can get the data using the echo, and how do i insert the data into MySQL in DAY-MONTH-YEAR for example: i want to insert 10-MAY-2010 Regards Sachin

Member Avatar for sachin.quadros
0
119
Member Avatar for sallecpt

hey all. I am trying to do validation via PHP for submitted forms. Below is my own code, please comment if its the correct method or not. However, I tried so many ways to have the /n or /r added, but I cant get to it. Its just to make …

Member Avatar for sallecpt
0
207
Member Avatar for Al Mubarak

Hai., I'm developing drupal 6.15 version. and I'm new for PHP and now i need to develop my web applications with usual databases commands like insert,delete, update,save functions. after at all creted documents make into details invoice report. like PDF format. Is there any possibility to create the above requirements …

Member Avatar for diafol
0
202
Member Avatar for Mujahid158

I'm working on a small social script.. The content will be in Urdu language for which I encoded the files with UTF-8. I'm having problems with the login page. The problem is that I'm unable to execute setcookie() function. I'm getting the following error; Warning: Cannot modify header information - …

Member Avatar for Mujahid158
0
98
Member Avatar for nonshatter

If I have a table sales: sales {sellerid, buyerid} I'm trying to determine the buyers favourite seller... So I need to return the most frequent sellerid. I've used this query to find out the total number of times the buyer has bought something from any seller: [CODE]$countseller = mysql_query("SELECT count(sellerid) …

Member Avatar for nonshatter
0
93
Member Avatar for wxflint

I am looking for a php code to add a url to a text file like this 1- user adds url to a text box 2- user adds site name 3- user hits submit button The url that was entered in to the text box is then added to a …

Member Avatar for tazzz1
0
157
Member Avatar for Richard26

Hi, I would like for images to change automatically on my home page. I have been directed on the internet to the programmes rotate.php. but I cannot get it to work. So I have come here to seek help and guidance for me to get this to work. It would …

Member Avatar for Richard26
0
102
Member Avatar for TexITTech

I am building a website that needs to have a facebook connect, login page, blog page, and a photo page that allows the user to upload photos. This is not my site but I am desinging it and need help with the above. I am using DreamWeaver CS3 as the …

Member Avatar for WoW Me Web Girl
0
152
Member Avatar for GrahamLawton

Hi there, I've been trying to figure out why my update script wont commit changes to the database. I'm building a simple call tracking web app for our technicians. Currently the view, add, and delete functions of the app work fine. The trouble I'm running into is when I want …

Member Avatar for GrahamLawton
0
284
Member Avatar for brendyd

Hi I am trying to create a log system were users can log activities, once they are logged in their username is held in a session. My problem is I want them to be able to create a new log by filling out a form but I don't want them …

Member Avatar for somedude3488
0
166
Member Avatar for Compeek

Hello! For about two or three weeks now, I've had a cron job that runs every 5 minutes as part of an email subscription system I set up for my church. Yesterday something changed with our hosting server (it's shared hosting with Hostmonster) and now I'm getting an email every …

Member Avatar for Compeek
0
155
Member Avatar for muralibobby2015

hello... i am using '-'separater in htaccess. here is my code [CODE] htaccess url:http://rahul/cellbatts/featured products-<?=$fetchhotproducts[itemno]?> RewriteRule ^([^-]*)-([a-zA-Z0-9/_-]+[^.]+)$ product_info.php?catname=$1&itemno=$2 [NC] above is working for this example http://rahul/cellbatts/product_info.php?catname=featured products&&itemno=HA-MO-V9 but my item number is some types like this http://rahul/cellbatts/product_info.php?catname=featured products&&itemno=HA-MO-VK-KL/1 for this the above htaccess url is not working? redirecting to correct …

Member Avatar for SikoSoft
0
72
Member Avatar for rgby

Basically i want to make an online shop, only with like 5/6 products in it. but i dont want a checkout, i basically want it were the buyer can add something to a cart, enter their name, and 2 other information fields (ie phone number and collection date) and then …

Member Avatar for rgby
0
72
Member Avatar for SuntechWebsites

I am wondering if there is a way I can create affiliate tracking links that let me know when a user has filled out a form and came from an affiliate site. Heres my situation...on my site I do not charge fees up front. The client fills out a form …

Member Avatar for SuntechWebsites
0
90
Member Avatar for raju_boini525

hai all, i want to rewrite url in myproject. the actual url is [URL="http://test.com"]http://test.com/cat_product.php?cid=2[/URL] i want this url change to [URL="http://test.com"]http://test.com/cat_product.php[/URL] how do i write .htaccess file. i tried like this [QUOTE] <FilesMatch "\.(htm|html)$"> SetHandler application/x-httpd-php </FilesMatch> <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine on RewriteRule ^cat_product-([0-9]+)\.php$ cat_product.php?cid=$1 </IfModule>[/QUOTE] but it is …

Member Avatar for raju_boini525
0
141
Member Avatar for dan_t

Hi all, I'm using a while loop and looping through data in a database. When I loop through, instead of looping through once it loops through several times. How can I get it to just loop once per field for each user? [CODE]$query = 'SELECT persinfo.userId, persinfo.url, persinfo.email, men.password FROM …

Member Avatar for rajarajan2017
0
78
Member Avatar for umandajayo

Hi all... I am a developing a website using a joomla. I need to display a content but the should filter according to the date. I need only display content which are in between current date and before 30 days. my current mysql quary is SELECT * FROM events WHERE …

Member Avatar for qualitybrains
0
88

The End.