Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Show us this command "that i can send the automatic print call from php with text content". Show it here.
  2. So you finally answered my original question. You are saying that the php is running on your network and NOT ON A REMOTE SERVER via the internet? Now if that is so I'm sure someone here with a little more experience using php in such a fashion may tell us how to communicate with a network device. I have never used php 'locally' myself.
  3. As OP was told in my first response.
  4. Are you using PHP from a server/host rather than on your local client? If so then php cannot do that since it won't have control over things at the client level.
  5. And you a) said you had images in a folder named contracts b) showed me a sample tag referencing that folder with a filename appended to it (incorrectly) I don't care about the insert code. It is not necessary to do a html table display. What is necessary is your newly written tag lines that will show us your images. PS - I do not want to view any more code that switches in and out of php mode.
  6. Show me how you are retrieving the images that come from the folder you mentioned before. Otherwise you are wasting my time and yours.
  7. I thought we were moving to using a folder of images and NOT a table? Plus this 'new code' doesn't look anything like you last post.
  8. Show me the NEW code that you are using, not just one single line. AND BE SURE YOU HAVE PHP ERROR REPORTING TURNED ON. I think your code has some errors in it
  9. Not a good idea to put into a table. Simply have an image folder and put them there. No need to go thru the work of saving them and then querying for them. As for the display problem... echo "<tbody>"; $query = "SELECT * FROM contracts"; $query_run = mysqli_query($conn,$query); if(mysqli_num_rows($query_run) > 0) { foreach($query_run as $row) { echo " <tr> <td>{$row['id']}</td> <td>{$row['fullname']}</td> <td><img src='{$row['pcontract']}' width='64px'></td> <td><img src='{$row['passport']}' width='64px'></td> <td><img src='{$row['playerapproval']}' width='64px'></td> <td><img src='{$row['testapproval']}' width='64px'></td> <td><img src='{$row['rent']}' width='64px'></td> <td> <a href='contract-view.php?id={$row['id']}' class='btn btn-info btn-sm'>View</a> <a href='contract-edit.php?id={$row['id']}' class='btn btn-success btn-sm'>Edit</a> <form action='contractcode.php' method='POST class='d-inline'> <button type='submit' name='delete_contract' value='{$row['id']}' class='btn btn-danger btn-sm'>Delete</button> </form> </td> </tr>"; } } else echo "<h5> No Record Found </h5>"; echo "</tbody>"; This is how you php code could/should look. A bit cleaner without all the clumsy moves into and out of php mode. As for the foreach loop. I'm not familiar with mysqli functions but am wondering if you can process the results that way and not have to use a fetch() function. Also not clear on where you are storing these images. As I suggested you s/b stroring them in a folder but your logic shows you doing a save and a query to retrieve them, yet you state that they " in a folder name contracts.". Put them in a folder and then amend your code to reference them from that folder and see how it works then. BTW - 64 pixels is not much more than an icon size.
  10. ginerjm

    MR

    God! It would be so nice if forum users took the time to re-read their intended post to make sure that it reads well and actually says what the poster thinks he is saying. Break up run-on sentences so one doesn't have to read thru it 3 times to understand it. Recognize the repetitive flow of words and cut them down to be more precise and in general present a very clear question. OH! And provide a meaningful topic name. That is key to get the attention of the people who you are hoping will read your post and contribute. MR. Really? What is MR supposed to tell us?
  11. WHY WOULD YOU EVER REMOVE AN EXTENSION????? Do you have any clue what that means?
  12. 1 - Kicken was definitely not rude. He was explaining to you (obviously a 'noob') that one cannot create a pop up using php since php runs on the SERVER and not on your client, ie, desktop/laptop/mobile etc.. He was teaching you something. 2 - So now that we know who you were talking to - why him? What code are you talking about? Something you have not shown us obviously but we can only assume that you are going to take this PROBLEM to your developer and let that person analyze what you need and to then write it in the proper language to accomplish your needs. Make sense?
  13. Huh? To whom were you speaking in your last post?
  14. What do you mean by "removing the php extension"? Are you referencing the php script that creates the website page that is doing the submit? Or do you mean the form is submitting to something that does not have a php extension which therefore PHP wont process? Or is there some other angle you are trying to describe?
  15. Are the "landing pages" something that you guys have written, using html forms to collect the data? If so why are you not submitting them to your domain where your php code and process the inputs and store the data in your own db and from there do what you want?
  16. And may I ask - what is "exit intent"?
  17. "Content is fit". What is that supposed to tell us? And BTW - you never did ask a question so I will ignore this topic. Perhaps if you used better English you would receive nicer replies.
  18. And just what is this last posting of yours?? We tend to post code not teensy tiny images. Do you want help?
  19. Ok - reformatting your code to make it READABLE I see: //index.php switch ($_GET["page"]) { case 'anasayfa': include("k.php"); break; default: include_once("k.php"); } //k.php include "baglan.php"; echo '<div class="fd">'; if (isset($_POST["ara"])) { } else { $sql = 'SELECT kimg,ad,yazar,yv,ft,id FROM kid '; $qe = $conn->query($sql); if ($qe->num_rows) { } else { echo "başarısız"; } if (mysqli_num_rows($qe)) { while ($a = mysqli_fetch_array($qe, MYSQLI_ASSOC)) { if (isset($a) && isset($a["kimg"]) && isset($a["yazar"])) { # code... @print(' <div class="cvv">'); echo ' <a href="kitab= ' . $a["id"] . '>'; echo "<img src= 'img/logo.png' class='img'></img>" which makes no sense at all.
  20. And you still haven't done it. I give up.
  21. Huh? Comment? I asked you to echo out the values you are using for the mail call. and post them here.
  22. Well the problem is clearly with the call to mail. Echo out all the values involved and let's see them.
  23. its just getting sillier.
  24. You can only have one session at a time. Not sure what you are thinking of when you talk about 'ONE big session'. How's this? How do you know that the items saved in you session vars were tinkered with when you first saw them? You then compare them to the latest version of your post data and they might be wrong already.
×
×
  • 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.