Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
return(array($clientName,$salesPer,$prospectVal,$projID));
The projectID is dynamically added in database for each entry, now how can i return the ID. As i have not set any variable in PHP to map the database field.
Can anyone guide me on this.
If you're asking how to get back the ProjectID after it has been inserted into the database and automatically assigned, I suggest using something like the following:
$projID = mysql_insert_id();
immediately after running the insert statement.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 days ago.
Improve this question
I would like an answer for my problem.
Is it possible?
I would like to run a php script and pass an 'id' column parameter via MYSQL while I update a row.
Sorry for my english.
I waiting for your reply.
I tried AI,Google :D
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
Improve this question
How can I get table data for my tables in my website?
I want to update my table data every minute. Is there any extension for it?
And Could you give me a example for better understanding?
I don't know anything about extract data. So, I didn't try anything.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Can someone help me how to change the bool type in phpmyadmin(interface).
e.g.
If you click button number 1, it says true and if you click button number 2 it says false.
You have to make an update statement like Eda said. To clarify, if the table is called Test and the column is called Information, the statement would read:
UPDATE Test.Information SET value = b'1'
Like this:
UPDATE `table`.`col` SET `value` = b'1';
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I wish to know that whether is there any possible that can allow me to delete or hide the data on my php website but when I go inside my database, the record that is being deleted will still store inside the original database?
You have to add a deleted flag to your table
For deleting you set the flag:
UPDATE table SET deleted=1 WHERE id=xy
For geting the data from the database you have to check the flag:
SELECT * FROM table WHERE deleted=0
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
It may sounds trivial. but I want to know the Secure way of generating user-IDs to be used in MySql table. This is because I feel that using pure Integer IDs can enable hacking?.
Everything can be hacked, the only difference is that if the ID is used as a parameter in the URL or any other input. Then a GUID could be better to use.
Example : url/?id=1.