-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
Add the use of some mysqli functions: mysqli_affected_rows for the insert and update queries; mysqli_num_rows for the select. Check the manual if you don't know how.
-
Did you check to see if the first query did an update? And what is the column 'indate' defined as? And did you actually return any rows from the select query? And did you then check to see how many rows were inserted? So many questions that you need to ask of your script.
-
How about creating a timestamp column and placing a single value on your record instead of two values?
-
And I don't do wordpress so I'm not only unable to help, I don't know what you want.
-
YOu need to write a query connecting different things - is that what you are saying? A new table that has cities in it and you want to join that to you jobs table?
-
NO idea what you are asking. What is 'post to post'? Never heard of that term unless you mean you are building an actual fence.
-
Try using plain html code instead of echo'ing everything out. And - if you didn't write the div to do all this, why bother trying to understand someone else's mindset? Write it as an html table. Much simpler. Start with a plain non-styled table and then when it is working you can customize it with some css
-
Plus - that long argument string for your array seems a bit off. Too many commas? Do you have php error checking enabled to help you debug any errors?
-
Are you using an html table to show this? If so, please show that code. PS - naming a function to "f_print" that does more than just "printing" is a bit confusing.
-
You should really check the num-rows value before you attempt to do a fetch. Doesn't that make more sense? Perhaps you should also check that the query call itself succeeded before doing that also. Something like: if (query succeeded) if (num_rows test) { (fetch) (process results) }
-
YOu have some problems with your buttons coding. LIke: <button hidden> What is that?
-
Skipping ahead to your actual question - Don't you want to simply do a Submit of your form with that button and not worry about a click?
-
May be a silly question but - Don't you have to install phpmailer onto your server/host in order to use it in your scripts?
-
I agree with Requinix. The better approach (if you really need to do this) is what cruise ships have been doing for years. When passengers come back on board they line up and go thru a metal detector (of course!) and a baggage check and they scan their id card that was created when they arrived for their trip. This card is linked to a photo taken by the registration staff and when the card is scanned a picture shows up so that the crew knows for sure that the person now boarding is the person who is registered to that card - just like what you want to know. The difference is they rely on a staff member doing the immediate supervision of this interaction, not a computer check in a back office. (I hope I made sense here)
-
Ahh! Not that I have any desire to do this thing. In fact I have had a piece of tape over my cam since the day I opened it.
-
Requinix - curious about your answer. Are you saying that a server based app could actually access the client camera and move that up to the server for storing? I"m surprised.
-
a lot of (improperly posted) code there but not sure why. What is your question? BTW - you are NOT turning on error reporting which you should be doing. The '0' argument turns it off. A '1' will turn it on for you.
-
Could be! Good luck!
-
Try googling "php server on ipad". Some possibilities there but you have to find a db server as well.
-
I think the question we need to ask is - will you have internet access 'in the field' or not? Using MAMP would imply (?) that you are completely self-contained on the iPad and not relying on a connection.
-
A lone line of code and a block of meaningless and incomplete code that is doing something with an outrageous index name on an array? What IS this? And just what is a "tag" in your world here?
-
He has added the "base time" in order to satisfy your very complex problem outline. Think about it.
- 5 replies
-
- javascript js
- timer
-
(and 2 more)
Tagged with:
-
I think we lost the OP....
-
As a newbie I highly recommend reading up on the "heredocs" use in the PHP manual. It will save you a lot of work when outputting your html table rows by avoiding having to switch in and out of php mode for every var. Still don't know what you "problem" is tho.
-
mysqli_stmt_bind_param(): error when trying to register
ginerjm replied to ciresuark's topic in PHP Coding Help
Again - where is the start. Still don't see where you make your connect or do your prepare. If you READ the manual you would see that you need to have that 'handle' to use in these functions and I don't see where you have done that. You should have $link = mysqli_connect(......); and $q = "select .........."; $stmt = mysqli-prepare($link, $q); which are then followed by: mysqli_stmt_bind_param($stmt,..........) mysqli_stmt_execute($stmt); See? (This is all taken from the manual)