Jump to content

exceedinglife

Members
  • Content Count

    54
  • Joined

  • Last visited

Community Reputation

0 Neutral

About exceedinglife

  • Rank
    Regular Member
  • Birthday 01/24/1991

Profile Information

  • Gender
    Male
  • Location
    Milwaukee WI
  1. This should be a simple task I am just not fully grasping laravel yet. I have my controllers view and models setup. I want to use my users.destroy route to delete my row in the db. But I want to do it a certain way. I want to have an alert show In my alert area on my page asking to confirm the deletion of a certain user. Im assuming I need to pass the user id in a session to an alert to confirm my delete on a delete button click. Click 1 button to open an alert on the top of my page if I click confirm it calls user.destroy. <div class="container"> <div class=
  2. I put the var dump in the store method and nothing happened If I insert a row manually then the row appears in my index and I get can get and show the row with the correct data in my show view. Only I cannot update and create it. I can also delete a record successfully like this $contact = new Contact([ 'first_name' => var_dump($request->get('first_name')),
  3. Ok I fixed job_title Same thing happens tho I get the error alert on the top of the page when i click the submit button on my create view my fields say 'The first name field is required.' And nothing added to db
  4. Hello everyone, I have a PHP Laravel CRUD application I made where I am using MVC style. I have controllers views and models. My database migration is made and my table in the database is made with php artisan migrate. I am using php 7.3 and laravel 5.8. On my create view I go to create a single object in my database and my errors are thrown saying nothing in text box (no input) If I comment out the errors then just I click my submit button and nothing happens nothing is entered into my db. I have looked at many different crud examples and I am not sure why my object isn’t being crea
  5. I have a shopping cart that holds an array or my objects. I have all my customer user details serialized with a form and jQuery. I would like to insert the user data I got from my user details form (maybe I use payer or payer_info? Object. Also I would like to insert my items to the paypal CreateOrder: actions.order.create({ I am guessing I do it like this? "item_list": { "items": [ { "name": "hat", "description": "Brown color hat", "quantity": "5", "price": "3", "tax": "0.01", "sku": "1", "currency": "USD" }, { "name": "handbag", "description": "Black color hand bag", "quantity"
  6. solved with echo '<img src="img/' . $row_product_image['name'] . '" class="w-100" />';
  7. Hello everyone, I have a PHP shopping cart I am working on. I have all my pictures stored in a folder url directory of my project. In my SQL database I have an image table that holds all of the image names. When I load the picture names with my php It somehow adds some extra random characters to the directory path: /img/%7B$row_product_image[name]%7D 404 (Not Found) If I hardcode the image directory img/picturename.jpg It works. Here is what I have. <?php include_once "objects/database.php"; include_once "objects/product.php"; include_once "objects/produc
  8. I have 2 arrays one of the types of numbers that will be used and the 2nd array is how many times that number can be used. I have a letter that determines what kind of method will be used I need to figure out how many times I can use a certain number from an array to determine a letter+number The ‘number’ is what I have to make with all the available numbers I can use. If the number cannot be made I would like to just say number cant be made or anything but allow the program to move on. Here is what I have int[] picks = { 100, 50, 20, 10, 5, 1 }; int[] times =
  9. Hello All I am working on a application where I have to represent money and display how many bills were used to make each amount. I can do this The only problem I am working on figuring out is recording the number of each bill that has been used and to subtract it for the current number. I was thinking of making a money class for 100s 50s 20s 10s 5s and 1s but I cant have each value bill with a specified number of how many. Having the value specificed I would have this : but each one of these has no value amount int hund = 10; int fif = 10; int twen = 1
  10. LLOOOLLLL I cant believe that is all it was My session at the top of the page i didnt realize i had that also thats all i needed to get rid of and its fixed
  11. Hello all, I have a php login project that I am almost finished with. I have users in a table and I can login with the users BUT when I click the login button I get Notice: session_start(): A session had already been started - ignoring in E:\xampp\htdocs\PHP_Login\index.php on line 53 Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\PHP_Login\index.php:53) in E:\xampp\htdocs\PHP_Login\index.php on line 60 When I click the refresh button I get what I am supposed to get and I am logged in to the dashboard. <
  12. My page continuely just keeps spinning on my btn click. In the network tab it opens a new tab (my php) and it has a yellow circile for google chrome - Provisional headers are shown In my form the correct data is shown - in form data. So its getting the correct values. idk if this is anything. General Request URL: http://localhost/php_crud/update.php?id=13 Referrer Policy: no-referrer-when-downgrade
  13. looks like i set this up awhile back ; Common Values: ; E_ALL (Show all errors, warnings and notices including coding standards.) ; E_ALL & ~E_NOTICE (Show all errors, except for notices) ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED ; Development Value: E_ALL ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT ; http://php.net/error-reporting err
  14. Ok I will try that with php.ini One of the errors I found was para_id and it was suppose to be param_id Another issue was $param_date = $date; and it suppose to be $param_date = $currentDate; I changed my button <input ...> to <button></button> My page just continues to load
  15. No error messages. My form submits and clears the data when its valid but the data isnt updated Form is <form action="<?php echo htmlspecialchars(basename($_SERVER["REQUEST_URI"])); ?>" method="post" class="rounded" id="formUpdate"> <div class="form-group row"> <label for="txtid" class="col-sm-3"><b>Id:</b></label> <div class="col-sm-9"> <input type="text" class="form-control" id=
×
×
  • 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.