Jump to content

Search the Community

Showing results for tags 'php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome
    • Announcements & News
    • New Arrivals
  • Web Development
    • Programming
    • Database Development
    • Server Administration
    • Hosting & Domains
    • Frameworks
  • Web Design
    • HTML & CSS
    • Graphics & Multimedia
  • Desktop Discussion
    • Linux Development
    • Windows Development
    • Mac/Apple Development
    • Hardware Discussion
  • Marketing & Business
    • Advertising, Marketing, Monetization & Social Media
    • Search Engine Optimization & Traffic Building
    • Buy, Sell or Trade
  • Prodjex Web Development Applications, Tools and Plugins
    • IP.Board Applications and Plugins
    • Web Tools
  • The Developer Dump
    • General Chat

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 23 results

  1. What are some of the true advantages of using PHP 8 over PHP 7?
  2. matthewjohn938

    PHP

    How can you run a different query if the first one pulls 0 rows in PHP (SQL)?
  3. How can one convert an existing PHP project to API? Any suggestions?
  4. How much PHP knowledge do one need to create their own website builder like WordPress?
  5. Hello Guys, can we use a PHP built-in web server on a public/production network? Thanks :)
  6. WE ALL KNOW THAT THE HTML IS BECOMING NEXT TO THE CUSTOMER AND PHP IS BROUGHT NEXT TO THE SERVER. BUT I WOULD LIKE TO KNOW IF PROGRAMMING ALL THE DATABASE CAN BE DONE IN HTML?
  7. Hello guys, It is my first thread here, I did not intend to make one, but I saw a lot of you are using mysql_connect() mysql_query() please, don't! PDO : PHP Data Objects If you read this article : http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/ you will probably understand why you should be using PDO, and if you still don't, please ask, I will do my best to convert you to use better programming practices
  8. Hand coding forms can be a pain, especially if you have a lot of them to code. I've noticed that there are many "form builder" solutions out there, but most have limitations or aren't what I am looking for. For example, many of the form building tools create a form that emails you instead of saves it in a database. Are there any good form building tools that create PHP code and saves the data to a database, preferably to a customizable set of fields in the database?
  9. MailChimp allows you to create sign up forms with their builder, but they can be a pain to style and for some don’t allow enough customization. The following code is an example of how you can take advantage of the MailChimp API to subscribe new users. Doing this allows you to then create a custom sign up form and style it easily to match your own look and feel. This example assumes you’re only passing the First Name, Last Name, and email of a new subscriber. It’s easy enough to add additional fields, but this will get you started. First you’ll need to setup an API key in your
  10. So this is my first little mini tutorial here. Hope someone will like it/find it useful. Basically what we are going to do is scrape some data from a remote website using PHP and cURL. cURL is a "client URL transfer library" for making all sorts of remote requests and is very useful for many things like getting data, logging in automatically, auto filling out forms etc. Lets get cracking! First and foremost we have to enable the cURL extension as this is not enabled by default. On a Windows machine edit your php.ini file and uncomment ;extension=php_curl.dll and restart your server
  11. How do I add a date and time to the end of my file upload? Currently I've tried: move_uploaded_file($_FILES["file"]["tmp_name"], "uploads/".$orgid."/".$_FILES["file"]["name"].date("Y-m-d H:i:s")); This doesn't quite work as it appends like this: filename.jpg2014-01-06 12:01:05 How can I do this so that it will be filename2014-01-06 12:01:05.jpg
  12. Is it important to close your database connection at the end of your PHP file? I assumed it closed as soon as the page was done executing, so what would be the benefit in including it in your code?
  13. I'm not sure what to call what I'm trying to do so hard to run a Google search on it. I have a spot where I want to assign team members to a project. There is an input box where I can type their names. As I start typing their name I would like it to query the users table and show possible results, then I can click their name and they are added, then I can start typing another persons name and add multiple people.
  14. PHP for all its sins is a very powerful tool. In terms of speed of productivity, nothing can touch it. Throw some code into a script, upload it and you are done! However this ease comes at a cost: what first appears to be "quick and easy" turns out to be an maintenance nightmare. Writing clean and robust code in PHP is hard. Often times, many newcomers do not always have a background in software engineering. This mixture of ease of use combined with no formal training in clean architecture can lead to "spaghetti code". This is one of the reasons PHP has gotten a bad reputation among pr
  15. I'm trying to find a good tutorial on how to create a spot on my website that will pull in data from a mysql table and auto update without reloading the page. Something very similar to the funtionality of Facebook's News Feed. I can't seem to find anything. Anyone know of any good tutorial on how to accomplish this in PHP?
  16. My below code isn't returning data for <h1><?php echo($query['id']); ?><h1> What am I missing? <?php //Connect to the Database $host = localhost; $username = db_user; $password = 'pass'; $connect = mysql_connect($host,$username,$password); //Select the Database $db = 'db_pm'; mysql_select_db($db); //Query the needed data $query = "select id,userid,title,description from projects where id=1"; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); ?> <link href="../assets/front.css" rel="stylesheet" type="text/css" /> <?php inclu
  17. PHP 5.4 has been released. Anyone update their server yet?
  18. So 20 minutes later and all I've done is copied and pasted code from one page to another and it still doesn't work. So I thought 'I know I will start all over again' to start the processes of copying and pasting all over again. Anyone got any ideas to help me: Stick to it Help teach me php Stop me from Copy and Pasting
  19. This is a lesser known framework but I think it deserves more attention because it's by far the most amazing one I've used to date. http://laravel.com/ It teaches good practice too... The "routes" concept encourages you to keep all your logic in models where it belongs.
  20. So this one has been getting to me for a while now.. There is a site that I am trying to log in to, go to a reports page after a successful login, and then download up to 3 reports that are linked on that page. The problem that I'm having is that the reports are randomly named, and I can't get curl to download them. I'll post the html file that the site spit back out to me.. Can someone see how to download the 3 files that are on that page without hardcoding the file name? The 3 reports are named: My Company Invoice Upload_516_146_2012391728360 My Company Invoice Upload_
  21. This following will allow you to upload a .csv file via a web form then insert that data into a MYSQL database. I had a request for it this morning and so now that I have it created I figured I would share. Let me know if you see anything that would be an improvement. Step 1 - Create Web Form <form enctype="multipart/form-data" action="uploader.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form>
  22. I'm trying to figure out how to use this code, but it's not working right. This query works fine: $var1= $_POST['user']; $var2 = $_POST['order']; //Connect to the Database $host = localhost; $username = user; $password = pass; $connect = mysql_connect($host,$username,$password); //Select the Database $db = 'devwp'; mysql_select_db($db); //Query the Needed Data $query = 'select distinct pm.meta_value from wp_shopperpress_orders o inner join wp_posts p on left(o.order_items, instr(o.order_items, "x")-1) = p.id inner join wp_postmeta pm on p.id = pm.post_id'; $result = mysql_query($query
  23. Nathan

    PHP Line Break

    So I'm very new to PHP and trying to learn a few thing. I'm trying to keep all my code standard. What's the correct way to do a line break in PHP? Such as </br> in HTML? This is how I'm currently doing it: <?php echo $data[0]->like_count; print "<p>Thank you for your purchase!</p>"; ?>
×
×
  • Create New...