Jump to content

Search the Community

Showing results for tags 'newbie'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (Dreamweaver, Zend, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

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


Age


Donation Link

Found 18 results

  1. Hi peeps, Im Scott, from Scotland.... ock aye the noo (before anyone else says it), Just thought i would introduce myself to the community and make some new friends along the way hopefully. I play guitar, sing, was on Xfactor 2010 (didnt get through though) i like Dr WHO and like a true Scotsman i can drink alot and handle my Whiskey.... Although my day-2-day jobs have always been in retail i have been a secret programmer all my life, hence i am here today i would like to meet fellow programmers, share ideas, share support and show of my projects and pimp myself for work. Recently being made redundant TWICE during covid i have decided to go out on my own and sell my programming skills and build projects/applications for other people. Over the years i have used lots of platforms starting out back in the day with SkyPortal an ASP CMS before WordPress days, since then i have been hooked on building addons, plugins, modules, applications whatever you want to call them. I was just sick of always being let down with free downloaded "addons", they either didnt do EVERYTHING i wanted it to OR you had to pay too much to unlock the feature you need or they bombarded my applications with advertising so since then if i needed a tool, i programmed it myself to get the job done! Ive been told i have a unique way of looking at problems and being able to resolve them with code and automation i suppose im a problem solver as well as a developer/inventor/programmer Ive just setup my own project website and want to build up a portfolio of scripts, plugins, applications and really ive joined this community today to share these, get valuable feedback, input and suggestions and meet like minded people to share ideas and support.
  2. Although I'm quite familiar with PHP I never really had learn it like from where I should start. I learned it because I needed to so I can pass one of my subjects that only thought as simple select queries with where, joins and basic stuffs but never on how to apply it to websites and stuff. I'm currently a third year student dealing with capstone and its quite hard as we never got hands on learning (modular - without any online lectures 😭) due to the pandemic. I'm really having a hard time as they expect so much of the system we will develop with very little to no knowledge about some topics. I'd really appreciate your help.
  3. Hi guys, I know the basics of HTML but I've come to you for some help, hopefully. Here's what I'm trying to achieve... I want to create a landing page for my company that contains a simple form entry. "Enter your town" ......... > (Hit Submit).....> Redirects to one of two URL's depending on what they've entered. i.e. IF contains "Exeter" redirect to *URL1* IF DOES NOT contain "Exeter" redirect to *URL2* Is anyone able to write me a full code, form and all?
  4. Howdy folks, Looking forward to learning a lot from you guys and hopefully being able to give some of that back as my PHP skills increase. I'm not a complete newbie, but I still have a lot to learn. The forum post that caused me to sign up was made by 'this is not my name' (Jessica), a Guru. The reason it caught my attention was because it made a definite statement about what not to do AND offered an alternative method to achieve the same result. Wow...mature coders! I signed up minutes later - after I solved the issue 'myself' (shoulders of giants an' all that!) and gained an understanding of a process. Good to meet you all.
  5. Please help: I'm trying to figure out what is going on with a custom made PHP contact form on my company's multiple websites. Check it out here: www.TacticalSolar.com This custom form was made by a former employee and USUALLY works great. Validation, spam checking, database connection, etc. But I've discovered a bug. The form does not always actually send the data to us when it says it does! This problem almost always happens in Internet Explorer and Safari browsers. But sometimes that data shows up. This does not effect Firefox or Chrome. I've been looking everywhere, but no idea what is causing this. Thoughts? Ideas? I'm no PHP coder so even obvious places to look are welcome.
  6. Hey guys. I just recently started learning php and I like to learn hands on. So, my first project involves the Google Calendar. I found a script on github that is basically a Google calendar feed and I've been manipulating it to meet my personal needs and expectations, but the only thing I am struggling with is the xml part. All I want to do in this case is get the value from ###TITLE### (after it is sorted by newest date which is done automatically in the script) and store it in a new variable but no matter what I try or do and after reading a bunch of material on xml and php, I still cannot get it to work. If anyone knows how to do this and provide an explanation so I can actually learn I would really really appreciate it. Here is the github script https://github.com/media-uk/GCalPHP/blob/master/gcalphp.php Thank you and I am looking forward to any suggestions or anything.
  7. Hi guys, been self teaching my self a bit of php, html, css and javascript, bit by bit, went to a class @freeformers and they showed me the best way to learn is to find existing code and fiddle about with it, see how it works and take it from there. So far so good, but I am kinda stuck on a one thing I am trying to do! http://forums.phpfreaks.com/topic/290429-uploading-image-location-to-db-and-image-file-to-directory-using-pdo/ Which has had me stumped for a few days now... so Im joining this form in the hope I can get some help. Other than that, my brain is toast gonna watch Ray Donovan, and hope I get a brainwave! Hope to learn alot from you guys!
  8. I am a php newbie.Can anyone explain me this line of code ? echo "<option value=\"$c\">$c</option>\n"; Why do we use "\" around $c?
  9. Hi there, newbie to this forum and newbie to PHP (infact I only started "attempting" to use it today) I have a contact form on https://scm-intranet.tees.ac.uk/users/l1071039/bobbin/order.html And I have a table set up on MySQL named "orderform" According to my order.html, the form data should be posted to order.php (code can be seen below) <?php $product = $_POST['product']; $productcomments = $_POST['productcomments']; $name = $_POST['name']; $address = $_POST['address']; $age = $_POST['age']; $delivery = $_POST['delivery']; ?> <?php $host=”mysql.scm.tees.ac.uk”; $user_name=”l1071039”; $pwd=”+i^RR9b7”; $database_name=”l1071039”; $db=mysql_connect($host, $user_name, $pwd); if (mysql_error() > β€œβ€) print mysql_error() . β€œ<br>”; mysql_select_db($database_name, $db); if (mysql_error() > β€œβ€) print mysql_error() . β€œ<br>”; ?> <?php $query = β€œinsert into orderform (product, productcomments, name, address, age, delivery) values (β€˜β€ . $product . β€œβ€˜, ” . $productcomments . β€œ, β€˜β€ . $name . β€œβ€˜, β€˜β€ . $address . β€œ. $age . β€œ. $delivery . β€œβ€˜)”; $qresult = mysql_query($query); ?> However when I fill the form in I get a snippet of code? How do I get it so when the submit button is clicked, it returns to the Home Page, and how can I view the data that was inputted? Many Thanks in advance
  10. Howdy folks! Please go easy on me, I'm relatively new to programming and still climbing through the basics. My code is pretty simple. User gotta pick "d" or "w" to deposit or withdraw his fake virtual money, then he picks the amount and the awesomely cool calculation transpires But it doesn't work. No matter what is being picked the keyboard always goes to the "else" condition (which tells the user "You can only use enter 'w' or 'd'" -- despite the fact I input "d" or "w"). Basically it completely skips my "if" and "else if" statements. I tried putting "d" in quotations, without, with tags, with what not! So, any clue what is being done wrong here? <?php $balance=1000; echo "Welcome to your bank. Your balance is " . $balance . " Which action would you like to take? (w=withdraw, d=deposit) \n" ; $user=fgets(STDIN); if ($user=="w") { echo "How much would you like to withdraw? \n"; (int)$sum=fgets(STDIN); $balance = $balance-$sum; echo "Money successfully withdrawn. Your balance now stands at" . $balance . ""; } else if ($user=="d") { echo "How much would you like to deposit? \n"; $sum=fgets(STDIN); $balance = $balance+$sum; echo "Money successfully deposited. Your balance now stands at" . $balance . "" ; } else { echo "You can only use enter 'w' or 'd'"; } ?>
  11. Hi PF, I've been learning php for about 3 months now and would like to get away from my desktop environment to a laptop. This laptop will only be for learning php, so I'll run XAMPP and a Sublime Text or some free editor. What do you guys recommend me getting from experience? Requirements: 13"+ monitor $400- budget Thanks in advance, -Eric
  12. Hello all, I am mother of 2 (10 yrs old Daughter & 6 yrs old son), quit my job (15 yrs) last month to try my hand at freelancing.. I am sorta new to web development (had developed a website 8 yrs back)... I am learning right now. Done with some basic learning of HTML/CSS and PHP. Getting my hands on experience with some basic PHP code right now... Will use this site to learn fast from others experience. Hoping some day to contribute back to the group... THanks!!!
  13. hello there. i am new here starting my php learning with this forum. hopefully i will get people friendly around. regards
  14. Guys, need some help.. Right now i have a login page with select box option.. I have create several other page (admin_page.php, student_page.php, parents_page.php) to link with the option in the select box.. So what im asking now is how to link the selected option to their page respectively with the username and pass correct? Here is the login page looks like.. http://i272.photobucket.com/albums/jj178/r1nk_2008/lol_zpsa54db359.png <html> <head> <title> Login Form </title> </head> <body> <div style="width: 200px; margin: 200px auto 0 auto;"> <form method='post' action='login.php'> <table width='400' border='5' align='center'> <tr> <td align='center' colspan='5'><h1>Member Login</h1></td> </tr> <tr> <td align='center'>Username:</td> <td><input type='text' name='username' /></td> </tr> <tr> <td align='center'>Password:</td> <td><input type='password' name='pass' /></td> </tr> <tr> <td></td> <td align='left'> <select name="type" id="type"> <option value="0" selected="selected">Select user type</option> <option value="admin">Admin</option> <option value="student">Student</option> <option value="lecturer">Lecturer</option> <option value="parents">Parents</option> </select> </td> </tr> <tr> <td colspan='5' align='center'><input type='submit' name='login' value='Log In' /></td> </tr> </table> </form> </body> </html> <?php mysql_connect("localhost","root",""); mysql_select_db("student_attendance"); if(isset($_POST['login'])){ $username = $_POST['username']; $password = $_POST['pass']; $type = $_POST['type']; $check_user = "select * from users where username='$username' AND pass='$password' AND type='$type'"; $run = mysql_query($check_user); if(mysql_num_rows($run)>0){ echo "<script>window.open('admin_page.php','_self')</script>"; } else { echo "<script>alert('Username, password or user type is incorrect!')</script>"; } } ?>
  15. Hey, i got another question. Ok so far i have a table called users (id, name, username, pass, type) and here is my coding so far.. <html> <head> <title> Login Form </title> </head> <body> <form method='post' action='login.php'> <table width='400' border='5' align='center'> <tr> <td align='center' colspan='5'><h1>Login Form</h1></td> </tr> <tr> <td align='center'>Username:</td> <td><input type='text' name='username' /></td> </tr> <tr> <td align='center'>Password:</td> <td><input type='password' name='pass' /></td> </tr> <tr> <td align='center'> <select name="type" id="type"> <option value="0 selected="selected">Select user type</option> <option value="admin">Admin</option> <option value="student">Student</option> </select> </tr> <tr> <td colspan='5' align='center'><input type='submit' name='login' value='Log In' /></td> </tr> </table> </form> </body> </html> <?php mysql_connect("localhost","root",""); mysql_select_db("student_attendance"); if(isset($_POST['login'])){ $username = $_POST['username']; $password = $_POST['pass']; $type = $_POST['type']; $check_user = "select * from users where username='$username', pass='$password' AND type='$type'"; $run = mysql_query($check_user); if(mysql_num_rows($run)>0){ echo "<script>alert('You are logged in')</script>"; } else { echo "<script>alert('username,password or user type is incorrect!')</script>"; } } ?> And when i viewed it looks like this.. http://i272.photobucket.com/albums/jj178/r1nk_2008/prob_zpsd907ed84.png So my questions are :- -how to make the select box option to the right side, below the password form ? -how to fix the error so that when i enter correct username, pass and type it says "you are login" ?
  16. Hello, im a new user here. Im now working on a project called student attendance management sytem. I have doing all the necessary tables in database which is admin, lecturer, student, parent, attendance and grade. Ok so im now working on a 1st page which is a login page. Right now i have finished the coding and what im gonna ask u all is how to make sure that when i clicked 'login', it not only detect the admin table but all of other tables? <html> <head> <title> Login Form </title> </head> <body> <form method='post' action='login.php'> <table width='400' border='5' align='center'> <tr> <td align='center' colspan='5'><h1>Login Form</h1></td> </tr> <tr> <td align='center'>Username:</td> <td><input type='text' name='username' /></td> </tr> <tr> <td align='center'>Password:</td> <td><input type='password' name='pass' /></td> </tr> <tr> <td colspan='5' align='center'><input type='submit' name='login' value='Log In' /></td> </tr> </table> </form> </body> </html> <?php mysql_connect("localhost","root",""); mysql_select_db("student_attendance"); if(isset($_POST['login'])){ $username = $_POST['username']; $password = $_POST['pass']; $check_user = "select * from admin where username='$username' AND pass='$password'"; $run = mysql_query($check_user); if(mysql_num_rows($run)>0){ echo "<script>alert('You are logged in')</script>"; } else { echo "<script>alert('username or password is incorrect!')</script>"; } } ?>
  17. Hi there, I am feeling very silly asking for help on this as it seems it would be PHP 101...: I have a website which uses PHP pages, my main site loads fine, however when i click any of the links in the menu (which should go to PHP pages) it returns a 404. For example, I have a PHP file on my root called properties.php which it should be loaded when i click the Properties link, but it doesn't. i also have an /admin directory, which contains php files (used for administering content), but it doesn't even load the login screen, instead takes me straight in! I have since deleted the admin folder to be safe just now. I contacted the hosting company in case i got the root path wrong (Godaddy), but they prompty/rudely told me it wasn't their problem I know this is really basic stuff, but if someone could point me in the right direction, i'd appreciate it. Thanks in advance! Jamie
  18. Hi thanks for reading my first post. I'm having trouble with a checkout form processor that is working but throwing WARNINGS that my sales team (and later direct customers) should not get. I am trying to grab customer cart information (one or more rows), grab it as an array, convert all to string, replace the double shipping (if it exists), and store it in final variable $prodfinal. Here is the code: // BTG Product Inserting Code $result_products = mysql_query("SELECT name, name2 FROM cart WHERE invoice_id=$invoice_id"); while($products[]= mysql_fetch_array($result_products,MYSQL_ASSOC)); $prod3=" "; foreach($products as $prod2) { $prod3.=" ".(implode(" ",$prod2)); } $prod2=(implode(" ",$products)); $prodfinal=str_replace('Shipping Shipping','& Shipping',$prod3); // BTG code end This code executes successfully but throws: Warning: implode() [function.implode]: Invalid arguments passed in /home1/beatth13/public_html/cms/customer_orders_list32.php on line 42 Warning: Cannot modify header information - headers already sent by (output started at /home1/beatth13/public_html/cms/customer_orders_list32.php:42) in /home1/beatth13/public_html/cms/customer_orders_list32.php on line 180 line 42 is the -- foreach($products as $prod2) { $prod3.=" ".(implode(" ",$prod2)); } I tested this code segment on its own php test page and it runs fine, no warnings... when I embed it in the larger form processing page the implode function...well...implodes. ALSO it throws the "output started" error from line 42 except I REALLY do not see where I am sending any output... It does not appear to me that I am sending any HTML output at this point but apparently I am wrong. Thank you in advance for your help! BTG
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.