- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Hi All, I am building an eCommerce website and I really new to PHP and MYSQL but loving the challenge. On my website I have 9 different categories of products with each page having about 8 items to sell. Rather than duplicating the code from each .php/.html file into a … |
|
I am trying to put together a web interface for a process which downloads a number of XML files and then processes them. I am usimg JavaScript / jQuery / AJAX to initiate the process on the server, one file at a time, and to display progress information after each … |
|
Hi, I installed Virtualmin GPL on a new Ubuntu 12.04LTS virtual server, and as part of the process generated a self signed certificate which all worked swimmingly. However, I got the "You attempted to reach nh03.netthost.co.za, but the server presented a certificate issued by an entity that is not trusted … |
|
Hi everyone, I'm totally new to PHP and I am trying to create a script that allows users to upload a picture which will then be emailed to me along with their details. When debugging, I keep receiving the message Parse error: syntax error, unexpected $end in C:\Users\Admin\Web\php-form-action.php on line … |
|
Hi. I’m creating a system for my client where he goes to a page where he types in a letter. The text is saved as a file (preferably PDF) and then sent as an email to a printing service. I’d prefer not to save multiple PDFs on my server, so … |
|
|
I would be grateful if someone could suggest what I need to do to get this to work. I have copied two short scripts which should demo the use of $_session, but the read script does not work. I believe the save script is the culprit though. Here they are: … |
I'm having a hard time to send a message to a certain e-mail account. I read that I should setup the PHP.INI at line where SMTP is located, which the default value is localhost. If the SMTP is to the computer itself which is 127.0.0.1 or localhost then the mail … |
|
Hello people :) i'm trying to insert query result into 2 dimensional array i have tried the following way.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ for($i=0;$i<=$index;$i++){ if(isset($myarray[$i]['array1'])|| isset($myarray[$i]['array2'])){ array_unshift($myarray[$i]['array1'],$row['study_period']); array_unshift($myarray[$i]['array2'],$row['test']); }//endif }//endfor }//endwhile [/CODE] But, it failed i also tried.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ $myarray=array( array("array1"=>$row['study_period'],"array2"=>$row['test']) ); }//endwhile [/CODE] it failed too since it … |
|
Hi All, I have a number of arrays stored as a text string in a database (ive included it at the very bottom). As this is a text string i need to know how to convert it back into an array. Also, how can i access a single element, i.e … |
|
Anyone has an idea of how to execute the complete php code ....means i want to make online php editor...that will take code as input from user and correspondingly display the output.... I am not sure how to work with it... Till now i thought of taking input from user … |
|
Hi I'm currently creating a property website and it allows users to submit upto 7 images/property. Currently on clicking the 'submit' button to Add A Propety my code checks for image size, file type and then moves the file from a tmp location to images/propertyimages file. All the images from … |
|
Hi i just created a website for my church and the IE 9 is displaying it wrong.. Can some1 plz take a look at it and get back with me on why its doing that? [URL="http://www.lgm70.org"]www.lgm70.org[/URL] When i looked at it in IE 8 it shows everything that I created … |
|
Hello, My problem stems from reading an image from the local disk and displaying it. There's a middle step of storing it in a database, but I simplified the problem into this test script that replicates the error: The image "http://example.com/test.php" cannot be displayed, because it contains errors. test.php looks … |
|
Hi, I have the following code in test.php file <form name=f1 method=get action="test.php"> <textarea name="question"></textarea> <input type="submit" value="Submit"> </form> If I enter "sample text" its working fine with [url]http://www.example.com/test.php?question=sample+text[/url] But if I enter "Create a view that does not contain the" its throwing the following error message with [url]http://www.example.com/test.php?question=Create+a+view+that+does+not+contain+the[/url] [B]Internal … |
|
Hello - Looking to find a function that works just like the php function uasort() but have it maintain the relative order of items when equal keys are found. Here's my code now: [CODE] $array = array("item1"=>-1,"item2"=>-1,"item3"=>-1,"item4"=>0,"item5"=>2,"item6"=>2,"item7"=>1); function sortThis($a,$b) { if( $a == -1 || $b == -1 ) { … |
|
I'm completely self taught - and probably wrongly have learned by trial and error so I have absolutely no idea where I have gone wrong here, I think something in my CSS gets read differently by Chrome than other browsers. I'm redoing my website [URL="http://www.acrodancer.com/Test_Site/completed/AcroDancer.html"]http://www.acrodancer.com/Test_Site/completed/AcroDancer.html[/URL] In IE the sizing is … |
|
hello I want to make an image slider.I have two pages. If the person clicks on the first page the image enlarges and the slider will be shown with next and previous button. I also want to show the titles of these images.Please help me Thanx in advance |
|
Please, I will like anyone who can help me on this query $page_set=mysql_query("SELECT * FROM pages WHERE subject_id = {$subject['id']}", $connection); it resulted in the following error when viewed on the browser "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version … |
|
I'm have a script that outputs files and folders w/ folders as a header and the files listed below. I'd like to sort them alphabetically, but can't seem to figure it out. I think I need to get them into an array. Or use scandir. Here's the code: [CODE]function getDirectory( … |
|
|
|
I am trying to get the win32service PHP extension working. I have installed PHP 5.3.4 on my Windows XP SP3 box, and downloaded the php_32winservice.dll file and listed it in my php.ini file as instructed in the manual. However, there is obviously a version mismatch between the dll and the … |
|
Hi, looked around but i couldnt find much on this. I need to redirect every 3 visitors that visit my url to different sites. so visitor 1 would go to xyz.com, lets say visitor 2 comes along and he gets redirect to xzy.com then the last visitor comes along and … |
|
I have some text in a block with a certain width. I can count the number of lines in the text with substr($text,"<br />" but this is not the same with the number of line of the formatted text at that width. Is there a way to calculate that? Thank … |
|
Hello All - I need some help. I've got a page that lists events (fairs, seminars, etc.) that have been registered by the user, I would like to find a solution that will list these events and next to them include the number of people that have registered to attend … |
|
How would I make a code that dynamicly gets MySQL and makes it like ?UserID=54556 :-/? |
|
Hello, I am a newbie on PHP and mySQL. I am trying to create a simple balance sheet using both. table will show me (account.php) DATE - NOTE - INCOME - EXPENSE so, i have created mysql table for this. It has accid, acctype, accnote, accinc, accexp, accudate. and to … |
|
I am trying to send mail using php. But it shows error as failed to connect with mailserver 'localhost'. Then i use [B]smtp.bizmail.yahoo.com[/B], then it shows SMTP error 530, Authentication required.. I don't know how to pass smtp username and password through php.ini file.. If anybody have better ideas, please … |
|
I have the following code that is very simple and gets information from form fields and mails it off. The issue is that when the email is received using Microsoft Outlook 2003 the message is blank and the actual message that is supposed to be there is an attached HTML … |
|
Hello everybody, for my application I want to implement a email-clickcounter, next to link-clickcounter. Most links and emails (mailto:) appear on a page that gives details about a search-result from my home-made searchmodule. I have set up the counting system like this : Every link is redirected to a click.php-file. … |
|
hi guys, i am struggling with cross tab query in mysql. if you have any idea could you please help me? basically i have data into the table like... cid | Q# | marks c1 | 1| 50 c1 | 2 | 50 c1 | 3 | 50 but i … |