Hello i want to put more than one values in a table's row
SimonIoa
77
Master Poster
Recommended Answers
Jump to PostShow your table structure and the values you wish to insert. Take time to read the stciky: https://www.daniweb.com/web-development/databases/mysql/threads/457944/read-this-before-posting-a-question
Jump to PostI press the </>code and >_Inline code tabs. Neither of them open the dialog box
Only
</> Code
should open a dialog. What browser are you using? Any interfering plugins?Apart from that you can paste your stuff, then select all text and press tab to indent as …
Jump to PostAlternative: paste your code into the editor, ensure a blank line between your last bit of text and the first line of the code block. Select all entire code block and press TAB.
So back to the question. Show your SQL, your table and structure. The code you posted is …
Jump to Postpublic function Insert_Press_Release($uid,$update,$update_description,$press_url,$press_image,$values)
You are passing
$values
, but are using $val:('$update','$update_description','$press_url','$press_image','$uid','$time',$val)
This really does look like a lot of work with all that sanitizing. Why not create a prepared statement?
Is there any reason why you're placing multiple values into …
Jump to PostPosting the same code again? Not sure why.
The values was a mistake but its not this. The '100,102,204' are finctional ids, the point is that i want to store multiple values in one row. Here is the code that i dont know if its right.
The whole …
All 18 Replies
diafol
SimonIoa
77
Master Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
SimonIoa
77
Master Poster
SimonIoa
77
Master Poster
diafol
SimonIoa
77
Master Poster
SimonIoa
77
Master Poster
diafol
SimonIoa
77
Master Poster
diafol
SimonIoa
77
Master Poster
diafol
SimonIoa
77
Master Poster
diafol
SimonIoa
77
Master Poster
diafol
SimonIoa
77
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.