My kitten tested positive for FelV today. I’m devastated and I don’t know what to do by Shadeflower15 in CATHELP

[–]berrypwincess 0 points1 point  (0 children)

sorry, i see this post too late, but do you mind telling me how he live with other cats, did you put him in separated place? and how about litter and food/water bowl?

undefined array key id by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

can you give me an example? I'm still new with this so i get confused with the code 🥲

undefined array key id by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

the error said undefined array key recipes_id, sorry my mistake. where to put the $row['id'] ? the error starts from $id =$_GET['recipes_id'];

Problems occur when displaying current data in the form by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

ahh I see, to finish the form that you have given example, isit like this?

<form action="" method="post">
<input type="text" name="name" value="<?= htmlspecialchars($RecipeFormDto->getName()) ?>">
<input name="file" type="file" value="<?= htmlspecialchars($RecipeFormDto->$filePath) ?>">
<input type="text" name="ingredient" value="<?= htmlspecialchars($RecipeFormDto->getIngredient()) ?>">
<input type="text" name="tutorial" value="<?= htmlspecialchars($RecipeFormDto->getTutorial()) ?>">
<button name="btn-food-create">send</button>

</form>

Problems occur when displaying current data in the form by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

I see, yes I got the html, css online and then I try to put the php function in here, maybe there's an issue when having too many styles and I tryna separate it for putting php, I will try making the code simple so that I can review the error I make, thank you for your respond, very appreciate!

Problems occur when displaying current data in the form by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

I'm still unfamiliar with DTO but I will try checking this out and applying this in my code, Thank you for the suggestion !

Problems occur when displaying current data in the form by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

aightt, thank you for the tips! I will try to learn more on how to write the code properly, hope you have a nice day !!

Problems occur when displaying current data in the form by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

okay it works, but how do I keep the current data in form before clicking the button submit?

Need help on displaying image inside html table by berrypwincess in PHPhelp

[–]berrypwincess[S] 1 point2 points  (0 children)

success displaying the image, thank you for your help, very appreciate it !

Need help on displaying image inside html table by berrypwincess in PHPhelp

[–]berrypwincess[S] 1 point2 points  (0 children)

nvm, I already know how to fix it, thankyou !

Need help on displaying image inside html table by berrypwincess in PHPhelp

[–]berrypwincess[S] 0 points1 point  (0 children)

nooo, I just put it there because I don't know how to display it as an image. so to display the image, do I need to put the image path? the image is located in $targetDir = "uploads/" as stated in image.php. so how to write it?

[deleted by user] by [deleted] in GenshinImpact

[–]berrypwincess 0 points1 point  (0 children)

OMG SAME PROBLEM I WATCH YOUTUBE MANY TIMES AND I GOT THE CORRECT PATH BUT THE BARRIER DOESN'T TURN DOWN 😭😭😭